LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-28-2008, 07:25 PM   #16
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63

But you can compare your debug output below:

+ 'ssh processing-02@192.168.1.124 /home/processing-02/Documents/Scripts/d2u_and_nconvert.sh '

with the same debug output from the script I gave you.

+ ssh -f me@localhost /home/me/bin/some_work.sh

Compare the lines very carefully, and you'll notice yours is single quoted, and mine is not.
Hence, your script tries to run the entire line as if it was 1 command, mine sees multiple
words (ssh, -f, me@localhost, /home/me/bin/some_work.sh).

You said the only thing you changed in your script was changing the use of array variables.
If it worked before, then you must have changed something else. So, ask yourself, why
does your line above look like 1 very long word and mine 4 words? What causes
words to be separated in the shell? You added it to your script, so you must have an idea
of what I'm talking about...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash_-_new line separator? babag Programming 8 06-12-2008 02:11 PM
parsing a variable from here command tostay2003 Programming 5 12-26-2007 08:17 PM
How do I turn my variable into a command? spiffytech Linux - Software 3 12-29-2005 12:30 PM
Command & Variable karunesh Programming 5 04-08-2005 06:54 PM
How do I make SSH use the MAIL variable set by /etc/login.defs? RyanA Linux - Software 1 08-15-2003 11:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration