Re: How to pass variable to operating system.
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Wed, 10 Oct 2007 16:42:54 -0400
J.O. Aho wrote:
Jerry Stuckle wrote:J.O. Aho wrote:Jerry Stuckle wrote:Yes, but that's not necessarily the value in his program, is it?J.O. Aho wrote:The os is aware of the system clock and knows how many ticks it beenJerry Stuckle wrote:How are they "stored" in the OS? From what he's saying, they're in hisHenk Oegema wrote:The values are already "stored" in the OS in question, it do haveBut what's the operating system going to do with them?J.O. Aho wrote:Tnx Aho for answering. :)Henk Oegema wrote:Can you please be a little bit more specific. It's not quit clear to
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.
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 theYou right, this is also a possibility.
values
and then set each variable, but then you could skip using php, as
you
get
the uptime from uptime command directly.
The operating system doesn't take parameters. Rather, you run a
program
(even if it is the shell) which does something with parameters.
track of
it's own lifespan, but of course not stored as a variable that is
accessible
by the shell.
program and he needs to tell the OS about them somehow.
running,
in that way the values are stored.
No, it's in a way true, but the values in the script is based on it.
The OS doesn't know or care what the values are based on. He just needs to put *some value* to the OS. It might come from the OS originally, an entry that he keyed in (like he was before) or even a random number generator.
To the OS it's all the same - something coming from a program.
And in this case it isn't going to the OS at all - but to an application program.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- How to pass variable to operating system.
- From: Henk Oegema
- Re: How to pass variable to operating system.
- From: J.O. Aho
- Re: How to pass variable to operating system.
- From: Henk Oegema
- Re: How to pass variable to operating system.
- From: Jerry Stuckle
- Re: How to pass variable to operating system.
- From: J.O. Aho
- Re: How to pass variable to operating system.
- From: Jerry Stuckle
- Re: How to pass variable to operating system.
- From: J.O. Aho
- Re: How to pass variable to operating system.
- From: Jerry Stuckle
- Re: How to pass variable to operating system.
- From: J.O. Aho
- How to pass variable to operating system.
- Prev by Date: Re: i realy do need an admin php
- Next by Date: Re: How to pass variable to operating system.
- Previous by thread: Re: How to pass variable to operating system.
- Next by thread: Re: How to pass variable to operating system.
- Index(es):
Relevant Pages
|