From: Docume <do...@ly...> - 2005-05-22 13:26:22
|
Hi all, Hi Reinhard, Thanks for your fast answer. Let me know if I understand it correctly. I should replace all "send_user= " and "expect_user" comands with "puts", shouldn't I? > De:: Reinhard Max <ma...@tc...> > Para: tcl...@li... > Asunto:: Re: [TCLCORE] problem with an expect script, hope this is the = correct mailing list > BCC: Sun, 22 May 2005 14:30:47 +0200 (CEST) > Hi, >=20 > On Sun, 22 May 2005 at 12:12, Docume wrote: >=20 > > I have a problem with an expect script, it runs correctly under the=20 > > shell but it is unable to run under cron job. As I read it seems to b= e a=20 > > environment problem when it runs from crontab. > >=20 > > The problem is: > >=20 > > spawn telnet 10.10.14.5 > > send: spawn id exp0 not open > > while executing > > "send_user "\nError: EOF received\n"" >=20 > the [send_user] and [expect_user] commands are for communicating with t= he=20 > user who has started the script via the terminal, but there is no termi= nal=20 > and no user when the script is running as a cron job. You might want to= =20 > use [puts] instead to send those messages to stdout or stderr, so that = you=20 > can see them in the email you get from cron when the job is done. >=20 > cu > Reinhard >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > <a href=3Dhttp://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick= >http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick</a>_______= ________________________________________ > Tcl-Core mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-core Lycos Mail lanza el nuevo Sistema de Seguridad Protek-on. Olv=EDdate para= siempre de los virus y el correo basura (spam) para siempre. http://mail= .lycos.es |