Welcome to WebmasterWorld Guest from 54.166.87.123

Forum Moderators: bakedjake

Message Too Old, No Replies

How do I test run this shell script?

   
3:50 pm on Jul 14, 2006 (gmt 0)

10+ Year Member



I've made a script for backing up my websites. I want to test it. It's located here:
/etc/cron.hourly/backupscript.sh

How can I force it to run? When I navigate to the cron.hourly directory and type backupscript.sh, I just get this message:
: bad interpreter: No such file or directory

4:05 pm on Jul 14, 2006 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



If you are in the directory, then the path to run the script would be:

[b]./[/b]backupscript.sh
4:13 pm on Jul 14, 2006 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Don't forget to make the script executable ;)
10:40 pm on Jul 14, 2006 (gmt 0)

10+ Year Member



If you want to see everything that it's doing, including variables, etc, run it with:


sh -x backupscript.sh