Howto make a twoline Cronscript i Webmin

sundberg

Registered
Hi,

I'm trying to make Webmin use Cron to execute a local file where I put two lines of command:
cd /Users/myusername/Desktop/images
/usr/local/bin/wget -v --cache=on --cookies=on --glob=off --tries=0 --proxy=off -e robots=off -x -nH --cut-dirs=7 -nc -r --level=1 -np -A gif,jpeg,jpg,tiff,png,tif,pict --wait=1 --random-wait http://images.myprovider.com/costumer/images/

Webmin makes cron to executes the file but only the first line?
Any tips on how to make this work?
 
I did a shell script but as the newbie I am I missed to make a first line in the script with: #!/bin/bash

Now it works fine the complete shell script is now like his in a text file and is called by webmins cron interface:
#!/bin/bash
cd /Users/myusername/Desktop/images
/usr/local/bin/wget -v --cache=on --cookies=on --glob=off --tries=0 --proxy=off -e robots=off -x -nH --cut-dirs=7 -nc -r --level=1 -np -A gif,jpeg,jpg,tiff,png,tif,pict --wait=1 --random-wait http://images.myprovider.com/costumer/images/

Thanks for the help.
 
Back
Top