There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
adware audio bios blue screen boot bsod computer connection crash dell email error excel firefox freeze freezing google hard drive hardware hijackthis install internet laptop linux malware network no sound outlook problem reboot recovery redirect router screen server slow sound speakers spyware startup trojan usb video virus vista windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
crond

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
gfxrelay's Avatar
Senior Member with 551 posts.
 
Join Date: Oct 2005
Location: 127.0.0.1
Experience: A button!
16-Apr-2008, 01:44 AM #1
crond
Greetings I am trying to use cron to schedule fetchmail to download mail at a certain time. Every time I try to use cron I get this error: crond: can't lock /var/run/crond.pid, otherpid may be 2094, Resource temporarily unavailable. Does any one know how to solve this?
__________________
I have software for that.
lotuseclat79's Avatar
Distinguished Member with 14,836 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
16-Apr-2008, 01:33 PM #2
Hi gfxrelay,

What OS/version are you using? What software are you using for your emailer?

Does your emailer not provide you with a way to schedule checking your email? If it does, then that is the preferred way rather than trying to tie the email fetch mechanism into cron, i.e. fetching email is usually an internal function of the emailer, and might not necessarily be available as an external interface to a facility like cron for scheduling it to operate.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
tomdkat's Avatar
Computer Specs
Distinguished Member with 4,998 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
16-Apr-2008, 01:56 PM #3
Are you running the command "crond" to schedule the task? If so, you should be running the "crontab" command and then schedule the task. "crontab -e" is the command you would run to add a new scheduled task.

EDIT: Also, be sure to run "crontab -e" as the user the mail fetch will run for and not as root.

Peace...
gfxrelay's Avatar
Senior Member with 551 posts.
 
Join Date: Oct 2005
Location: 127.0.0.1
Experience: A button!
17-Apr-2008, 01:49 AM #4
Thanks for the reply. I am using fedora 8 with fetchmail. I can download mail but I have to run the fetchmail command manually for it to connecto to the specified pop3 server: ferchmail --fetchmail /etc/fetchmailrc. I wanted to automate this so that fetchmail downloads my e-mail every ten minutes but this is the only way I could find to do it
__________________
I have software for that.
lotuseclat79's Avatar
Distinguished Member with 14,836 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
17-Apr-2008, 07:32 AM #5
Hi gfxrelay,

Checkout F8 Fetchmail Configuration.

Note: see the paragraph entitled: Setup fetchmail and ~/.fetchmailrc which will tell you how to set up fetchmail polling with crontab.

-- Tom
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:11 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.