'call' command in script causes reauthentication

Advertisement

markgeb
Guest

'call' command in script causes reauthentication

I am new to scripting winscp, so I expect I am missing something. Here is the script I am trying to use. It works until the point where I issue 'call chgrp ...'. At this point I need to re-authenticate. Am I missing something, doing something wrong, or is this just how it works?

Thanks,

called from dos command line, via /script=

option echo on
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect
open username@host

# Change remote directory
cd /path/test
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
# get examplefile.txt d:\

rm GLB_en_urg_00843_manual_ATG/*.*
rmdir GLB_en_urg_00843_manual_ATG

put S:\UserProd\translations\urg_00843\GLB_en_urg_00843_manual_ATG

chmod 774 GLB_en_urg_00843_manual_ATG
chmod 774 GLB_en_urg_00843_manual_ATG/*.*
[color=darkred]call chgrp dctmtmp GLB_en_urg_00843_manual_ATG
call chgrp dctmtmp GLB_en_urg_00843_manual_ATG/*.*[/color]

# ## commented out close and exit for debugging...
# Disconnect
close
# Exit WinSCP
exit

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,074
Location:
Prague, Czechia

Re: 'call' command in script causes reauthentication

Please read documentation. If that does not help, come back.
_________________
Martin Prikryl

Reply with quote

passerby
Guest

Re: 'call' command in script causes reauthentication

martin wrote:

Please read documentation. If that does not help, come back.

Stupid answer. You need not tell him to read documentation. IDiot

Reply with quote

Advertisement

You can post new topics in this forum