hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: ...scripting
andydis
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.


Uli
you don't seem like a beginer to me smile.gif
darren
#!/bin/sh

while [ 1 -eq 1 ]
do
./program
done

Have fun.
coder
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.