Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: wrapper script to conditionally exec different perls? (#!->#!->#!->...)by stackspace (Initiate) |
on Feb 15, 2012 at 22:41 UTC ( [id://954094]=note: print w/replies, xml ) | Need Help?? |
Tye proposed using a compiled language for the wrapper program. Indeed, a simple C program performs the desired wrapping perfectly. Thanks much! I suspect my problem had to do with something being run via "sh -c", even when my wrapper was a perl script. I got the same "exec: format error" that Tye did when strace'ing my script.
In Section
Seekers of Perl Wisdom
|
|