[Techtalk] shell scripting

Emma Jane Hogbin emmajane at xtrinsic.com
Mon Feb 10 17:51:24 EST 2003

Hey all:

I'm trying to write a little shell script that will run a bunch of
programs in sequence. The script looks something like this:

/usr/bin/htdig -a -c /etc/htdig/fr.conf -s -v > /home/emma/dig.04.txt
/usr/bin/htmerge -a -c /etc/htdig/fr.conf -s -v > /home/emma/merge.04.txt
/usr/bin/htfuzzy -c /etc/htdig/fr.conf accents
/usr/bin/htdig -a -c /etc/htdig/en.conf -s -v > /home/emma/dig.04b.txt
/usr/bin/htmerge -a -c /etc/htdig/en.conf -s -v > /home/emma/merge.04b.txt

The problem is I need each line to run only after the previous line has
finished. I thought that it would do that automagically, but it doesn't
seem to work that way and I get two instances of htdig going at the same
time and everything falls apart.

How do I say (in the shell script), "don't start until it's your turn"?

thanks :)


Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]

More information about the Techtalk mailing list