UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Learn four approaches for automating Excel logic, along with advantages and disadvantages of each. Read all about it in the free whitepaper: “Tapping into Excel Logic from Java: Four Server-Based AlternativesDownload Now!
  #1  
Old July 29th, 2004, 08:17 AM
cyy2 cyy2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 8 cyy2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 44 sec
Reputation Power: 0
Getting fetchmail to read .fetchmailrc

I am programming a spam filter in UNIX that requires the use of fetchmail to read mail into an mbox.

I have configured my .fetchmailrc file to check each of my mail servers every 20 seconds. I know this has been configured correctly because if I run fetchmail from the terminal, things are fine.

However, I want my filter to be able to call fetchmail when I start the filter. I use the line:
system("fetchmail");


to call fetchmail however the console just returns:
fetchmail: No server specified


Is there any way to get my filter to run fetchmail with my .fetchmailrc configurations?

Thanks

Reply With Quote
  #2  
Old July 30th, 2004, 04:07 AM
c444l c444l is offline
contains a pressurised widget
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: NC USA
Posts: 401 c444l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 41 sec
Reputation Power: 5
Send a message via AIM to c444l Send a message via Yahoo to c444l
put .fetchmailrc where it is looking for it? sounds like a difference in users.

Reply With Quote
  #3  
Old July 30th, 2004, 05:46 PM
cyy2 cyy2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 8 cyy2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 44 sec
Reputation Power: 0
Quote:
Originally Posted by c444l
put .fetchmailrc where it is looking for it? sounds like a difference in users.


It's not a difference in users though since I'm only running one user at the moment. Also, running fetchmail from the terminal works as expected. The system call just won't load the .fetchmailrc.

Reply With Quote
  #4  
Old July 30th, 2004, 10:56 PM
c444l c444l is offline
contains a pressurised widget
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: NC USA
Posts: 401 c444l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 41 sec
Reputation Power: 5
Send a message via AIM to c444l Send a message via Yahoo to c444l
i strongly suggest setting up another account and giving it su privileges and doing your work from there, instead of logging in as root.

Reply With Quote
  #5  
Old August 2nd, 2004, 08:11 AM
cyy2 cyy2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 8 cyy2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 44 sec
Reputation Power: 0
Quote:
Originally Posted by c444l
i strongly suggest setting up another account and giving it su privileges and doing your work from there, instead of logging in as root.


I'm actually working off a school machine, so I'm already a user that has no access to root. My .fetchmailrc file is located within my home directory.

Maybe the problem lies in the semantics of system(). Does anyone know if system() will open other files if the command that is invoked requires it?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Getting fetchmail to read .fetchmailrc


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway