I'm thinking if my run.py script can act in two different mode.
when in nohup mode: nohup python run.py & ,act like full log output mode.but in normal mode python run.py, act like log suppressed mode. So it will be tidy and clear for the user.
So.My question: How does my runnable python script knonw itself running in nohup mode or normal mode?