Results 1 to 7 of 7

Thread: scheduling tasks

  1. #1

    scheduling tasks

    Ok, here is what I want to do, and here is how I think I should do it.

    Quick and dirty, I have a perl program I want to run every five minutes. I don't know how to make it do that, but I think crond is running, so I have two or three programs that give me a GUI for editing cron. Here is what they say

    */5 * * * 0 /home/user/location/program_to_run

    Does this look like it will run my program every five minutes? If not, or if there is a better way to do it, I'm certainly open to suggestions. I tried reading the man pages for cron and crontab, but it didnt' help me any.

    If you are interested in the long explanation, here it is:

    I want to get my hotmail in Evolution (or Kmail, mutt, anything other than a browser). I found a program called hotwayd that I got installed, but I can't figure out how to connect to it (it is a pop3-webmail proxy). I read up on it a bit, and found that it is based on another program called httpmail. I got httpmail working, too, but the same issue. Fortunately there is a separate program with httpmail called get_httpmail. It downloads your hotmail into a standard mbox folder. Now I can use get_httpmail to download my hotmail, and use Evolution to check that local mbox for mail. Not quite as quick and easy as getting the proxy to work, but it'll do for now. The catch is that I need a way to run get_httpmail every five minutes so that I can set Evolution to check the local mbox every six minutes, and always have my mail there for me without having to manually run get_httpmail. That's why I want to schedule it. If, however, someone wants to figure out how to configure a mail client to use the httpmail/pop3 proxy, that would be even better, but I've been at that for months with no luck (even emailed the developer, and while he tried to help me get it running, when I asked what to use in the "server" settings for clients I got no response).

    Thanks in advance for any help on this,


  2. #2

    Re: scheduling tasks

    The crontab entry looks good - i am wondering if this could be handled better with ftechmail...

  3. #3

    Re: scheduling tasks

    The crontab entry looks good - i am wondering if this could be handled better with ftechmail...
    Doubt it. Hotmail doesn't allow simple pop logins to it.

  4. #4

    Re: scheduling tasks

    well, i've been fiddling with this off and on all day. all i can determine is that either A) cron isn't running, B) cron isn't telling to run, C) is being told to run, but isn't, or D) cron isn't running every five minutes

    i know is working, because i can just open up a terminal and run it from the command line no problem. i'm going to look for cron logs, or something similar...does anyone have any other ideas?

  5. #5

    Re: scheduling tasks

    according to /var/log/cron
    .........CROND[8555]: (user) CMD (/home/user/programlocation/

    that makes me think that cron is at least trying to run, but it isn' gives output (just "this is what i'm going" stuff), does that matter? aslo, it is a pearl script (is that the right word?)...should that matter?

  6. #6

    Re: scheduling tasks

    Hello cameron,

    I would think you would have to use...
    */5 * * * 0 perl /home/user/location/

    this is assuming perl is in the path.

    I haven't used perl much in Linux yet, but in WinDoze you have to give the script as an argument to perl.

  7. #7

    Re: scheduling tasks

    well, i tried "perl /home/location/" and i tried "/home/location/./" and neither of them work. is there some other way, besides cron, that might also work, to schedule to running of a program (frequency of 5 minutes)?

Similar Threads

  1. Crontab - Scheduling tasks.
    By peter in forum Tutorials
    Replies: 0
    Last Post: 11-24-2008, 05:35 AM
  2. Scheduling macros, Anyone have one?
    By chicagomike in forum Windows - General Topics
    Replies: 0
    Last Post: 08-02-2005, 02:04 PM
  3. Completed Tasks Do Not Appear
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 03:08 AM
  4. Using cron for auto tasks
    By sharon63 in forum Linux - General Topics
    Replies: 5
    Last Post: 02-27-2004, 02:02 PM
  5. Crontab - Scheduling tasks.
    By pbharris in forum Linux - General Topics
    Replies: 2
    Last Post: 07-16-2002, 06:46 PM


Posting Permissions

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