SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FileMove

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



Joined: 05 Jul 2011
Posts: 13
Country: United States

Post FileMove Reply with quote
After uploading a file using FTP, I am trying to move the uploaded file using JAL.
Here is my script, however the FileMove is not working. Can you help why not?

////////////////////////////////////////////////////////////
// 24x7 Scheduler Multi-platform Edition Version 4.4 Build 331
// Job Template: FTP upload (using file mask)
// Generated on Mon Jul 11 19:38:33 EDT 2011
////////////////////////////////////////////////////////////

Dim file_list, string
Dim short_file_name, string
Dim ftp_file_name, string
Dim local_file_name, string
Dim no_more, boolean
Dim ftp_done_path, string

set (ftp_done_path, "\\\\myserver\\RequestFiles\\Done\\")
// Search local files.
Dir "\\\\myserver\\RequestFiles\\*.txt", file_list
isEqual file_list, "", no_more
IfThen no_more, DONE

// Upload file(s) to FTP server.
LoopUntil no_more, END_LOOP
GetToken ",", file_list, short_file_name
Concat "//pull_from//", short_file_name, ftp_file_name
Concat "\\\\myserver\\RequestFiles\\", short_file_name, local_file_name
FTPPutFile "ftp.test.net", "username", "password", local_file_name, ftp_file_name

// to delete the file after successful uploading, uncomment the following line
// FileDelete local_file_name
FileMove local_file_name, ftp_done_path

isEqual file_list, "", no_more
END_LOOP:

DONE:
Mon Jul 11, 2011 7:57 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Reply with quote
1. Please verify the script type is set to JAL in the job properties.
2. Please check the job actually runs and executes that script
3. check the job if there are any errors. If you see any errors and not sure what they mean, please post them here.
Mon Jul 11, 2011 8:39 pm View user's profile Send private message
rlevine



Joined: 05 Jul 2011
Posts: 13
Country: United States

Post Reply with quote
Yes the job actually runs. The files are uploaded, however the file does not get moved. I am running this on Windows and I have ensured that EVERYONE has full controll to avoid a permissions issue.
I don't see any error in the log (viewed from the UI). Should I be looking some place else?
Tue Jul 12, 2011 9:43 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.