 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
seanc217
Joined: 23 May 2007 Posts: 272
|
|
checking a file for existance |
|
Can I specify a remote file as a semaphore file for kicking off an event based job?
Thanks,
Sean
|
|
Wed Jun 06, 2007 2:02 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7966
|
|
|
|
Only indirectly… You can create a remote script or program type job that runs periodically and checks for existence of a file and then makes the scheduler trigger another job based on status of this job. The idea is to return different statuses based on the existence of the file, set exit code associated with a file existence as "success" and everything else as a "failure" or visa versa. Use job notifications for "successful job completion" to trigger another job using "run another job" action.
Another method is to create a local JavaScript job using available FTP commands to check for files on the remote server and then trigger another job or just do something else if the needed file is found.
I would suggest going with the second method as more flexible and trsnparent.
|
|
Wed Jun 06, 2007 2:17 pm |
|
 |
seanc217
Joined: 23 May 2007 Posts: 272
|
|
|
|
Thanks for the info.
Is there an example posted somewhere here that I can use?
Thanks!!
|
|
Wed Jun 06, 2007 2:37 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
|
|
|