Here are 2 code examples. Both are nohup
codes in a bash string. The first one does the job and second doesn't. I ask why.
sudo apt-get purge zip unzip
nohup bash -c " sleep 20s; apt-get install zip unzip; " &
The above command is executed in the background and installas these software (I've affirmed it by executing the stdin "zip
".
nohup bash -c " sleep 20s; clear; "
This command runs in the foreground but doesn't clear the tty. Why is that? What could I do to make it clear the screen of the current session? Is there any argument/way of execution/script that I could run together with the command, that might help with this?