How to Run perl scripts using bash
Hi,
I've got a server running mandrake 9.2, and the bash (born again shell), and ActiveState Perl (newest edition). I jsut installed a lot of perl scripts (including mrtg) from my linux cd's; how can I run tose scripts. Thanks (I'm a total newbie) |
Just type the name of the script...
./<script-name>.pl Or whatever.. And make sure the script is pointing to the correct location that perl is installed to.. like the most common location is /usr/bin/perl |
Did you tried:
$ perl scriptname.pl At the top line in every script should be a kind of commented line.. like #!/bin/perl, that should point to the perl executable. If you've installed perl in some other place, it may not work. |
All times are GMT -5. The time now is 04:38 PM. |