Thursday, September 16, 2010

Portable script shebang

Let say you need a script to execute on multiple systems but the admins and OS's all have there own idea on where things belong. Here is a quick way to get the script to locate the interpreter 99% of the time

#!/usr/bin/env perl

No comments:

Post a Comment