i have this in a bash script:
Code:
plz=0
box=1
ipadd=(i have this in an if/then condition providing various addresses)
ssh "processing-"$plz$box"@"$ipadd" /home/processing-"$plz$box"/Documents/Scripts/script_to_run.sh &"
it is within a loop that increments the 'box' variable
to copy files to a series of remote computers sequentially.
it gets as far as the ssh login correctly but does not return
from the remote after starting the script named 'script_to_run.sh.'
i get a warning that:
Quote:
'Permanently added '192.168.x.x /home/processing-01/documents/scripts/script_to_run.sh'
(RSA) to the list of known hosts.'
|
i notice that, in this message, the paths documents and scripts
are not captialized. in the system, though, they are capitalized.
the capitalization is correct in the script. the login occurs but
the script is not run.
if i go over to the remote box and run the 'script_to_run.sh'
script locally on the box, it runs fine.
what i want is to have the loop login via ssh, start the remote
script, then immediately return, leaving the remote script sunning.
this worked before i incorporated variables into the command. i
used the '&' at the end to return after starting the remote script.
now i'm inside quotation marks and unsure of the syntax to
accomplish what i'm trying to do.
how do i get this to work now?
thanks,
BabaG