SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
pass timestamp in program job

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
pass timestamp in program job
Author Message
seanc217



Joined: 23 May 2007
Posts: 272

Post pass timestamp in program job Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Reply with quote
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 View user's profile Send private message
seanc217



Joined: 23 May 2007
Posts: 272

Post Reply with quote
OK Got it to work my mask was in caps!

Thanks!
Fri Dec 07, 2007 3:19 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.