Re: Running a system command from php
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Running a system command from php

From: Peter van Schie <vanschie.peter@gmail.com>
Date: Fri Sep 09 2005 - 14:15:12 CEST

Hi John,

So, when you run the AS2Agent.exe command manually from the commandline,
does it output anything?
If yes, then the return value of the system command will hold the last
line of the output of the AS2Agent.exe command. So you could try storing
that like:

$strLastLine = system("/Program Files/Intelligent Converters/A2SAGENT.EXE
  --dest=st_staff --src=$sourceFile --tab_file=$tableFile --mode=1",
$strOutput);
var_dump($strOutput);
var_dump($strLastLine);

My instict still points into the userrights direction, so I'd check that.

-- 
http://www.phpforums.nl
Received on Mon Oct 24 02:09:54 2005