This is the mail archive of the
mailing list for the Cygwin project.
Unable to execute local scripts to run commands through SSH from Cygwin
- From: Jim Reswick <Jim at ReswickGallery dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 9 Sep 2014 22:08:28 +0000 (UTC)
- Subject: Unable to execute local scripts to run commands through SSH from Cygwin
- Authentication-results: sourceware.org; auth=none
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:
$ /bin/ssh rcolnx89114 -l sukpewek 'bash -s'
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
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by jreswick
Add jreswick to Your Contacts
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple