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 reply to Re^3: wrapper script to conditionally exec different perls? (#!->#!->#!->...)
by stackspace
in thread wrapper script to conditionally exec different perls?
by stackspace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |