473,782 Members | 2,542 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: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;
$sth->finish;


Jul 19 '05 #1
1 7908
"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
here.
Jul 19 '05 #2

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

Similar topics

5
2565
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/>";
1
2301
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
3
19178
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:
1
4330
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
3
8249
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>
1
3569
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 /var/www/html/dotproject/modules/projects/reports/tasklogs.php on line 307 Could not open file to save PDF. ...
0
6857
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 had no luck for a week now. I've tried many different things, but w/ no luck. I even tried adding...
1
2796
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 Files\SWsoft\Plesk\Additional\Perl\bin\perl.exe use CGI::Carp 'fatalsToBrowser'; use strict; use warnings;
0
1751
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 users can access the block it doesn't seem to be working.
0
9639
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, 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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
tracyyun
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7492
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2874
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.