PHP & bash; Linux; Compile my own function
- by flienteen
Hi.
I would like to make my own program but I have no idea how.. for example I want to make a typical 'Hello $user' program.
So..
+-- hi
¦ +-- hi.sh
¦ +-- hi_to.sh
hi.sh
#!/bin/bash
~/hi/hi_to.sh $1
hi_to.sh
#!/usr/bin/php
<?php
echo "\nHellO ".$argv[1]."\n";
?>
Run it in terminal:
me:~/hi
? ./hi.sh User
HellO User
and my question is: how to compile all this files into one bash program?