PHP & bash; Linux; Compile my own function
Posted
by flienteen
on Stack Overflow
See other posts from Stack Overflow
or by flienteen
Published on 2010-05-01T12:16:32Z
Indexed on
2010/05/01
12:27 UTC
Read the original article
Hit count: 187
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?
© Stack Overflow or respective owner