SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Semaphore File

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Semaphore File
Author Message
Sudarshan



Joined: 30 Jan 2007
Posts: 8
Country: India

Post Semaphore File Reply with quote

In a Job definition we are listening for incoming

files in a folder by giving *.* as semaphore file.

Now we want to retrieve the file name through any of the 24*7 API call.

Is there any API call avaialable for the same?

I have tried Integer getJobLog ( String JobID,StringHolder Buffer,Boolean HTMLFormat ) throws RemoteException

API call but it is not of much use for me.

Any help will be highly appriciated.

Thanks in advance

Tue Feb 06, 2007 1:15 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Semaphore File Reply with quote

Can you post few lines of your code with getJobLog call so I can check what is wrong there. Also if you use a file mark based job and there are multiple files you won't be able to use the log to find out which file exactly triggered the job. I suggest you make your job write found files to some place where you can read them later. If you create a script type job you can have the script save file name into some file, for example, in JAL you can do the following:

Dim file_name, string

Dir( "c:\\path to your files\\*.*", file_name )

FileSave( "C:\\some folder\\last_file_name.txt", file_name )

Of course this script is only good for 24x7 Windows version. If you run Multi-platform version, you can do the same in JavaScript job as

var file_name = Directory.dir( "c:\\path to your files\\*.*" );

File.save( "C:\\some folder\\last_file_name.txt", file_name );

: In a Job definition we are listening for incoming

: files in a folder by giving *.* as semaphore file.

: Now we want to retrieve the file name through any of the 24*7 API call.

: Is there any API call avaialable for the same?

: I have tried Integer getJobLog ( String JobID,StringHolder Buffer,Boolean

: HTMLFormat ) throws RemoteException

: API call but it is not of much use for me.

: Any help will be highly appriciated.

: Thanks in advance



Tue Feb 06, 2007 8:49 am 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.