automated process

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
nganju
Posts: 82
Joined: Mon Aug 16, 2004 8:47 pm
Location: U.S. Geological Survey, Woods Hole
Contact:

automated process

#1 Unread post by nganju »

Hello-
I am running on a dual-processor Linux desktop, and I want to have a simple shell script command that recognizes when the oceanO process ends, and invokes a command to start another run. I am not very familiar with linux-type commands, so any help is appreciated, thanks in advance...

mathieu

#2 Unread post by mathieu »

To run several command in sequence do

Code: Select all

./FirstCommand && ./SecondCommand && ./ThirdCommand
The advantage is that if an error occurs, then all stops.

When things become more complicate, you create a file, say, ListComm

Code: Select all

#!/bin/sh
./firstCommand
./SecondCommand
you put it as executable with

Code: Select all

chmod +x ListComm
and you execute it by

Code: Select all

./ListComm
Then if you want to run things in the background you can use screen
but screen is not systematically installed and it needs root rights to be installed.

nganju
Posts: 82
Joined: Mon Aug 16, 2004 8:47 pm
Location: U.S. Geological Survey, Woods Hole
Contact:

#3 Unread post by nganju »

thanks for the advice, that is exactly what i needed...

Post Reply