This message was deleted.
# bolt
s
This message was deleted.
y
you can try to do
run_command()
within
background()
for the case
then use
wait()
to collect the results
l
if this is the command i'm running:
Copy code
bolt command run "apt upgrade -y" --targets @targets.yaml --user root --no-host-key-check
could you add in your example?
i don't think i understand
y
ah.. I thought you want this in a plan
l
i could do a plan
i just haven't built one, so i'll have to start there
y
but anyway your plan shall wait till completion I guess
the only difference is that you can do something else while waiting
(in the same plan)
though if you want just to “fire and forget” (i.e. you’re not going to follow with
apt-get install
) then I’d try with `nohup`/`disown`/`daemonize`/`screen`/`tmux`
l
Thank you @Yury Bushmelev!
v
in my experience
batch
is better
Copy code
bolt command run 'echo "apt upgrade -y"|batch' -t debian
👍🏻 1
y
that just remind me
at
which can be used for this too 🙂 a bit hack-ish tho
v
batch is at's sibling
Copy code
$ cat /bin/batch 
#! /bin/sh -e
if [ "$#" -gt 0 ]; then
	echo batch accepts no parameters
	exit 1
fi
prefix=/usr
exec_prefix=/usr
exec /usr/bin/at -qb now
y
haha, didn’t know 😄
very old school anyway.. not many ppl heard about
at
these days
v
sad, I wonder when AWS and other clouds will ran out of people who knows how stuff works
😞 1
y
Few years ago I realised that DNS is magic for many too..