Trying to run this code in a bash script however having no luck as it is failing to run. What it is essentially doing is taking the 3rd attribute from the first bash script ${3:-365}
if that attribute is not found it uses the default of 365 for the number of days to run the command. then it calls the bash script bash /home/corey/emailSignature/deleteUser.sh ${1}
in which is passes a user-defined variable from the first bash script.
at now + ${3:-365} days -f 'bash /home/corey/emailSignature/deleteUser.sh ${1}' &
Is anyone able to let me know what I am doing wrong?