I think it's the same as perl, using the backtick operator, ie:

$result = `uptime`;

That's ` NOT '



-----Original Message-----
From: Johan Vikerskog (ECS) [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:41
To: [EMAIL PROTECTED]
Subject: [PHP] Shell scripting and PHP.


Hi all!

If i want to use some shell commands and use the result it displays to
set a variable. How is this done?

Is there a way of doing it like you can do with Perl?
Anyone knows?

Thanks for all the tips you can give me, or better yet, if you know of a
tutorial somewere that covers this.

//Johan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to