From 2fe29887ff8e484ab677a0f6edb25a045ee5c3e8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 23 Nov 2003 11:01:30 +0000 Subject: [PATCH] useing the bash function 'type -p' now instead the alias 'which', which seems not to be set for RH9 or Fedora --- phpgwapi/inc/class.asyncservice.inc.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/phpgwapi/inc/class.asyncservice.inc.php b/phpgwapi/inc/class.asyncservice.inc.php index d78b934865..6fe64a075f 100644 --- a/phpgwapi/inc/class.asyncservice.inc.php +++ b/phpgwapi/inc/class.asyncservice.inc.php @@ -1,11 +1,11 @@ * - * Class for creating cron-job like timed calls of phpGroupWare methods * + * Class for creating cron-job like timed calls of eGroupWare methods * * -------------------------------------------------------------------------* - * This library is part of the phpGroupWare API * - * http://www.phpgroupware.org/ * + * This library is part of the eGroupWare API * + * http://www.eGroupWare.org * * ------------------------------------------------------------------------ * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * @@ -19,8 +19,8 @@ @class asyncservice @author Ralf Becker @copyright GPL - GNU General Public License - @abstract The class implements a general phpGW service to execute callbacks at a given time. - @discussion see http://www.phpgroupware.org/wiki/TimedAsyncServices + @abstract The class implements a general eGW service to execute callbacks at a given time. + @discussion see http://www.egroupware.org/wiki/TimedAsyncServices */ class asyncservice { @@ -561,7 +561,7 @@ $this->$name = $path; // a reasonable default for *nix if (!is_executable($this->$name)) { - if ($fd = popen('/bin/sh -c "which '.$name.'"','r')) + if ($fd = popen('/bin/sh -c "type -p '.$name.'"','r')) { $this->$name = fgets($fd,256); @pclose($fd);