Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-25-2003, 02:51 PM   #1
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Rep: Reputation: 30
How to Run perl scripts using bash


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)
Old 11-25-2003, 03:03 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Just type the name of the script...


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
Old 11-26-2003, 03:37 AM   #3
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
Did you tried:
$ perl

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bash & perl scripts scribbler001 Programming 1 04-26-2005 04:56 AM
scripting to run perl scripts newbie_m Linux - Newbie 1 01-12-2005 11:33 AM
how can I run my perl scripts in emacs linjia Linux - Software 1 12-05-2004 10:30 AM
my perl scripts wont run need help unixmad Linux - Software 4 09-14-2004 08:04 PM
bash scripts won't run aamehl Linux - General 10 09-06-2003 02:25 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration