Eric:
I have Perl 5.8.8 on Fedora Core 5 - Kernel
2.6.18-1.2257.fc5. My perl scripts are in the
following folder /programs/scripts/perl ...I can execute
it directly from that directory or
with the following cmd:
perl /root/programs/scripts/perl perlping.pl
For what it's worth I would check my PATH , by 'echo
$PATH' make sure you have the
correct directories in the PATH. Hope this helps...
Regards,
Scott
Eric Boyajian <ericboyajian yahoo.com> wrote:
This is possibly more of a Red Hat Linux problem
than a Perl problem,
but perhaps someone here can help me. I'm trying to migrate
a simple
website that uses HTML forms and Perl scripts to a new
computer that
was recently set up with Red Hat Linux Enterprise ES 4.
I have a perl script called test.cgi as follows:
====================================
#!/usr/bin/perl -W
print("Hello Worldn");
====================================
The script has mode file permission 777. The folder in which
it
resides (and all parent folders) have permission 755.
If I call the Perl interpreter directly and pass the script
as an
argument, it works:
[root testlinux cgi-bin] # /usr/bin/perl test.cgi
Hello World
[root testlinux cgi-bin] #
If I run it as a script as follows, it does not work:
[root testlinux cgi-bin] # ./test.cgi
[root testlinux cgi-bin] #
The disk is mounted as:
/dev/sda3 on / type ext3 (rw)
Does anyone have suggestions as to what to look for to
resolve this?
Thanks,
Eric
---------------------------------
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
[Non-text portions of this message have been removed]
Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/perl-beginner/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http
://groups.yahoo.com/group/perl-beginner/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:perl-beginner-digest@yahoogroups.com
mailto:perl-beginner-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
perl-beginner-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|