473,507 Members | 13,917 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

bash: /root/remstats.pl: /usr/bin/perl: bad interpreter: Permission denied

Hello i have a little code for updating somethink in my SQL database.
I get the error: bash: /root/remstats.pl: /usr/bin/perl: bad interpreter:
Permission denied
Can someone tell me what's wrong? Or how i can fix that?

Greets, Bert

The code of the script:

#!/usr/bin/perl

use DBI;
use strict;

my $dbh = DBI->connect('DBI:mysql:traffic:localhost',
'trafficadmin', # user name
'TRAff200AGo', # password
{ RaiseError => 1});
if (!$dbh) { die "Cannot connect to database" }
my $query = 'update upload SET byte = 0';
my $sth = $dbh->prepare($query);
if (!$sth) { die "Illegal query: $query" };
$sth ->execute;
$sth->finish;


Jul 19 '05 #1
1 7893
"Goblin" <st***********@skynet.be> wrote in message news:<3f*********************@reader1.news.skynet. be>...
I get the error: bash: /root/remstats.pl: /usr/bin/perl: bad interpreter:
Permission denied Can someone tell me what's wrong?
Have you eliminated the obvious? Just reading the error literally,
bash is unable to execute the program /usr/bin/perl to interpret the
script /root/remstats.pl because the current process does not have the
permissions needed to do so.
Or how i can fix that?
Fix the permissions on /usr/bin/perl.
The code of the script:

... is not relevant as you are getting an error from bash before the
Perl script even loads.

This newsgroup does no exist (see FAQ). Please do not start threads
here.
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2552
by: jn | last post by:
They have a server here that runs PHP as root (which is probably bad). I wrote a test script that tries to create a text file. echo "<B>I'm running as user: " . $_ENV . "</B><BR/><BR/>"; ...
1
2280
by: charlie fortune | last post by:
I can't open a dbm in my webspace, the message I get is Warning: dba_open(./subscribers.db): failed to open stream: Permission denied in...
3
19117
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application...
1
4299
by: Mark E. Hamilton | last post by:
Sorry, I probably should have re-stated the problem: We're using Python 2.3.5 on AIX 5.2, and get the follow error messages from some of our code. I haven't yet tracked down exactly where it's...
3
8235
by: John Machin | last post by:
Hi, Here's what's happening: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) on win32 Type "help", "copyright", "credits" or "license" for more information. | >>import os | >>os.tmpfile()...
1
3543
by: doctorhardik | last post by:
other interesting thing i observe during my work which i describe below: i am using dotproject2.0.4 on fc3. it is working fine. but i want to generate pdf file report during this time i face...
0
6833
by: phil469 | last post by:
I'm having an issue when trying to read a file in a user's homedir from a cgi script. I have a virtual host section in my httpd.conf file which I'll include. The cgi script is a very basic script...
1
2771
rajiv07
by: rajiv07 | last post by:
Hi to all, I have a simple script to write something in to a file and read from the file.But it gives Permission Denied error My Script #!C:\Program...
0
1714
by: kardon33 | last post by:
Hello Bytes, Computer Type: Debian Lenny Linux x86 I am trying to use shmget to create a block of shared memory. I managed to get that working fine, I run the program always in root. My...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.