[Asterisk-Users] AGI Stderr

2006-06-12 Thread Douglas Garstang
Does anyone know how I can get stderr from AGI to be sent to somewhere other 
than the console? It seems that this is the only place it can go. Changing 
logger.conf has no effect. 

If you want to see errors from AGI scripts, you have to run the Asterisk 
console, which isn't viable.

Doug.

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] AGI Stderr

2006-06-12 Thread Frederic Jean


Hi Douglas,

Try this:

open(STDERR, /etc/asterisk/agi-bin/errors.txt)


Fred


- Original Message - 
From: Douglas Garstang [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com

Sent: Monday, June 12, 2006 11:32
Subject: [Asterisk-Users] AGI Stderr


Does anyone know how I can get stderr from AGI to be sent to somewhere other 
than the console? It seems that this is the only place it can go. Changing 
logger.conf has no effect.


If you want to see errors from AGI scripts, you have to run the Asterisk 
console, which isn't viable.


Doug.

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users




___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] AGI Stderr

2006-06-12 Thread Douglas Garstang
Oh yeah, I also won't get time/date stamps if I redirect  stderr to a file like 
that 
 
  -Original Message-
  From: Douglas Garstang 
  Sent: Monday, June 12, 2006 8:51 AM
  To: 'Frederic Jean'
  Subject: RE: [Asterisk-Users] AGI Stderr
  
  
  Frederic,
  
  Thanks, but that's not the best approach. I am sending all 
  debug from my AGI script to syslog. I'd like runtime errors 
  to go to Asterisk so that it can log them to a file. If I 
  don't, I'll have files in three places instead of two. 
  (syslog, errors.txt and /var/log/asterisk/*)
  
  Doug.
  
   -Original Message-
   From: Frederic Jean [mailto:[EMAIL PROTECTED]
   Sent: Monday, June 12, 2006 8:37 AM
   To: Asterisk Users Mailing List - Non-Commercial Discussion
   Subject: Re: [Asterisk-Users] AGI Stderr
   
   
   
   Hi Douglas,
   
   Try this:
   
   open(STDERR, /etc/asterisk/agi-bin/errors.txt)
   
   
   Fred
   
   
   - Original Message - 
   From: Douglas Garstang [EMAIL PROTECTED]
   To: Asterisk Users Mailing List - Non-Commercial Discussion 
   asterisk-users@lists.digium.com
   Sent: Monday, June 12, 2006 11:32
   Subject: [Asterisk-Users] AGI Stderr
   
   
   Does anyone know how I can get stderr from AGI to be sent to 
   somewhere other 
   than the console? It seems that this is the only place it can 
   go. Changing 
   logger.conf has no effect.
   
   If you want to see errors from AGI scripts, you have to run 
   the Asterisk 
   console, which isn't viable.
   
   Doug.
   
   ___
   --Bandwidth and Colocation provided by Easynews.com --
   
   Asterisk-Users mailing list
   To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
   
   
   
   
   ___
   --Bandwidth and Colocation provided by Easynews.com --
   
   Asterisk-Users mailing list
   To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
   
  
 
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] AGI Stderr

2006-06-12 Thread Frederic Jean


, never tried it with asterisk but you could redirect STDERR to STDOUT
and see how you can capture this guy afterward...

open STDERR, STDOUT;

just a thought

- Original Message - 
From: Douglas Garstang [EMAIL PROTECTED]

To: asterisk-users@lists.digium.com
Sent: Monday, June 12, 2006 11:52
Subject: RE: [Asterisk-Users] AGI Stderr


Oh yeah, I also won't get time/date stamps if I redirect  stderr to a file 
like that



 -Original Message-
 From: Douglas Garstang
 Sent: Monday, June 12, 2006 8:51 AM
 To: 'Frederic Jean'
 Subject: RE: [Asterisk-Users] AGI Stderr


 Frederic,

 Thanks, but that's not the best approach. I am sending all
 debug from my AGI script to syslog. I'd like runtime errors
 to go to Asterisk so that it can log them to a file. If I
 don't, I'll have files in three places instead of two.
 (syslog, errors.txt and /var/log/asterisk/*)

 Doug.

  -Original Message-
  From: Frederic Jean [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 12, 2006 8:37 AM
  To: Asterisk Users Mailing List - Non-Commercial Discussion
  Subject: Re: [Asterisk-Users] AGI Stderr
 
 
 
  Hi Douglas,
 
  Try this:
 
  open(STDERR, /etc/asterisk/agi-bin/errors.txt)
 
 
  Fred
 
 
  - Original Message - 
  From: Douglas Garstang [EMAIL PROTECTED]

  To: Asterisk Users Mailing List - Non-Commercial Discussion
  asterisk-users@lists.digium.com
  Sent: Monday, June 12, 2006 11:32
  Subject: [Asterisk-Users] AGI Stderr
 
 
  Does anyone know how I can get stderr from AGI to be sent to
  somewhere other
  than the console? It seems that this is the only place it can
  go. Changing
  logger.conf has no effect.
 
  If you want to see errors from AGI scripts, you have to run
  the Asterisk
  console, which isn't viable.
 
  Doug.
 
  ___
  --Bandwidth and Colocation provided by Easynews.com --
 
  Asterisk-Users mailing list
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
 
 
 
 
  ___
  --Bandwidth and Colocation provided by Easynews.com --
 
  Asterisk-Users mailing list
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
 



___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users




___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users