Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

It is possible?

Cygwin is installed on the windows environment. I connect to windows environment over ssh with follow command:

ssh user@ip /cygdriver/c/run.bat. After introducing the password the message 'No such file or directory' appears. Any suggestion how I can make it?

share|improve this question

migrated from stackoverflow.com Mar 15 '13 at 12:47

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Check that you're entering 'cygdrive' and not 'cygdriver' If it doesn't work try to run this command CMD /C C:\run.bat

share|improve this answer
    
I tried to execute the follow command ssh Administrator@IP /C C:\run.bat and don't have success. –  user753536 Mar 15 '13 at 9:19
    
it's CMD /C C:\run.bat –  golimar Mar 15 '13 at 10:43

Is "cygdriver" the right path?

I suggest trying to make the command work locally in the Cygwin shell on the Windows machine, then copy-and-paste the known-working command into your ssh script which will run remotely.

share|improve this answer
    
sorry, the right path is /cygdrive/c/run.bat –  user753536 Mar 15 '13 at 9:17
    
I can execute the command locally on cygwin using the follow command /cygdrive/c/run.bat –  user753536 Mar 15 '13 at 9:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.