Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

How to supress "Syntax OK" after apache2ctl

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Supress directory listings. - I know this has been asked before but I have been unable to find it in my searches. Distro: Redhat 9 Server Apache 2.* I would like to keep the directory contents from being displayed when there is no index file Thanks for the help. Jeff

SSI Enable - Syntax Problem(s) ??? - Enabling SSI on an Apache - 1.3.22 server on FreeBSD O/S I am running several virtual servers from the http.conf file. I am to run SSI on only one of these. Inserted ==> <font

syntax error due to libmysql - Hi, I changed from mysql 4.x to 5.0 manually, and apache2 does not start-up anymore. # start gives: * Apache2 has detected a syntax error in your files: Syntax error on line 5 of..

Syntax of php directives in VirtualHost section. - Hello, I use LAMP on my home computer to develop with 3 or 4 virtual hosts. To develop new in PHP, I set the default error reporting options to E_ALL | E_STRICT. But I alse have old web sites, with old and I wish..

Syntax error on line 116 of /etc/httpd/conf.d/ssl.conf - I'm sure many of us have seen this error. Syntax error on line 116 of file does not exist or is empty However, I just switched from DSL to Cable internet and I had to..
Next:  Apache: file .htaccess  
Author Message
mark

External


Since: Oct 31, 2007
Posts: 2



(Msg. 1) Posted: Wed Oct 31, 2007 3:35 am
Post subject: How to supress "Syntax OK" after apache2ctl
Archived from groups: alt>apache>configuration (more info?)

Hi community,

i wan't to use "apache2ctl configtest" inside my cron.
this works perfect but every time the cron runs a cronmail will be
send to my adress. my intention is to get rid of this mails with no
error inside.

does anyone has a solution for me?

thx

mark

 >> Stay informed about: How to supress "Syntax OK" after apache2ctl 
Back to top
Login to vote
mark

External


Since: Oct 31, 2007
Posts: 2



(Msg. 2) Posted: Wed Oct 31, 2007 4:06 am
Post subject: Re: How to supress "Syntax OK" after apache2ctl [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 31 Okt., 11:35, mark <data4... DeleteThis @gmail.com> wrote:
> Hi community,
>
> i wan't to use "apache2ctl configtest" inside my cron.
> this works perfect but every time the cron runs a cronmail will be
> send to my adress. my intention is to get rid of this mails with no
> error inside.
>
> does anyone has a solution for me?
>
> thx
>
> mark

Solution found myself

apache2ctl configtest 2>&1|grep -v 'Syntax OK'

 >> Stay informed about: How to supress "Syntax OK" after apache2ctl 
Back to top
Login to vote
clbr

External


Since: Oct 30, 2007
Posts: 6



(Msg. 3) Posted: Wed Oct 31, 2007 8:06 am
Post subject: Re: How to supress "Syntax OK" after apache2ctl [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 31, 10:35 am, mark <data4....RemoveThis@gmail.com> wrote:
> Hi community,
>
> i wan't to use "apache2ctl configtest" inside my cron.
> this works perfect but every time the cron runs a cronmail will be
> send to my adress. my intention is to get rid of this mails with no
> error inside.
>
> does anyone has a solution for me?
>
> thx
>
> mark

Solution 1: */8 * * * * apache2ctl configtest > /dev/null 2>&1.
Nothing will be sent to you even if error come up. Then you need to
take a look at crontab log to find out if some errors come up. Don't
like this approach.

Solution 2: just write a few lines script(i.e) in python which would
execute apache2ctl configtest. If the output would be 'Syntax OK' do
not print anything if output!="Syntax ok" - print it. Then put the
script to cron(without /dev/null ...). Whenever error comes up you
will get an email

Hope that help.
 >> Stay informed about: How to supress "Syntax OK" after apache2ctl 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]