| 
	
		| 
		
			|  | SoftTree Technologies Technical Support Forums
 |  |  
	
		| 
	
	
	
		| Author | Message |  
		| rlevine 
 
 
 
 
			
				| Joined: 05 Jul 2011 Posts: 13
 Country: United States
 |  
 | 
			
				|  FileMove |   |  
				| 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 |     |  
		|  |  
		| SysOp Site Admin
 
 
 
 
			
				| Joined: 26 Nov 2006 Posts: 7990
 
 |  
 | 
			
				|   |   |  
				| 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 |     |  
		|  |  
		| rlevine 
 
 
 
 
			
				| Joined: 05 Jul 2011 Posts: 13
 Country: United States
 |  
 | 
			
				|   |   |  
				| 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 |     |  
		|  |  
		|  |  
  
	| 
 
 | 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
 
 |  |  |