RE: Running my perl script in Linux
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 12, 2003 4:53 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Running my perl script in Linux Hi, you have to insert the "she-bang"-Line as the first line, example: #!/usr/local/bin/perl and then in UNIX-Systems you have to set the path of your script or start it so, example: $ ./myscript.pl regards Friedel Wittrock -Ursprüngliche Nachricht- Von: Bautista, Rodel D.(Digitel-GSM) [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. November 2003 07:47 An: PERL-WIN32-USERS Betreff: Running my perl script in Linux > 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 [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Running my perl script in Linux
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 prove it's there). > -Original Message- > From: Ben-yaakov Yehuda [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 12, 2003 3:10 PM > To: 'Bautista, Rodel D.(Digitel-GSM)'; PERL-WIN32-USERS > Subject: RE: Running my perl script in Linux > > > 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. -- ,-/- __ _ _ $Bill LuebkertMailto:[EMAIL PROTECTED] (_/ / )// // DBE CollectiblesMailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_http://dbecoll.tripod.com/ (My Perl/Lakers stuff) ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Running my perl script in Linux
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: Or run the script as ./yourscript.pl Avi Liani. UNIX System Admin. -Original Message- From: Xu, Qiang (XSSC SGP) [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 9:44 AM To: Bautista, Rodel D.(Digitel-GSM); Ben-yaakov Yehuda; PERL-WIN32-USERS Subject: RE: Running my perl script in Linux 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. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Running my perl script in Linux
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. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Running my perl script in Linux
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? thanks and regards. -Original Message- From: Ben-yaakov Yehuda [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:10 PM To: 'Bautista, Rodel D.(Digitel-GSM)'; PERL-WIN32-USERS Subject: RE: Running my perl script in Linux 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] Sent: Wednesday, November 12, 2003 8:47 AM To: PERL-WIN32-USERS Subject: Running my perl script in Linux > 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 [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Running my perl script in Linux
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] Sent: Wednesday, November 12, 2003 8:47 AM To: PERL-WIN32-USERS Subject: Running my perl script in Linux > 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 [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: Running my perl script in Linux
First of all you must have the perl in the PATH Second, write in the firs line of the script : #! 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, 2003 8:47 AM To: PERL-WIN32-USERS Subject: Running my perl script in Linux > 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 [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs