I have a program that executes other programs in the background. The main program would be programA, and the programs executed by the main one, would be program1a, program1b and program1c.
I need the programs to continue the execution no matter if the shell connection is lost, so I'm using the
However, each program has its own log file, like this:
When an error occurs in one of the child programs, the error message is displayed in the LOG file corresponding to the main program.
The programA is invoked from another routine.-
nohup nice -10 programA 2>&1 > logfileA.txt
Inside programA it invokes the other 3 programs.-
nohup nice -10 program1a 2>&1 > logfile1a.txt nohup nice -10 program1b 2>&1 > logfile1b.txt nohup nice -10 program1c 2>&1 > logfile1c.txt
When an error occurs, it is showm or displayed in
logfileA.txt, instead of being displayed in
How can I know what program produced the error that is displayed in the main program's log file?