<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
If you are running the script within Asterisk as root, then it's a path
environment issue. My guess(and I run into this with cron jobs all the
time) is that the path is different from the command line than the
environment that the script runs under. <br>
<br>
There are times where the fix is to use the fully qualified path when
calling stuff and not assume it's in the path.<br>
<br>
Lyle<br>
<br>
sean darcy wrote:
<blockquote cite="mid:gko8rt$u12$1@ger.gmane.org" type="cite">
<pre wrap="">Joseph L. Casale wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Have you tried your system stuff under "su - asterisk"? Once it works that
way, the system() command will work.
</pre>
</blockquote>
<pre wrap="">asterisk is running as root, I run the command at the terminal as root.
</pre>
</blockquote>
<pre wrap="">I am guessing he doesn't even have an asterisk user.
</pre>
</blockquote>
<pre wrap=""><!---->
Well I do have an asterisk user, and once spent a weekend trying to run
asterisk as asterisk user.
But I don't see what this has to do with my problem. The System() cmd
works: I can see the log from fax2mail showing it was called, and called
with the arguments I expected. So System() did it's thing.
What I can't figure what is why fax2mail really works from the command
line, but fails to effectively call mime-construct when called from
System().
I was hoping someone who has used mime-construct could show me how to
debug it.
It may be a permissions problem, but since both run as root it seems
unlikely. In any event, being able to debug mime-construct would allow
me to figure it out.
sean
_______________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
</body>
</html>