Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 07-04-2005, 08:12 AM   #1
LQ Newbie
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
Problems with updating McAfee dats in RedHat Linux

Hi everyone,
I have a fairly limited knowledge of linux and am having an unusual problem. I am running RedHat Enterprise edition and am trying to use cron to schedule automatic updates of my dat files by logging into McAfee's ftp server and downloading them. I am trying to do this by using a script that I got from the McAfee site. The script contains two parts. One is the .netrc file which contains login details and which I place in the root home directory. The other is a script called which contains the commands for logging into the ftp server, checking for new dats and updating them if available.
What is unusual about my problem is that, if I am logged in as root, I can manually run the script and it works fine. However, when I schedule the script to run by placing it in /etc/cron.daily it does not work. The following are parts of the messages which are mailed to root on a daily basis:

login failed.
Name ( /etc/cron.daily/ line 31: [: *.ta: integer expression expected
tar: dat-*tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

I think the important part of the message is the "login failed" bit. The rest is simply due to the fact that the script cannot get to the dat files (due to the failed login obviously).
Because the script works when I run it manually I think it might have something to do with the fact that the .netrc file is inacessable when run using cron. I find this odd though as cron runs as root.

Does anybody have any ideas?
Thanks in advance
Old 09-14-2005, 06:11 PM   #2
Registered: Dec 2003
Location: OceanView Virginia, gem of the Southern Shore
Distribution: MATE 15.04
Posts: 194
Blog Entries: 1

Rep: Reputation: 30
it might be easier running under windows or wine. macafee is NOT a linux friendly program.
luck -O.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrivia 2005se: Mandrake linux 10.2 is having problems updating filesfromupgradecd vivaherrera Linux - Newbie 1 10-23-2005 02:38 PM
Accessing and Updating MySql on Redhat Linux v9 FROM .Net application on WIN2K areeh Linux - Enterprise 3 01-13-2005 07:36 PM
Updating Java on RedHat Linux 8.0 sdsouza Linux - Software 0 11-21-2003 12:50 PM
Install Mcafee in redhat heero82 Linux - Software 6 05-30-2003 09:23 PM
How to install Mcafee on linux s_diptiman Linux - Software 2 03-27-2003 04:49 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration