andydis
Dec 6 2003, 10:38 PM
hi,
i got cygwin and used it for along time, i normally rely on batch files but i want to create a ".sh" script that just loops a perl program , example below if it was as easy as a batch file.
:loop
perl prog.pl
goto loop
can anybody help..... i have googled for it but comes up with allsorts wat i dont want.
you don't seem like a beginer to me
darren
Dec 7 2003, 01:39 PM
#!/bin/sh
while [ 1 -eq 1 ]
do
./program
done
Have fun.
coder
Dec 7 2003, 01:47 PM
make sure to check out some of the other shells... like csh, ksh, bash, etc...
http://www.faqs.org/faqs/unix-faq/shell/shell-differences/here is a nice page on shells and explains a lot... a good short read IMO.