[ale] Quick script question
Jason Day
jasonday at worldnet.att.net
Mon Mar 3 22:13:07 EST 2003
On Mon, Mar 03, 2003 at 09:59:38PM -0500, Douglas Bridges wrote:
> I am trying to write a script to do something simple, but I have run across a
> little problem. My script is trying to fire off a program with many
> permutations of parameters. When it receives a valid parameter, it fires up a
> GUI. When it gets an invalid parameter, it errors out returning an error
> code ($? = 1). How can I check to see if the GUI was fired up in a bash
> script so that I can automatically try all of these different parameters.
> The GUI fires up within 2 seconds, so if I don't get an error code within
> that time, I can kill the process and assume it worked.
success=`ps x | grep <name of GUI> > /dev/null` ?
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list