passing variable to at command
glarkin at FreeBSD.org
Thu Sep 18 14:48:24 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Mark Busby wrote:
> Is there a way to pass variables to a shell script from the command line with the at command?
> What I've been trying is something like : at -f '/path/script 20 test' 8:10 091808 : Where 20 and test set variables in the script.
> I've tried googling the at command for help but there's a lot of "at" in the world.
My reading of the at(1) man page
implies that the -f option is used to specify a file containing the
commands you wish to execute, not the actual commands themselves.
In that case, create a temporary file with commands like '/path/script
20 test', etc. in it and then use "at -f" to run the commands in that
file at the specified time.
http://www.FreeBSD.org/ - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the freebsd-questions