473,573 Members | 2,749 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:


use DBI;
use strict;

my $dbh = DBI->connect('DBI:m ysql:traffic:lo calhost',
'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;

Jul 19 '05 #1
1 7901
"Goblin" <st***********@ skynet.be> wrote in message news:<3f******* **************@ reader1.news.sk ynet.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
Jul 19 '05 #2

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

Similar topics

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/>"; //open the file echo "<B>Opening file text.txt for writing:</B>"; $fp = fopen('text.txt',w); echo "<BR/>";
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 /home/fhlinux199/f/fortunesgreenradio.co.uk/user/htdocs/scripts/footy_subscribers.php on line 15 Couldn't open database The relevant code is ; <?php
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 Event log. My environment: Windows Server 2003, IIS 6, WSH, Classic ASP, Vbscript Below is the code and the error: Code:
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 coming from: sem_trywait: Permission denied sem_wait: Permission denied sem_post: Permission denied
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() Traceback (most recent call last): File "<stdin>", line 1, in <module>
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 permission denied problem. Warning: fopen(/var/www/html/dotproject/files/temp/temp1.pdf): failed to open stream: Permission denied in...
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 written in Perl just for testing. I believe I need to find the correct <Directory> entry or some other Directive in Apache to make this work, but I've...
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 Files\SWsoft\Plesk\Additional\Perl\bin\perl.exe use CGI::Carp 'fatalsToBrowser'; use strict; use warnings;
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 problem though is when I want a user that is non-root to access the block I keep getting Permission Denied error. I set the S_IWOTH so that other...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.