Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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: how to disable "lookup user groups" via command line

Please read FAQ
https://winscp.net/eng/docs/faq_script_ini

Though I do not think your problem is related to ": groups: not found.". It's more likely releated to: "Automatic actions are disabled when URL address is provided on command-line."

Instead of "scp://root:mypassword@HostIP:22" on command line, you should do "open scp://root:mypassword@HostIP:22" from your script file.
bkerez

how to disable "lookup user groups" via command line

Hi,

i know it's been asked before but i got no answer.
is there a way to run the following without failing on the errors:

C:\Program Files\WinSCP>winscp.com scp://root:mypassword@HostIP:22 /script=c:\myscript.txt
Automatic actions are disabled when URL address is provided on command-line.
Searching for host...
Connecting to host...
Authenticating...
Using username "root".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Error getting name of current remote directory.
Command 'pwd'
failed with return code 0 and error message
: groups: not found.
Session started.
Active session: [1] root@HostIP
winscp>