We start asterisk under a detached screen with GNU screen. We use the 'L' flag to log to a text file if we want. Then we can "screen -r" to the actual asterisk CLI any time we want.
/usr/bin/screen -L -d -m -S asterisk /usr/sbin/asterisk -vvvvvvvvvvvvvvvvvvvvvgc http://www.gnu.org/software/screen/ MATT--- On 8/8/05, Eric Wieling aka ManxPower <[EMAIL PROTECTED]> wrote: > Tzafrir Cohen wrote: > > On Mon, Aug 08, 2005 at 03:50:02PM -0500, Eric Wieling aka ManxPower wrote: > > > >>Anish Basu wrote: > >> > >>>Hi, > >>> > >>>For some reason, my AGI perl scripts cannot write to the CLI console using > >>>standard error. I ran the agi-test.agi test script that came with asterisk > >>>and verified that the problem was not with the code. Asterisk is always > >>>started with 4 or more v's, yet this the CLI output does not show up. Have > >>>there been any major changes to AGI in the cvs-head? I am using Asterisk > >>>CVS-D2005.08.05. > >> > >>This is a known problem. Asterisk will only send STDERR from AGI > >>scripts to the actual console Asterisk is running on. You have to > >>switch to the actual console Asterisk is running on (tty9 I think) or > >>start asterisk in the foreground with "asterisk -cvvv". > >> > >>It's a minor issue for most people. > > > > > > And if you run with no "default terminal"? > > > > Any simple way around this in logger.conf (you can always tail -f the > > log file) > > > > logger.conf worked for me for everything EXCEPT AGI scripts that print > to STDERR. > > -- > Eric Wieling * BTEL Consulting * 504-210-3699 x2120 > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users