As the title says I am attempting to setup a language environment for a library that I have built.
Up until now I have been using a command to run files within the environment e.g.
prggmr file_to_run
But this has it's limitations ...
What I would like to do is setup an environment at /usr/bin/prggmr which will allow me to use:
#!/usr/bin/prggmr
As the scripting environment.
I have attempted to just simply run the environment and while it does work I always need to add php tags to the file I am attempting to execute e.g..
#!/usr/bin/prggmr
<?php
my code here...
And it will always dump out the environment variable when ran.
So my question is using the bin file I have already made
https://github.com/nwhitingx/prggmr/blob/master/bin/prggmr
What would I need to do to allow for this, note that the library is a PHP library so I must envoke the php interpreter.
Would this be more of integrating my existing script with the PHP interpreter to get it to run properly or?
Thanks for your help!