I'm looking for something like command1 ; command2
i.e. how to run command2
after command1
but I'd like to plan execution of command2
when command1
is already running.
It can be solved by just typing the command2
and confirming by Enter supposed that the command1
is not consuming standard input and that the command1
doesn't produce to much text on output making it impractical to type (typed characters are blended with the command1
output).
Generally what I do is: Ctrl+Z fg && command2
bg
, to resume command1 in the background while you type out command2.fg && command2
to resume command1 in the foreground and queue up command2 afterwards if command1 succeeds. You can of course substitute ;
or ||
for the &&
if you so desire.Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments