LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2004, 05:13 PM   #1
kurtb1234
LQ Newbie
 
Registered: Dec 2004
Location: California
Posts: 3

Rep: Reputation: 0
Permision Denied message when trying to run a Perl Script


I have a new install of Redhat linux 8.0. I used the command:

# perl -v

and it returned:

perl v5.8.0 for linux i386.

I then used the command:

# which perl

and it returned:

/usr/bin/perl

I have some older scripts that I have run many times on another machine and I adjusted them to #! /user/bin/perl.

The files have RWX permisions and I am logged in as root. When I try to run a script:

# ./srcipt1.pl

I get:

bash: ./scrip1.pl: Permission denied

I am new enough to not have a clue what to change, try or look for. Any suggestions would be greatly appreciated.

Thanks in advance.....
 
Old 12-09-2004, 05:21 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Re: Permision Denied message when trying to run a Perl Script

Quote:
Originally posted by kurtb1234

I have some older scripts that I have run many times on another machine and I adjusted them to #! /user/bin/perl.
Probably just a typo, but you mean #!/usr/bin/perl
 
Old 12-09-2004, 05:30 PM   #3
kurtb1234
LQ Newbie
 
Registered: Dec 2004
Location: California
Posts: 3

Original Poster
Rep: Reputation: 0
I double checked and it is #!/usr/bin/perl.
 
Old 12-09-2004, 05:48 PM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
what happens if you type perl ./script1.pl?
 
Old 12-10-2004, 12:53 PM   #5
kurtb1234
LQ Newbie
 
Registered: Dec 2004
Location: California
Posts: 3

Original Poster
Rep: Reputation: 0
That did the trick....

Thank you very much!
 
  


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
unable to run perl script using browser madhuri Debian 3 12-02-2005 04:46 PM
unable to run perl script using browser madhuri Linux - Distributions 1 11-22-2005 02:19 PM
crontab failure: permission denied trying to run script hedpe Linux - Software 5 05-03-2005 07:07 PM
How to run a perl script as a daemon ? paonethestar Programming 17 11-06-2003 08:53 PM
can't get perl script to run from www victorus Linux - General 0 03-27-2001 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:59 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration