LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to Run perl scripts using bash (https://www.linuxquestions.org/questions/linux-software-2/how-to-run-perl-scripts-using-bash-119863/)

Boudewijn 11-25-2003 02:51 PM

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)

trickykid 11-25-2003 03:03 PM

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

ivanatora 11-26-2003 03:37 AM

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.