Looking to figure out how to do set an at job up from within a shell script w/o using the -f option.
The at -f option provides no method (that I can determine) for passing additional command line parameters to the file.
I have explored trying to use stdin redirection to bypass the interactive
1 command per line , using stuff like the following:
at now +3 days << /path/scriptname -foo -bar
This fails w/ garbled time error, I then tried to simulate the newline, CTRL-D
used w/ the interactive stdin;
at now +3 days << /path/script -foo -bar $'\n' $'\x04'
Nothing yet has produced the desired results.
Thanks in advance.