LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-25-2003, 02:51 PM   #1
Boudewijn
Member
 
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


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

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

Rep: Reputation: 31
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.
 
  


Reply


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


All times are GMT -5. The time now is 03:17 AM.

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