On Thu, 9 Jan 2003, David Busby wrote: > How can I get the parent script to capture that return value? I've been > all over the BASH manual (more than one hour) and Google, still no luck.
Not sure what you're really trying to do. If you posted real code, that would help. The exit status of the last command is stored in $?, so: for I in 2004 2005 do ./myscript.php $I EXIT_STATUS=$? # Do something with the value of $EXIT_STATUS echo $EXIT_STATUS done -- "Of course I'm in shape! Round's a shape, isn't it?" -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list