Re: [OT] script Perl

2006-02-14 Per discussione morphy
avete tutti ragione errore da newbie idiota

grazie David


On Tue, 14 Feb 2006 15:14:45 +0100 (CET)
Walter Valenti <[EMAIL PROTECTED]> wrote:

> 
> > bash: ./PerlProva.pl: /usr/lib/perl: bad interpreter: Permission denied
> > debian:/home/appoggio/Perl#
> > 
> > cosa devo fare per far funzionare lo script?
> > 
> > grazie David
> > 
> 
> Invece di
> #!/usr/lib/perl
> metti
> #!/usr/bin/perl
> 
> In /usr/lib ci sono librerie varie
> L'eseguibile che interpreta il tuo codice è in /usr/bin
> 
> Walter
> 
> --
> Per favore non inviatemi allegati in formato MS Office.
> Utilizza alternativamente documenti in formato OpenDocument.
> 
> Software is like sex, it is better when it is free
> --Linus B. Torvalds
> 
> 
>   
> ___ 
> Yahoo! Mail è gratis! 1GB, Agenda, Rubrica, Antispam, Antivirus, POP3, 
> messaggi da 10MB
> 
> 
> -- 
> Per REVOCARE l'iscrizione alla lista, inviare un email a 
> [EMAIL PROTECTED] con oggetto "unsubscribe". Per
> problemi inviare un email in INGLESE a [EMAIL PROTECTED]
> 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 





Re: [OT] script Perl

2006-02-14 Per discussione Walter Valenti

> bash: ./PerlProva.pl: /usr/lib/perl: bad interpreter: Permission denied
> debian:/home/appoggio/Perl#
> 
> cosa devo fare per far funzionare lo script?
> 
> grazie David
> 

Invece di
#!/usr/lib/perl
metti
#!/usr/bin/perl

In /usr/lib ci sono librerie varie
L'eseguibile che interpreta il tuo codice è in /usr/bin

Walter

--
Per favore non inviatemi allegati in formato MS Office.
Utilizza alternativamente documenti in formato OpenDocument.

Software is like sex, it is better when it is free
--Linus B. Torvalds



___ 
Yahoo! Mail è gratis! 1GB, Agenda, Rubrica, Antispam, Antivirus, POP3, messaggi 
da 10MB


-- 
Per REVOCARE l'iscrizione alla lista, inviare un email a 
[EMAIL PROTECTED] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [EMAIL PROTECTED]

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT] script Perl

2006-02-14 Per discussione Riccardo Tortorici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Feb 14, 2006, at 2:42 PM, morphy wrote:


Ho scritto un piccolo script in perl sia con estensione txt sia con pl
il listato è quì sotto:

#!/usr/lib/perl


Tu hai l'interprete perl installato sotto /usr/lib?
Sostituisci #!/usr/lib/perl con l'output del comando: which perl,  
vedrai che funziona.



$a = 10;
$b = "Sono una stringa";
print "a = $a\n";
print "b = $b1n";

quì si vede la versione del perl installato:

[EMAIL PROTECTED]:~$ perl -v


"which perl"
ti mostra il path assoluto del binario perl.
Ric

- - Riccardo Tortorici -
Linux Registered User #365170
Count yourself @ http://counter.li.org/ !
- --
Encrypted Mails Welcome
GPG key: 0xF3FCE306 available on  wwwkeys.pgp.net
GPG key fingerprint = C1C4 CA17 5135 8F5C 94C2  3347 4A22 67DB F3FC E306
- --
no1984.org - Stop TCG!
- --
HTML email can be dangerous, is not always readable, wastes bandwidth
and is simply not necessary please don't send them to me!





-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFD8ePmSiJn2/P84wYRAujOAJ0ZAVDJiOtfsffJAEtkO9hGvVA0QwCfQ6SI
KDTo0Ar4hAhqQ7h/+2mWP5M=
=g+/J
-END PGP SIGNATURE-



Re: [OT] script Perl

2006-02-14 Per discussione Matteo Castellini
On Tue, 14 Feb 2006 14:42:12 +0100
morphy <[EMAIL PROTECTED]> wrote:

> #!/usr/lib/perl

Il path è scorretto, sostituiscilo con #!/usr/bin/perl


byex! matteo

-- 
Matteo Castellini
GPG key: 0x4D9CF9F9
Jabber ID: [EMAIL PROTECTED]



[OT] script Perl

2006-02-14 Per discussione morphy
Ho scritto un piccolo script in perl sia con estensione txt sia con pl
il listato è quì sotto:

#!/usr/lib/perl
$a = 10;
$b = "Sono una stringa";
print "a = $a\n";
print "b = $b1n";

quì si vede la versione del perl installato:

[EMAIL PROTECTED]:~$ perl -v

This is perl, v5.8.4 built for i386-linux-thread-multi

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

questo invece èl'output:

[EMAIL PROTECTED]:/home/appoggio/Perl$ chmod +x PerlProva
[EMAIL PROTECTED]:/home/appoggio/Perl$ ./PerlProva
bash: ./PerlProva: /usr/lib/perl: bad interpreter: Permission denied

debian:/home/appoggio/Perl# chmod +x PerlProva.pl
debian:/home/appoggio/Perl# ./PerlProva.pl
bash: ./PerlProva.pl: /usr/lib/perl: bad interpreter: Permission denied
debian:/home/appoggio/Perl#

cosa devo fare per far funzionare lo script?

grazie David