[asterisk-users] System() command refuses to execute bash script

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Mar 2 10:41:57 CST 2015


On Mon, Mar 02, 2015 at 11:15:26AM -0500, Tech Support wrote:
> I'm surprised that you didn't have to specify the full path to the 'touch'
> command. When writing AGI scripts, I always do something like 
> $touch = which( 'touch' ). I guess it's over kill.
> John

You should generally not need a path to commands in /bin / /usr/bin .

If 'which touch' returned it, it's in the path.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com



More information about the asterisk-users mailing list