Hi
> Nothing the code execute witout warnings, but when Iexecute
> expect code, this program (expect) not finish, I think the
> program,is hang, I need kill the process.
Well, I guess you have to debug your Expect script first.
(Does not seem to be a Websh issue, but only an Expect problem.)
> In the expect code I need create a file but never I seeit.
> The permisions are the corrects, and I tried make step by
> step and all isgood, the problem is only when I call the
> program from Websh
> > I have another question: Can I wrote: exec
> /path/shellscript
> > inpalication'swebsh
> Sure you can. But the point is probably that it really
> depends on what
> youwant to do ...
> the shell script program calls another shells, andcall some
> expects programs, because I need extract some datas un put
> it ina database.
Can't help you there, because there is still not enough info. But a
hint on debugging your problem: make sure that you test your Expect
scripts as the same user, the web server runs under. Also note that
Apache does not run in the exact same environment as when you log in
as the same user (some environment variables might be unset by
Apache).
Once your scripts run correctly in your shell, but still do not work
from within Apache, dump the environment you have in pache and compare
it to the one in your shell. -> You might find some subtle difference
that prevents your scripts from working.
In mod_websh, do something like the following to dump the
environment:
web::put {<h1>Environment</h1><pre>}
global env
foreach e {[lsort [array names env]]} {
web::put "[web::htmlify $e]: [web::htmlify $env($e)]\n"
}
web::put {</pre>}
hth
Regards
Ronnie
--
10 Jahre Netcetera - die Zukunft im Visier
Ronnie Brunner | [EMAIL PROTECTED]
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]