calling Winscp batchfile in sql server 2008 jobs parallely not working

Advertisement

purushothama.g
Joined:
Posts:
1
Location:
Bangalore

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

Reply with quote E-mail

Advertisement

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

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.

Reply with quote

Advertisement

You can post new topics in this forum