-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. > > Thanks
Hi Mark, My reading of the at(1) man page (http://www.freebsd.org/cgi/man.cgi?query=at&apropos=0&sektion=0&manpath=FreeBSD+7.0-RELEASE&format=html) 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. Regards, Greg - -- Greg Larkin 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 iD8DBQFI0mow0sRouByUApARAnZzAJ4vFomoN4zTLWmlzoRpuZJwDLExAQCfZoCb lRyDaLaj+Te+wayACyfME3s= =zAc0 -----END PGP SIGNATURE----- _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"