If you see fewer posts. . .

it's because I don't post much anymore. This may change at any time. But PLEASE feel free to look through our Flickr stream (over on the right), which is updated almost every day.

Tuesday, July 29, 2008

Prompt to continue in a BASH script

# Present a prompt to procees or skip if noprompt_flag is set to 1.
# Uses a variable name of $noprompt_flag to show the prompt or not.
if [ $noprompt_flag = 1 ];
then echo -n ""
echo -n "Hit enter to change files, and restart servers. Ctrl-C to exit."
read continue