Web Hosting Talk







View Full Version : stupid question: how do you run a script?


DannyITR
06-23-2004, 01:10 PM
I have a linux server and I need to run a script called "runweblogs" located in my /scripts folder. Using putty I went into the /scripts folder and typed runweblogs but nothing happened. What is the command?

chuckt101
06-23-2004, 01:13 PM
something should have happened. Either it ran and exited or you got an error message. Either way, something should have happened.

Patrick
06-23-2004, 02:10 PM
Try running: ./runweblogs and if that fails chmod it with 777.

Naes
06-23-2004, 02:47 PM
If your script stats with something like

#!/bin/sh

try


sh /path/to/script

DannyITR
06-23-2004, 03:12 PM
ok my mistake was entering the directory. If I type /scripts/runweblogs from the command prompt it worked. Thanks guys.

SPaReK
06-23-2004, 03:36 PM
If you are already in the /scripts directory typing:

./runweblogs

should work