I’m using the command on a server for execute in background some processess:
nohup bash batch > logfile.txt 2>&1 <&- &
but when i close my ssh session, the process batch is killed right before.
Another problem that i have with nohup is:
After execute batch in background, i want to start another batch process with different parameters, but everytime i start a batch with nohup as described above, the previous one get closed and the new one is started.
I’ve tried to use:
nohup source batch > logfile.txt 2>&1 <&- &
but everytime i close the ssh session i got the batch process closed.
I’m expecting to use N times the command below:
nohup source batch > logfile.txt 2>&1 <&- &
that runs N different instances of a program, configured by a conf file.