I'm trying to say to Bash , wait for a Process Start / Begin. I'm trying by this way for example:
notepad=`pidof notepad.exe`
until [ $notepad > 0 ]
do
taskset -p 03 $notepad
renice -n 5 -p $notepad
sleep 5
renice -n 0 -p $notepad
done
well i have the follow questions:
why this generate a file called “0″ (the file are empty)
i dont wanna make a new file , just wait for the PID to check execution.
This is a Loop , but if the 2 commands are execute correclty , 1 time
how i can continue to done ???
For this its better use "until or while" ???
Another ideas for wait Process Start or Begin ???
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…