#! mechanism on HP 9000-870 (HP-UX 8.0) 
Author Message
 #! mechanism on HP 9000-870 (HP-UX 8.0)

Hi,

Although Configure tells me that the 'sharpbang' (#!) mechanism works
on my machine, I can't get any perl scripts to run by themselves.

Why?

If I use the
        eval 'exec ........./perl -S $0 ....' if $running_under_some_shell
trick, everything works fine.

Any solutions (because I'd hate to add these two lines to any script I
receive c.q. have already received, and I don't like typing
        perl -S script.pl parameters
everytime.

My UNIX box is a HP 9000-870 running HP-UX 8.0.

--

    o                                                                    o  

 o--o--o   Tidal Waters Division                 2596 AA The Hague    o--o--o
  \ | /    Rijkswaterstaat                       The Netherlands       \ | /  
    o                                                                    o    



Sat, 24 Dec 1994 14:08:20 GMT  
 #! mechanism on HP 9000-870 (HP-UX 8.0)

:Hi,
:
:Although Configure tells me that the 'sharpbang' (#!) mechanism works
:on my machine, I can't get any perl scripts to run by themselves.
:
:Why?
:
:If I use the
:        eval 'exec ........./perl -S $0 ....' if $running_under_some_shell
:trick, everything works fine.
:
:Any solutions (because I'd hate to add these two lines to any script I
:receive c.q. have already received, and I don't like typing
:        perl -S script.pl parameters
:everytime.
:
:My UNIX box is a HP 9000-870 running HP-UX 8.0.

I thought #! worked on HPs.  Does this work?

    #!/bin/csh -f
    setenv

I'd try to find why #! isn't working, but if that fails, that you
simply pass everything through the nih script from the eg directory
in the perl distribution, which will go through the trouble of
placing the eval exec foo in front.  It does however use a full
pathname for perl, which you might not want.

--tom
--

    Besides, including <std_ice_cubes.h> is a fatal error on machines that
    don't have it yet.  Bad language design, there...  :-)



Sat, 24 Dec 1994 21:32:06 GMT  
 #! mechanism on HP 9000-870 (HP-UX 8.0)

It ssems to work here, but I am adding the pathname of the perl executable
after the #!.
We have several HP 710's, and 730's running 8.05

Bruce Young

--
========================================================================
Bruce Young                                         Rockwell Int.
                                                    4311 Jamboree Rd.
Tel : (714) 833-6774                                Newport Beach, CA.
Fax : (714) 833-6224                                             92660

And now a word on behalf of my employer:
Any opinions stated in the message may not reflect those of Rockwell Int.



Sun, 25 Dec 1994 02:26:40 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. perl un HP-UX 8.0 (9000/800) (how to do it)

2. perl on HP-UX 8.0 (9000/800) (help needed)

3. Perl 4.0 on HP 9000/300 HP/UX

4. getcwd problem on HP 9000/7xx Hp-UX 9.05

5. Compile perl5 on HP 7xx/HP-UX 8.0 ?

6. Perl 4.019 on HP 400 Hp/UX 8.0

7. Anyone have syperl on HP-UX 9000?

8. hp-ux gt A.08.02 C 9000/827

9. perl3 pl15, hp/ux 3.10 9000/800

10. hp/ux 3.10 on 9000/850, PL 14

11. Problems Building perl on HP-UX B.08.00 A 9000/43S

12. curseperl, HP 9000/8xx, HPUX 9.0

 

 
Powered by phpBB® Forum Software