I've got a 4 step process I'm trying to chain together to satisfy requirements from my vendor on file retrieval.
Step #1 logs onto their server using FTPS, and downloads a file. Works fine.
Step #2 should change directory on their server (while still logged in) and do a read/write and copy some files that are on that directory to a location on my local server. This does not appear to work.
Step #3 consolidates the files on my server. Works fine.
Step #4 sends consolidated files over to another server in my network. Works fine.
The troubles seems to be with attempting to change to a different directory in Step #2. I was under the assumption that once I executed Step #1, that I was logged into their server until I ended the entire Job. Is this correct? It behaves as if it executes #1 and then logs off, and Step #2 is "lost" so when it issues a CD command and file copy command, it just loops. When I stop the task, within the job I get a -1 return code.
Can I build a task that references a task which will run a script, or do I have to structure this differently in VC? I have to be able to maintain the FTPS session, while read/writing files from and to the remote server.