On Mon, Feb 27, 2017 at 11:44 PM, bruce <badouglas@xxxxxxxxx> wrote: > On Mon, Feb 27, 2017 at 2:56 PM, Rick Stevens <ricks@xxxxxxxxxxxxxx> wrote: >> On 02/27/2017 11:35 AM, Jon LaBadie wrote: >>> On Mon, Feb 27, 2017 at 09:41:11AM -0800, Rick Stevens wrote: >>>> On 02/26/2017 12:34 PM, bruce wrote: >>>>> Hey Jon... >>>>> >>>>> You are absolutely correct.. if the parent ssh terminates.. the remote >>> ... >>>> >>>> Jon, we try not to top-post here. Just a nudge. >>> >>> I didn't Rick, you attributed the above incorrectly. >>> >>>> >>>> If you are using ssh to spawn a remote screen session that runs a >>>> command in the background it should work just fine, e.g.: >>>> >>>> ssh user@remote "screen command-to-run args &" >>> >>> I replied to the original post and the screen command was never mentioned. >> >> OOPS! My mistake. I should have poked Bruce. Sorry, Jon. > > hey... no poking in here!!! > More clarification.... The following works... ssh -t crawl_user@1.2.3.4 cp /foot/start.php /ctmp/. Howvever, i've been putzing with a way to have the local ssh run in the background, with no success... ssh -t crawl_user@1.2.3.4 "cp /foot/start.php /ctmp/. " & Seems to place the ssh in the background (ps -aux) shows it running, but it never dies.. I've tried different approaches > \dev\null & etc.. with little luck... Here's why Im looking to do this: My use case/test has a bunch of digital ocean droplets, and the process has a number of things that ned to be done to each droplet on initialization (I know, whynot create a base instance with what's needed, and clone that one!) So the current process does a simple loop through the init process, doing the remote/ssh into the target instances... This process works, but is time consuming. So I've wondered how one could run a local ssh in the background, which would/should allow the process to run faster... loop (ssh user@ip1 remote_process_1) & so the entire local ssh process runs as a background (ssh user@ip1 remote_process_2) & so the entire local ssh process runs as a background (ssh user@ip1 remote_process_3) & so the entire local ssh process runs as a background . . _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx