Execute a sh script under perl and sh: sh script; perl script?

Execute a sh script under perl and sh: sh script; perl script?

Post by Michael Wa » Tue, 29 Feb 2000 04:00:00



I can execute the following perl scripts under either shell or Perl
====

        if 0;
[perl scripts ...]
====
i.e.
sh script
perl script

How do I execute a sh script under either shell or Perl
simililar to what shown above?

Thanks.
--
Michael Wang

http://www.mindspring.com/~mwang    

 
 
 

1. script or command to find all scripts (ksh, sh, perl, etc) in a workspace

is there any quick way of finding all the executable scripts in a
directory structure. I'm using the following find(1) command  :
       find . -name SCCS -prune -o -follow -depth -exec file {} \;
-print | \
       grep executable|awk -F: '{print $1}'

is there a quicker way (this is really slow)

2. Maxator ATA/100 IDE Card

3. scripts not executed without perl or sh

4. ipmasqadm

5. How to execute csh script in sh script ?

6. DES To MD5

7. ASCII 128-255 in sh script: sh strips bit 7!!!

8. Help with Xconfig using Mach32 and NEC3D

9. make sh-script compatible between SUN-sh and bash

10. Scripting in Solaris: pushing installs via sh or perl or? ? ?

11. Translating csh scripts to sh (or perl)

12. scripting advice? perl + sh

13. Marking misspelled words with a script (csh, sh, perl, whatever)