It is currently Mon, 27 Jun 2022 12:42:47 GMT



 
Author Message
 Execute a sh script under perl and sh: sh script; perl script?
I can execute the following perl scripts under either shell or Perl
====
eval 'exec /usr/local/bin/perl5 -S $0 ${1+"$@"}'
        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
mw...@mindspring.com
http://www.**-**.com/ ~mwang    



 Fri, 16 Aug 2002 03:00:00 GMT   
 
   [ 1 post ] 

Similar Threads

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

2. scripts not executed without perl or sh

3. How to execute csh script in sh script ?

4. scripting advice? perl + sh

5. sh (bash), perl -ne scripts, and command subst.

6. sh (bash), perl -ne scripts, and comman

7. Translating csh scripts to sh (or perl)

8. Error in perl-generated sh script

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

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


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software