Results 1 to 2 of 2

Thread: Cron Daemon Error Message

  1. #1
    Join Date
    Apr 2013
    Beans
    29

    Question Cron Daemon Error Message

    Ubuntu 12.10
    Squid3 3.1
    Dansguardian 2.10.1.1
    Postfix 2.9.6
    Webmin 1.620

    I keep getting these error messages everyday in the 'nobody' mailbox:

    Code:
    /etc/squid3/bannerfilter/update.sh: 116: [: 1: unexpected operator
    Line 116 of update.sh is:

    Code:
    115 # Send all instances of redirector.pl a signal to reload the data files
    116 if [ $RELOAD == 1 ] && [ $CHANGED == 1 ]; then
    117   killall -HUP redirector.pl
    118 fi
    119
    The redirector is located in /etc/squid3/bannerfilter/redirector.pl
    I've also attached the script to this post in case you want to examine it yourself!

    Now I'm not very good at scripting and not exactly sure what this one does but it appears to clean up temp files and whatnot. I've tried researching this but to no avail. Can someone please help me out?

    Thanks
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    12,935
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Cron Daemon Error Message

    Try this syntax instead:

    Code:
    if [ $RELOAD = 1  -a $CHANGED = 1 ]; then
    Use "man bash" to see the Bash manual page then search for "test expr" for details on conditional expressions.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •