1
vote
1answer
47 views

Can't spawn backgrounded process

My team's using Pallet (think Puppet in Clojure) to automate server provisioning, but running into a fairly fundamental problem: Pallet can execute arbitrary scripts directly on target VMs, but if one ...
3
votes
2answers
887 views

Shell script wait for background command

I am writing a script, but there is something I need that I can't find a way to do it... I need to make a command in background "command1 &" and then somewhere in the script I need to wait for it ...
1
vote
4answers
176 views

Where to put a background script

I have a script that i want to be constantly running in the background but I don't know where to launch it from If I put it in .bashrc it will run multiple times (one for each login) It's an ...
0
votes
1answer
95 views

why there is random behaviuor for a background job?

going through advanced bash scripting guide example 3.3 running a loop in background, i found this : #!/bin/bash # background-loop.sh for i in 1 2 3 4 5 6 7 8 9 10 # First loop. do echo -n "$i " done ...
13
votes
7answers
28k views

Execute remote commands, completely detaching from the ssh connection

I have 2 computers, localpc and remoteserver. I need localpc to execute some commands on remoteserver. One of the things it needs to do is start a backup script that runs for a number of hours. I ...