Batch file not working through Scheduler

Advertisement

gowtham_012
Joined:
Posts:
1
Location:
India

Batch file not working through Scheduler

Hi All,

i have created a batch file to get the file from remote server whenever i executed the script manually it's working fine but not through the scheduler. Looks like it hangs while connecting through the server.. I have added the session in winscp too..

Please help me with this

Script below

winscp.exe /console /command "option batch on" "option confirm off" /script=D:\VaricentFTP\ASIMS_ManualTransactions\Scripts\ASIMS_ManualTransactions_WinTask_Test.txt "open AUTODESKPROD@sftp2.varicentcloud.com" /log=D:\VaricentFTP\ASIMS_ManualTransactions\Log\winscp5_test_t.log
get /PROD_OUT/ManualTransactions* D:\VaricentFTP\ASIMS_ManualTransactions\Files\ManualTransactions.txt
mv /PROD_OUT/ManualTransactions* /PROD_OUT/ExportedMnlTrxBackup/

Log File below

. 2013-04-25 13:00:01.066 --------------------------------------------------------------------------
. 2013-04-25 13:00:01.066 WinSCP Version 5.1.4 (Build 3020) (OS 6.1.7601 Service Pack 1)
. 2013-04-25 13:00:01.066 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2013-04-25 13:00:01.066 Local account: ADS\svc_p_comminf
. 2013-04-25 13:00:01.066 Working directory: D:\VaricentFTP\ASIMS_ManualTransactions\Scripts
. 2013-04-25 13:00:01.066 Command-line: winscp.exe /console /command "option batch on" "option confirm off" /script=D:\VaricentFTP\ASIMS_ManualTransactions\Scripts\ASIMS_ManualTransactions_WinTask_Test.txt "open AUTODESKPROD@sftp2.varicentcloud.com" /log=D:\VaricentFTP\ASIMS_ManualTransactions\Log\winscp5_test_t.log
. 2013-04-25 13:00:01.066 Time zone: Current: GMT-7, Standard: GMT-8, DST: GMT-7, DST Start: 3/10/2013, DST End: 11/3/2013
. 2013-04-25 13:00:01.066 Login time: Thursday, April 25, 2013 1:00:01 PM
. 2013-04-25 13:00:01.066 --------------------------------------------------------------------------
. 2013-04-25 13:00:01.066 Session name: open AUTODESKPROD@sftp2.varicentcloud.com (Modified stored session)
. 2013-04-25 13:00:01.066 Host name: sftp2.varicentcloud.com (Port: 22)
. 2013-04-25 13:00:01.066 User name: open AUTODESKPROD (Password: No, Key file: No)
. 2013-04-25 13:00:01.066 Tunnel: No
. 2013-04-25 13:00:01.066 Transfer Protocol: SFTP (SCP)
. 2013-04-25 13:00:01.066 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2013-04-25 13:00:01.066 Proxy: none
. 2013-04-25 13:00:01.066 SSH protocol version: 2; Compression: No
. 2013-04-25 13:00:01.066 Bypass authentication: No
. 2013-04-25 13:00:01.066 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2013-04-25 13:00:01.066 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2013-04-25 13:00:01.066 SSH Bugs: A,A,A,A,A,A,A,A,A,A
. 2013-04-25 13:00:01.066 SFTP Bugs: A,A
. 2013-04-25 13:00:01.066 Return code variable: Autodetect; Lookup user groups: A
. 2013-04-25 13:00:01.066 Shell: default
. 2013-04-25 13:00:01.066 EOL: 0, UTF: 2
. 2013-04-25 13:00:01.066 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2013-04-25 13:00:01.066 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2013-04-25 13:00:01.066 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2013-04-25 13:00:01.066 Cache directory changes: Yes, Permanent: Yes
. 2013-04-25 13:00:01.066 DST mode: 1; Timezone offset: 0h 0m
. 2013-04-25 13:00:01.066 --------------------------------------------------------------------------
. 2013-04-25 13:00:01.066 Looking up host "sftp2.varicentcloud.com"
. 2013-04-25 13:00:01.082 Connecting to 206.150.71.4 port 22
. 2013-04-25 13:00:01.113 Server version: SSH-2.0-CerberusFTPServer_5.0
. 2013-04-25 13:00:01.113 Using SSH protocol version 2
. 2013-04-25 13:00:01.113 We claim version: SSH-2.0-WinSCP_release_5.1.4
. 2013-04-25 13:00:01.129 Doing Diffie-Hellman group exchange
. 2013-04-25 13:00:01.363 Doing Diffie-Hellman key exchange with hash SHA-1
. 2013-04-25 13:00:01.863 Verifying host key rsa2 0x10001,0xc9e2b1d9cdb2e50fc7fa5b16852de359866794a23ba39c2e856709437fe62d1987afcb51dc0dc69c4f6ce9a7f9d3fa98a9845d25eb7dd5db3bf97f8a732ab4c40f581496347bb140f2d6abda6c8ad197b4e154375904172cbc3c677e48d5e0f4246d852ee5d293d1c8bca8369369be727f8e292f464fdb9bc94676c1fc8cffa7614328991ef474aac78f04ccb14e211a35f8dc8f4fc59e983c7f5785f89dc9708c56d4de57d9bef9e52d1781fc69db00fb22ae7ec637bc256ad6cf5bbabae7aedc3e7ce1b0f13a2f3a84c4f253cb0f0e2567ed3663518444657774a998bb135944e9a6baa42e9d5642fec191a2f2d58aa930e383b34d64f4f6925c4dfe16dad1 with fingerprint ssh-rsa 2048 bd:d5:ac:23:fe:5f:62:33:49:23:9b:33:cb:2f:21:38
. 2013-04-25 13:00:01.863 Asking user:
. 2013-04-25 13:00:01.863 The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is.
. 2013-04-25 13:00:01.863
. 2013-04-25 13:00:01.863 The server's rsa2 key fingerprint is:
. 2013-04-25 13:00:01.863 ssh-rsa 2048 bd:d5:ac:23:fe:5f:62:33:49:23:9b:33:cb:2f:21:38
. 2013-04-25 13:00:01.863
. 2013-04-25 13:00:01.863 If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
. 2013-04-25 13:00:01.863
. 2013-04-25 13:00:01.863 Continue connecting and add host key to the cache? ()

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum