David Busby wrote:

Here's the BASH code that I currently have

#!/bin/bash
for YEAR in 2003 2004 2005 2006
do
 CMD="./import.php $YEAR"
 $CMD
done

#!/bin/bash
for YEAR in $(seq 2003 1 2006)
do
./import.php $YEAR
RETVAL=$?
echo $RETVAL;
done

You can create different RETVALs if you want to store it all, then echo it all at the end.

--
M | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.






--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to