Topic "Disabling "lookup user groups" in script mode"

Author Message


Hello all,

I'm using winscp in script mode.

I'm trying to get the return code (errorlevel) in a batch file.

But, while opening the session, I get:
Command 'groups'
failed with return code 127 and error message
-ash: groups: not found.

So, each time, I get errerlevel=1, although, for exemple, the "put" command is correctly performed.
In GUI mode, it's possible to uncheck "lookup user groups".

Is there a way to do the same thing in script command line to skip the "groups" command?

I read the documentation, but nothing in script mode.

I tried on another server (which hosts the "groups" command and I got errorlevel=0 (as expected).

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Please read FAQ. If that does not help, come back.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License