Hi guys,
I have a short question.
I would like to start a process after an other one finished. Are there some commands to do so?
The first process is a python script i’ve started with nohup. This script will take a while to finish. Thats why i would like to write a script, that starts an other script right after the first one has finished.
Is this possible? If possible I would prefer a script written in python or bash
thank you! 
nohup python somescript.py
python nextscript.py
Ah ok thats means i will write a script, which starts both yhe processe. Great idea thx
but what can I do if the first process is alreadz running?
Then you should go back to the beginning. 
If started in console then suspend it with ctrl z, check with jobs.
Then
fg %1; echo "do this after"
Where %1 is the job number.
please next time, post such questions to the correct forum:
http://forums.opensuse.org/development/programming-scripting/
–
DenverD (Linux Counter 282315)
CAVEAT: http://is.gd/bpoMD
posted via NNTP w/TBird 2.0.0.23 | KDE 3.5.7 | openSUSE 10.3
2.6.22.19-0.4-default SMP i686
AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
CMedia 9761 AC’97 Audio
ok sorry next time i will think of it next time.
thank you all!!
On Mon, 07 Jun 2010 11:26:01 +0000, gecko9922 wrote:
> I would like to start a process after an other one finished. Are there
> some commands to do so?
The fairly common way to do this is to create some sort of semaphore
(say, create a temp file in /var/run while the first process is running;
at the end of the first script, remove the semaphore file) and then in
the second process, include a check to see if the semaphore file exists,
and if it does, either exit or loop back, delay, and check again.
Jim
–
Jim Henderson
openSUSE Forums Administrator