Pass argument to the default application that runs a file



The nice thing in Linux is that you can control which application will run your file by adding shebang
Sometimes you want to also pass an argument  to it

One way to do it is like this
#!/bin/sh 
":" //# comment; exec /usr/bin/env node --inspect "$0" "$@" 

Hope this will save you few some times of searching

Pass argument to the default application that runs a file Pass argument to the default application that runs a file Reviewed by Ran Davidovitz on 10:01 PM Rating: 5

No comments:

Powered by Blogger.