SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Job content list

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Job content list
Author Message
ligs



Joined: 29 Jun 2007
Posts: 3
Country: United Kingdom

Post Job content list Reply with quote
I would like to export the contents of each jal script, including those in the script library to a file, preferably individual files.
Is this possible without having to open each job and exporting the contents of each one manually?

Many thanks,
Lionel
Fri Jun 29, 2007 8:06 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
Sure. You can do so using Tools -> Import/Export Job Database menu
Fri Jun 29, 2007 8:59 am View user's profile Send private message
ligs



Joined: 29 Jun 2007
Posts: 3
Country: United Kingdom

Post Reply with quote
I have managed to export to an access database; it has created 2 tables’ t2x7_job & t24x7_library, which is useful.
However, I would also have liked to dump the contents (Jal code) of each script to a file or individual files.
Is this possible?

Thank you,
Lionel
Fri Jun 29, 2007 9:49 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
You can write a job to loop through all script jobs and save their scripts into text files, here is the concept

JobList "", list
LoopUntil ... no more ..
jobDescribe ..., "JOB_TYPE"
If type = "S" then
JobDescribe ..., "SCRIPT"
FileSave job_name, script
EndLoop


For a sample loop, see http://www.softtreetech.com/support/phpBB2/viewtopic.php?t=21718 You only need the first loop and you need to specify an empty string for the folder name so you can get the complete list.
Fri Jun 29, 2007 1:17 pm View user's profile Send private message
ligs



Joined: 29 Jun 2007
Posts: 3
Country: United Kingdom

Post Reply with quote
This works great for script jobs, thanks.
Is there any way to do the same for scripts in the Script Library?
Wed Jul 04, 2007 4:42 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
Not as I know. The only solution I can suggest is first export script library to a database then load it into a memory array using DatabaseRetrieve command and after that run a loop similar to what you have done for job scripts, something like LoopUntil..DatabaseGet..FileSave
Wed Jul 04, 2007 9:41 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.