Re: [PHP] Shell scripting

2001-12-10 Thread Rouvas Stathis
Start php with -q, eg: php -q script.php -Stathis. Dan McCullough wrote: > > I am setting up a shell script to provide a menu for some tasks that our server >admin would like > to do via script rather then vi'ing the file, now I am almost finished but I would >like to get rid > of this ugly p

[PHP] Re: PHP shell scripting..

2001-07-22 Thread
In article <001c01c112da$b8c0d420$0d6fa8c0@local>, Ryan Christensen wrote: >I have some questions about using PHP as a shell scripting language... >mainly how you pass arguments to a script on the command line. Say I'm >using: > >-- >#!/usr/local/bin/php -q > >print "I am:

Re: [PHP] Shell scripting and PHP.

2001-07-03 Thread Brad Hubbard
On Tue, 3 Jul 2001 17:46, Ray Hilton wrote: > I think it's the same as perl, using the backtick operator, ie: > > $result = `uptime`; > > That's ` NOT ' > Look at passthru() exec() and system() as well. Cheers, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Austra

RE: [PHP] Shell scripting and PHP.

2001-07-03 Thread Ray Hilton
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 u