public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* Perl scripts
@  Geoff Shang
   ` Ryan Mann
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Geoff Shang @  UTC (permalink / raw)
  To: speakup

Hi all:

OK, can someone tell me how to execute a perl script?  I assumed that I
could run it like any other since it has the /usr/bin/perl thing at the
top, but apparently not.

Geoff.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Perl scripts
   Perl scripts Geoff Shang
@  ` Ryan Mann
   ` Kerry Hoath
   ` Bart Bunting
  2 siblings, 0 replies; 6+ messages in thread
From: Ryan Mann @  UTC (permalink / raw)
  To: speakup; +Cc: speakup

Try typing perl scriptname. For example if the name of the script is 
test.pl type "perl test.pl"



Ryan M


On Fri, 17 Mar 2000, Geoff Shang wrote:

> Hi all:
> 
> OK, can someone tell me how to execute a perl script?  I assumed that I
> could run it like any other since it has the /usr/bin/perl thing at the
> top, but apparently not.
> 
> Geoff.
> 
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Perl scripts
   Perl scripts Geoff Shang
   ` Ryan Mann
@  ` Kerry Hoath
     ` Victor Tsaran
   ` Bart Bunting
  2 siblings, 1 reply; 6+ messages in thread
From: Kerry Hoath @  UTC (permalink / raw)
  To: speakup; +Cc: speakup

It has to be executable; and it should have
#!/usr/bin/perl at the top; make sure it doesn't say
#!/usr/local/bin/perl or it mightn't go. You can also type
perl scriptname
just as you can type sh scriptname under the shell.

Regards, Kerry.
On Fri, Mar 17, 2000 at 07:26:26AM +1100, Geoff Shang wrote:
> Hi all:
> 
> OK, can someone tell me how to execute a perl script?  I assumed that I
> could run it like any other since it has the /usr/bin/perl thing at the
> top, but apparently not.
> 
> Geoff.
> 
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 

-- 
--
Kerry Hoath: kerry@gotss.eu.org
Alternates: kerry@emusys.com.au kerry@gotss.spice.net.au or khoath@lis.net.au
ICQ UIN: 8226547



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Perl scripts
   Perl scripts Geoff Shang
   ` Ryan Mann
   ` Kerry Hoath
@  ` Bart Bunting
  2 siblings, 0 replies; 6+ messages in thread
From: Bart Bunting @  UTC (permalink / raw)
  To: speakup

Geoff Shang writes:
you should be able to.
make sure you've got the exicute bit set.
Bart

 > Hi all:
 > 
 > OK, can someone tell me how to execute a perl script?  I assumed that I
 > could run it like any other since it has the /usr/bin/perl thing at the
 > top, but apparently not.
 > 
 > Geoff.
 > 
 > 
 > 
 > _______________________________________________
 > Speakup mailing list
 > Speakup@braille.uwo.ca
 > http://speech.braille.uwo.ca/mailman/listinfo/speakup


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Perl scripts
   ` Kerry Hoath
@    ` Victor Tsaran
  0 siblings, 0 replies; 6+ messages in thread
From: Victor Tsaran @  UTC (permalink / raw)
  To: speakup

Or if ou would like to know the path of PERL binary for sure, type

which perl

to get the existing path to the PERL binary. To get rid of CTRLF's, what I
do usually do is to open the same PERL script in Pico. Then press space bar
once, Pico will say: "File modified", then do backspace once to get rid of
that space you just typed, then save normally. Pico will get rid of those
CTRLF's for you. Neat!
Regards,
Vic

----- Original Message -----
From: "Kerry Hoath" <kerry@gotss.eu.org>
To: <speakup@braille.uwo.ca>
Cc: <speakup@braille.uwo.ca>
Sent: Thursday, March 16, 2000 2:41 PM
Subject: Re: Perl scripts


> It has to be executable; and it should have
> #!/usr/bin/perl at the top; make sure it doesn't say
> #!/usr/local/bin/perl or it mightn't go. You can also type
> perl scriptname
> just as you can type sh scriptname under the shell.
>
> Regards, Kerry.
> On Fri, Mar 17, 2000 at 07:26:26AM +1100, Geoff Shang wrote:
> > Hi all:
> >
> > OK, can someone tell me how to execute a perl script?  I assumed that I
> > could run it like any other since it has the /usr/bin/perl thing at the
> > top, but apparently not.
> >
> > Geoff.
> >
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> --
> --
> Kerry Hoath: kerry@gotss.eu.org
> Alternates: kerry@emusys.com.au kerry@gotss.spice.net.au or
khoath@lis.net.au
> ICQ UIN: 8226547
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Perl scripts
       [not found] <Pine.LNX.4.10.10003161433290.21865-100000@mud.blinksoft.com>
@  ` Geoff Shang
  0 siblings, 0 replies; 6+ messages in thread
From: Geoff Shang @  UTC (permalink / raw)
  To: speakup

Hi:

Seems the problem was that it had cr/lf pairs.  Beats me why as it was
almost certainly sent from a linux machine.  Now I've got to write back to
the sender anyway because it won't run because it can't find something.

Geoff.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Perl scripts Geoff Shang
 ` Ryan Mann
 ` Kerry Hoath
   ` Victor Tsaran
 ` Bart Bunting
     [not found] <Pine.LNX.4.10.10003161433290.21865-100000@mud.blinksoft.com>
 ` Geoff Shang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).