Hi and Good Day To All!
How can I run my perl scripts in Linux without appending perl in the
command?
for example:
$ myscript.pl
instead of
$ perl myscript.pl
thanks in advance.
Rodel D. Bautista
___
Perl-Win32-Users mailing list
First of all you must have the perl in the PATH
Second, write in the firs line of the script :
#!perl interpreter
e.g. : #!/usr/bin/perl
Avi Liani.
UNIX System Admin.
-Original Message-
From: Bautista, Rodel D.(Digitel-GSM) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12,
hi,
make sure that the first line in your script is:
!#/usr/bin/perl [or wherever your perl is installed]
also make sure that the perl script has execute permition for the user you
are running from.
-Original Message-
From: Bautista, Rodel D.(Digitel-GSM) [mailto:[EMAIL PROTECTED]
Bautista, Rodel D.(Digitel-GSM) wrote:
Hi To All!
I've previously done what you suggested but still I can't run the
script as is.
Are there any other way to accomplish it?
echo $PATH to see whether your path has included where perl interpreter
lies.
Hi,
You also need to give an executing permition to the script by
Running :
Chmod 755 ypurscript.pl
And add the location of the script to the PATH by
Export PATH=$PATH:your location
Or run the script as ./yourscript.pl
Avi Liani.
UNIX System Admin.
-Original Message-
From: Xu, Qiang
Bautista, Rodel D.(Digitel-GSM) wrote:
Hi To All!
I've previously done what you suggested but still I can't run the script as
is.
Are there any other way to accomplish it?
Post a small failing script (10 lines or less) and an ls -l of the
script (to show perms) and an ls -l of perl (to
Hi to all, thank you very much for your help. I've finally made my script
run (thanks to the advise of Sir Bill to modify the shebang line since I've
uploaded my script from a windoze system).
-Original Message-
From: Wittrock, Friedel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November
Guys,
I am running ActiveState Perl v5.8.0 straight out of the box, with the following test
piece of code for forking and waiting for child processes. Perl.exe generates a GPF at
0x000c as the child is quitting. Anyone have any ideas what might be going wrong?
I based the code on the code
I guess it must be a permissions problem i.e. although I am
allowed to connect, create temp files etc. Apache cannot.
Does that make sense and can I fix it?
If you're admin on the machine you're trying to run this on (or know who is
and can convince him/her to do this) then create a new user