Timed execution of multiple commands

Advertisement

todda.jones@kmbs
Guest

Timed execution of multiple commands

Thanks for all your input Martin!

I am running a script that has the following commands:
put -delete *.tif<=1N
put -delete *.txt<=2N
The tif file in question is considerably larger than the text file, so it takes longer to upload to the SFTP site in question. However, the tif file is needed in order to process the text tile successfully.

Is there a command for the script to wait until the first command is successful prior to the second commend executing?
Or a confirmation command of some sort?

Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Timed execution of multiple commands

That's what it does. WinSCP executes the commands one-by-one. No parallel transfers (or anything else) ever happens in WinSCP scripting.

Reply with quote

Guest

Re: Timed execution of multiple commands

Thanks not what I'm finding.
The date/time stamp of the TIF file once to the SFTP site is later than the date/time stamp of the TXT file, even when the put for the TIF is executed first (as in my example).

Reply with quote

Advertisement

You can post new topics in this forum