Re: [PHP] Get command line output

2003-01-28 Thread Jeff Warrington
On Thu, 23 Jan 2003 00:14:07 +0800, Jason Wong wrote: either use PHP to parse out the entirety of the output or make your command pipe its output to other commands such as sed & awk before it gets to PHP. > w | tail +3 | awk '{print $1,$3,$5}' Jeff > On Thursday 23 January 2003 00:10, Greg Ch

Re: [PHP] Get command line output

2003-01-22 Thread Jason Wong
On Thursday 23 January 2003 00:10, Greg Chagnon wrote: > Does anyone know how to get certain parts of the output from an exec of a > certain command? For example...if I run "w" I get this output: > > [root@Lunar]:~> w > 11:02am up 56 days, 17:39, 1 user, load average: 0.07, 0.02, 0.00 > USER

[PHP] Get command line output

2003-01-22 Thread Greg Chagnon
Does anyone know how to get certain parts of the output from an exec of a certain command? For example...if I run "w" I get this output: [root@Lunar]:~> w 11:02am up 56 days, 17:39, 1 user, load average: 0.07, 0.02, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT ro

Re: [PHP] GET Command

2001-07-17 Thread Andrew Brampton
.com and click the Vulnibilitys link on the left Andrew - Original Message - From: "Clayton Dukes" <[EMAIL PROTECTED]> To: "Matthew Loff" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 7:37 PM Subject: Re: [PHP] GET Command >

Re: [PHP] GET Command

2001-07-17 Thread Clayton Dukes
on Dukes CCNA, CCDA, CCDP, CCNP (c) 904.477.7825 (h) 904.292.1881 Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: Matthew Loff To: 'Clayton Dukes' ; [EMAIL PROTECTED] Sent: Tuesday, July 17, 2001 2:11 PM Subject: RE: [PHP

RE: [PHP] GEt Command

2001-07-17 Thread Matthew Loff
$site = fopen( <http://www.whatever.com/> http://www.whatever.com/, "r"); $contents = fread($site, 102400); fclose($site); -Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 2:08 PM To: [EMAIL PROTECTED] Subject: [PHP] GE

[PHP] GEt Command

2001-07-17 Thread Clayton Dukes
Does anyone have a simple script that will GET a web page and return the reply?   Something like this:   function getpage($host, $path, getstr) {$getstr="whatever\r\n"; $host=www.whatever.com;       $hdr=sprintf("GET $getstr", $path);    $hdr .="Content-type: application/x-www-form-urlencode