Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

0

I had the same problem and tried @Prem's solution. I got permission denied error. Also, if you want to run nohup with while loop using a variable from a file, double quotation marks dont work. It looks for the variable in shell environment, not from the file. Later, I run the same command with single quotation mark without error: nohup bash -c 'while read ...


2

Didn't your nohup say "redirecting stderr to stdout"? That's exactly what happened. nohup scripta.sh >> a.log & redirected the stderr to a.log (because stderr was a tty when you ran the command from an interactive shell), and then the second nohup python3 .. from scriptb.sh didn't have to do that any more (because its stderr was not a tty, but a....


Top 50 recent answers are included