Im trying to write a script which works as follows:
machine A (where my script is)
machine B (the machine where I'm trying to SSH)
while script runs on A, I'm trying to ssh B, and collect data from a file on B and copy it to a file on A.
---------------------------------------------
I've tried backgrounding the SSH but this alone is not working. :(
Once i ssh, I'm considering entering machine B. (the script hangs at new host B)
Any ideas on how to code this?
Thanks in advance for any input!
machine A (where my script is)
machine B (the machine where I'm trying to SSH)
while script runs on A, I'm trying to ssh B, and collect data from a file on B and copy it to a file on A.
---------------------------------------------
I've tried backgrounding the SSH but this alone is not working. :(
Once i ssh, I'm considering entering machine B. (the script hangs at new host B)
Any ideas on how to code this?

Thanks in advance for any input!
Comment