batch to bash rewrite help needed please
Im looking to write a bash script I can use as a cron for a program I use. I know what it would be like in w32 .bat language, but not sure how to port it to bash script.
Basically, I use hellanzb for downloading from newsgroups. I dump a nzb file in a folder, and the program autodownloads it. The problem is the program keeps the connections open to the usenet server even when its not downloading.
So i want to write a cron that runs every 5 mins or so and checks for the existance of a .nzb in the folder, and if it finds one, itll start the hellanzb program, and if it doesnt find one, itll stop it.
something like this:
if exist /home/myname/nzb/*.nzb goto START