 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
ligs
Joined: 29 Jun 2007 Posts: 3 Country: United Kingdom |
|
Job content list |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
Sure. You can do so using Tools -> Import/Export Job Database menu
|
|
Fri Jun 29, 2007 8:59 am |
|
 |
ligs
Joined: 29 Jun 2007 Posts: 3 Country: United Kingdom |
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
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 |
|
 |
ligs
Joined: 29 Jun 2007 Posts: 3 Country: United Kingdom |
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7955
|
|
|
|
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 |
|
 |
|
|
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
|
|
|