|
Posted by Henk Oegema on 10/10/07 08:42
J.O. Aho wrote:
> As you can't export three shell variables at the same time, you require to
> set them one at the time. If you still want to output all three at the
> same time in the php script, then you need to use awk or another string
> manipulating command and in which case it's less overhead to make a shell
> script that does all itself.
Now it's clear to me how it works. :)
exten => 3014,n,Set(uptime=${CURL(http://localhost/uptime/uptime.php)})
exten => 3014,n,Set(days=${uptime:0:1})
exten => 3014,n,Set(hours=${uptime:1:2})
exten => 3014,n,Set(minutes=${uptime:3:2})
(It's not the final solution yet !)
Tnx for helping (and Jerry)
Rgds
Henk
[Back to original message]
|