Re: exec command help

From: Date: Tue, 22 May 2001 20:07:26 +0000
Subject: Re: exec command help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53908@lists.php.net to get a copy of this message
what is the output of $results ? print_r($results); try another command, ie. exec("echo hello world", $results); exec("echo hello world > /tmp/test.txt", $results); does that work? does that file aliases.db permissions set as world writeable, or the user.group set to nobody.nobody (ie. whatever your webserver is set to), or does postalias run as suid root ? what Im getting at is maybe the app is being run but doesnt have the permissions to edit the file because of the user.group that is running the app. -- Chris Lee lee@mediawaveonline.com "Nashirak Bosk" <nashirak@mindspring.com> wrote in message news:3B0AB2DA.647ED1F9@mindspring.com... > I am trying to run a something everytime a certain page is loaded. I am > using PHP4 and am running Debian Linux. I am trying to run this command > with exec: > > exec("/usr/sbin/postalias hash:aliases", $results); > > In case you are curious this turns a file called aliases into a hashed > aliases file (aliases.db) so that postfix (a mail program), can look at > this aliases file. I put this in a page and the page loads with no > errors, but the command doesnt look like it was ever run. If I check > the aliases.db file the modified date is never right. Any thoughts or > suggestions on what is going on or howto debug this so I can get more > information (I have been echoing the results but nothing comes up). > Thanks for you time. > > > > > -- > ------------------------------- > > Clayton Bluhm > > Computer Engineering Student > > nashirak@email.com (home) > > >

« previous php.general (#53908) next »