[SOLVED] Unable to execute remote scripts through SSH from Cygwin
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Unable to execute remote scripts through SSH from Cygwin
I'm trying to run a command string on a Linux box from a Winows 2008 box. I've got Cygwin64 installed and ssh working with public keys. I have two test scripts on the Windows box. The first script contains the command line that I desire to execute on the Linux box. The second script calls the first script passing the command line in the first script to the Linux box for execution (at least that is what is intended).
Here is the first script executed in the Cygwin session on the Windows box:
$ . /home/srv_imgctrlmsqladmin/test2.sh
Here is the command line from the second script copied and pasted and executed in the Cygwin session:
Here is what I get when I execute the second script in the Cygwin session (that contains only the same command line as above):
$ . /home/srv_imgctrlmsqladmin/call_test.sh
: No such file or directorydmin/test2.sh
I've tried several other variations of the same process above, but its always the same thing...Command line works fine on the remote Linux box, but the script calling the identical command line does not.
I'm a newbie and no great Unix script coder, and any help would be much appreciated...