Topic "'call' command in script causes reauthentication"

Author Message
markgeb

Guest


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=

Code:
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
_________________
Martin Prikryl
passerby

Guest


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


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

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License