The script interpreter (as defined on the first line of a script with the shebang "#!", is typically a binary, such as 'sh' or 'perl'. I have a need to use a Perl script as the script interpreter. For example, my script (test.msi) would look like this:
#!/usr/local/bin/myScriptInterpreter.pl
# some data
# some more data
My script interpreter (myScriptInterpreter.pl) might look like this:
#!/usr/local/bin/perl
print "This is a test\n";
If I were to run "./test.msi", it should launch myScriptInterpreter.pl, and print "This is a test". It doesn't. No errors, no output. It just comes back.
Is there a way for SCO 5.0.5 to do this??
-with thanks
#!/usr/local/bin/myScriptInterpreter.pl
# some data
# some more data
My script interpreter (myScriptInterpreter.pl) might look like this:
#!/usr/local/bin/perl
print "This is a test\n";
If I were to run "./test.msi", it should launch myScriptInterpreter.pl, and print "This is a test". It doesn't. No errors, no output. It just comes back.
Is there a way for SCO 5.0.5 to do this??
-with thanks