Error while executing unix script from windows thro WinSCP

Advertisement

Gopal
Guest

Error while executing unix script from windows thro WinSCP

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Error while executing unix script from windows thro WinSCP

Please read documentation. If that does not help, come back.
_________________
Martin Prikryl

Reply with quote

Guest

Re: Error while executing unix script from windows thro WinSCP

martin 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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Error while executing unix script from windows thro WinSCP

I have no idea. Check your server log.
_________________
Martin Prikryl

Reply with quote

jjaramillo
Guest

Re: Error while executing unix script from windows thro WinSCP

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

Reply with quote

Advertisement

You can post new topics in this forum