LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Drweb: Cron <drweb@server> /opt/drweb/update.pl (https://www.linuxquestions.org/questions/linux-newbie-8/drweb-cron-drweb%40server-opt-drweb-update-pl-718945/)

romio 04-14-2009 12:59 AM

Drweb: Cron <drweb@server> /opt/drweb/update.pl
 
Can someone explain what the message below means?


Code:

Received: (qmail 28523 invoked by uid 111); 14 Apr 2009 05:21:26 +0200
Date: 14 Apr 2009 05:21:26 +0200
Message-ID: <20090414032126.28521.qmail@ip-server.ip.secureserver.net>
From: root@ip-server.ip.secureserver.net (Cron Daemon)
To: drweb@ip-server.ip.secureserver.net
Subject: Cron <drweb@server> /opt/drweb/update.pl
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/drweb>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=drweb>
X-Cron-Env: <USER=drweb>

I have read that update.pl might not have the right ownership and permission. This is the current permission:

rwxr-xr-x 1 drweb drweb 40834 Aug 31 2006 update.pl


Any Suggestions?

colucix 04-14-2009 02:03 AM

It is the report of a perl script /opt/drweb/update.pl launched by crontab as user drweb to update an antivirus/antispam software. Does the mail contain some message in the body?

romio 04-14-2009 02:57 AM

Quote:

Originally Posted by colucix (Post 3508105)
It is the report of a perl script /opt/drweb/update.pl launched by crontab as user drweb to update an antivirus/antispam software. Does the mail contain some message in the body?

no. it only contains what i have posted above.

colucix 04-14-2009 03:13 AM

Usually a cron job sends a mail to the crontab owner when some standard output or standard error is not redirected to a file. Maybe in this case the script just prints out an empty line to trigger the e-mail mechanism as a notification of the update process. You should look at the perl code to find out.

romio 04-14-2009 03:33 AM

Quote:

Originally Posted by colucix (Post 3508142)
Usually a cron job sends a mail to the crontab owner when some standard output or standard error is not redirected to a file. Maybe in this case the script just prints out an empty line to trigger the e-mail mechanism as a notification of the update process. You should look at the perl code to find out.

Thanks colucix, however; i am not really familiar with that!! would you be able to help/guide?

colucix 04-14-2009 03:46 AM

You can simply look for print statements:
Code:

grep -i print /opt/drweb/update.pl
Anyway, I don't see any problem in the mail you receive. If you want to disable the automatic updates, check for the proper settings in the software graphical interface or eventually locate the crontab and remove the entry which runs the /opt/drweb/update.pl script.


All times are GMT -5. The time now is 11:25 PM.