 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
seanc217
Joined: 23 May 2007 Posts: 272
|
|
pass timestamp in program job |
|
Hi there,
I'm running a job that is a korn shell script on a remote server.
When I setup the job I set it up as a program or batch file job.
Question: Is it possible to pass a timestamp variable to the job like @T?
Thanks.
|
|
Thu Dec 06, 2007 4:54 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
Yes, you can pass it on the command line, for example
sh /c echo @T"mm-dd-yyyy"
You can also run dynamic shell scripts using the script type job and selecting "batch/shell" as the script type. In the script you can insert macro-variables where needed.
|
|
Thu Dec 06, 2007 5:54 pm |
|
 |
seanc217
Joined: 23 May 2007 Posts: 272
|
|
|
|
OK Got it to work my mask was in caps!
Thanks!
|
|
Fri Dec 07, 2007 3:19 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|