PDA

View Full Version : running a script from command line?


sv85
03-15-2005, 03:27 AM
Hey guys...

how do i run a (.pl) file from command line?

thank you very much?

Yakisoba
03-15-2005, 04:04 AM
cd to the folder where the .pl file you want to run is kept.

then type: perl filename.pl

sv85
03-15-2005, 04:33 AM
where do i type all this?

Yakisoba
03-15-2005, 06:00 AM
if you are using windows...

in the start menu select "run"

type "cmd" in the textbox and hit enter.

the command prompt window will pop up.

sv85
03-15-2005, 06:05 AM
but that will run it only on my computer and not my webserver right? how do i run it on my webserver using a command line.

i tried using ms dos and ftp-ed my server and tried

"perl sciptname.pl"

but i get "invaild command"

thanks for all the help

Yakisoba
03-15-2005, 06:15 AM
I'm not sure if this is what your looking for...

Try this link, it is a short tutorial on uploading and running perl scripts from command line.

http://www.pageresource.com/cgirec/ptut2.htm

sv85
03-17-2005, 01:32 AM
Got it!
thanks for all your help!