Topic "Error while executing unix script from windows thro WinSCP"

Author Message
Gopal

Guest


Hi All,

I am facing the below mentioned error, while executing unix script from windows through WinSCP.exe.

I am using the below command, i am getting the below mentioned error in the production, but in the test environment, i can able to execute the script, kindly help

C:\Gop\WinSCP\WinSCP.exe /console emerg1:Vm41L000@10.20.210.240 /command "call /home/emerg1/test.sh"

Searching for host...
Connecting to host...
Authenticating...
Using username "emerg1".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] emerg1@10.20.210.240
Searching for host...
Connecting to host...
Authenticating...
Using username "emerg1".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Connection has been unexpectedly closed. Server sent command exit status 255.
Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
winscp>


Thanks
Gopal
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
_________________
Martin Prikryl
Guest




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



I had gone through the document earlier itself, could you please advice me, why it is not working in production , where as test server it is working fine.......................


Thanks
Gopal
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I have no idea. Check your server log.
_________________
Martin Prikryl
jjaramillo

Guest


prikryl wrote:
I have no idea. Check your server log.


-> Maibe if your user was just created u need to enter using putty and change the password "Is required by the firs time u use the user", after u change thhe password try again to log using winscp.
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