Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: calling Winscp batchfile in sql server 2008 jobs parallely not working

1) We do not know what's in the script.tmp before your code snippet starts
2) It should be /script=script.tmp, not /script = script.tmp
3) It should be resumesupport, not resumesuppport
4) Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
purushothama.g

calling Winscp batchfile in sql server 2008 jobs parallely not working

Calling batch file in one sql server job and it works fine but
calling two sql server jobs with the batch file and passing different files to upload its not working
which every job runs first uploads the file correctly the other jobs just runs and completes.
Below is the job script.

rem generate temporary script to upload %1
echo open SFTP://xxxx@xx.com:1234/ -privatekey=c:\privatekey.ppk>>script.tmp
echo put -resumesuppport=off %1 /outputfolder/>> script.tmp

rem Execuit Script
winscp.com /ini=null /script = script.tmp
rem delete temporary script

del script.tmp