Afficher un message
Vieux 09/10/2007, 22h02   #3
Henk Oegema
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to pass variable to operating system.

>J.O. Aho wrote:
Tnx Aho for answering.
> Henk Oegema wrote:
>
>
> You would need to use
>
> export day=`php /path/to/yout/file/uptime.php`
>
> if you use it this way, you need to make the script to take arguments, so
> that
> you can get the day, hour and minute alone. Don't forget to echo about
> the value.

Can you please be a little bit more specific. It's not quit clear to me.
Why (and how) must the script take arguments?
The values of the 3 variables are already known to the script.
I only need to pass them to the operating system.
>
> Otherwise you can use a shell script with awk that can read out the values
> and then set each variable, but then you could skip using php, as you get
> the uptime from uptime command directly.

You right, this is also a possibility.
>
>

Rgds
Henk

  Réponse avec citation
 
Page generated in 0,05889 seconds with 9 queries