Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Disabling "lookup user groups" in script mode

Please read FAQ. If that does not help, come back.
TuxTronic

Disabling "lookup user groups" in script mode

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).

Thanks.