Sometimes I start a program that takes a very long time to finish (emerge), then realize that I should go to bed instead of waiting for it. If I know this in the first place I would runprogram; haltHowever, now that I have started the program already, how can I schedule the computer to shutdown when that process finishes? Would Ctrl+z then fg; halt be OK?
how to queue a command to run after another command finishes?
command line;scheduling
Yes, that would work.If unsure, you may test it with sleep 15Ctrl+zfg; echo it works