Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2008 16:39:29 +0200
From:      =?ISO-8859-1?Q?Micha=EBl_Le_Barbier?= <michael.le_barbier@laposte.net>
To:        redtick@sbcglobal.net
Cc:        help help <freebsd-questions@freebsd.org>
Subject:   Re: passing variable to at command
Message-ID:  <48D26821.8020405@laposte.net>
In-Reply-To: <17473.88889.qm@web81206.mail.mud.yahoo.com>
References:  <17473.88889.qm@web81206.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
>   
You will have to write your commands in a file, and supply the name of 
this file as the `-f' argument for at. The file is processed by SH. You 
can also say: echo /path/script 20 test | at 8:10 091808
> I've tried googling the at command for help but there's a lot of "at" in the world
All of this is written in the at man page!
-- 
Cheers,
Michaël



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48D26821.8020405>