SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Can I use variables in semaphore file names?

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Can I use variables in semaphore file names?
Author Message
Sean Hicken



Joined: 03 Dec 2002
Posts: 11

Post Can I use variables in semaphore file names? Reply with quote

I have a number of jobs that are triggered when files arrive. I run these jobs on different machines that have different directories where the files are FTP'd to.

Right now, I have hard-coded the path name in each of the jobs but I am wondering if I can use a global variable in the semaphore file name to indicate the path?

I know in in v3.4.9, you can use environment variables in semaphore file names but I would like to be able to use a global variable in the file name. Is this possible?

e.g. something like: @V"global.ImportFilesDir"\cnexport.dat

Fri Jun 20, 2003 2:31 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6499

Post Re: Can I use variables in semaphore file names? Reply with quote

No.

But you can create a job to be run on scheduler startup that can set envionment variables from global variable. The job can actually run at any time, it is probably more convininet to do this on startup. Please also note that tyhese environment variables will be only seen in 24x7 and child processes including jobs.
To set an environment variable dynamically you can use do like the following

Dim command, string
Dim temp, number
ConcatEx "SET my_env_var=", GLOBAL.my_glob_var, "\r\n", command
FileSave "temp.bat", command
RunAndWait "temp.bat", "", 0, number
FileDelete "temp.bat"

: I have a number of jobs that are triggered when files arrive. I run these
: jobs on different machines that have different directories where the files
: are FTP'd to.

: Right now, I have hard-coded the path name in each of the jobs but I am
: wondering if I can use a global variable in the semaphore file name to
: indicate the path?

: I know in in v3.4.9, you can use environment variables in semaphore file
: names but I would like to be able to use a global variable in the file
: name. Is this possible?

: e.g. something like: @V"global.ImportFilesDir"\cnexport.dat

Fri Jun 20, 2003 3:41 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.