Scripting error: return code 127 and error message
using SCP protocol I'm attempting to connect to a server via automation/scripting.
I'm using batch to automate. Below is my script:
I always get the below error in my log.
* 2010-10-12 15:29:13.747 (ECommand) Error looking up user groups.
* 2010-10-12 15:29:13.747 Command 'groups'
* 2010-10-12 15:29:13.747 failed with return code 127 and error message
* 2010-10-12 15:29:13.747 -ash: groups: not found.
I'm executing this batch file through perl and always get error code of 1 no matter if successful or NOT.
How do you turn off/unclick lookup user groups through automation?
I'm using batch to automate. Below is my script:
@echo off echo Connecting to host to download files echo option batch on > script.tmp echo option confirm off >> script.tmp echo open scp://root:%1@%2:2222 -passive >> script.tmp echo synchronize local <Directory> <Directory> >> script.tmp echo Executing script winscp /script=script.tmp if %ERRORLEVEL% NEQ 0 echo ERROR: %ERRORLEVEL% echo Delete temporary script del script.tmp
I always get the below error in my log.
* 2010-10-12 15:29:13.747 (ECommand) Error looking up user groups.
* 2010-10-12 15:29:13.747 Command 'groups'
* 2010-10-12 15:29:13.747 failed with return code 127 and error message
* 2010-10-12 15:29:13.747 -ash: groups: not found.
I'm executing this batch file through perl and always get error code of 1 no matter if successful or NOT.
How do you turn off/unclick lookup user groups through automation?