Welcome to WebmasterWorld Guest from 54.163.52.98

Forum Moderators: bakedjake

Message Too Old, No Replies

How do I test run this shell script?

     

matthewamzn

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

encyclo

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

coopster

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 ;)

MattyMoose

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
 

Featured Threads

Hot Threads This Week

Hot Threads This Month