euglug.org

[작성자:] admin

  • [Eug-lug] crontab – last day of month



    Bob MillerMon Nov 20 13:59:01 PST 2006

    Bob Miller wrote:
    
    > 0 1 28-31 * * [ "`date +%m`" != "`date +%m --date=tomorrow`" ] && run-end-of-month-job
    
    Quentin's observation improves on that.
    
    0 1 28-31 * * [ "`date +%m -d tomorrow`" = 1 ] && run-end-of-month-job
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] crontab – last day of month



    Matthew JarvisMon Nov 20 13:11:29 PST 2006

    Bob Miller wrote:
    > Matthew Jarvis wrote:
    > 
    > 
    >>One suggestion was to run it for 28, 29, 30, 31 and then determine some 
    >>other way if it's really the last day of the month...
    > 
    > 
    > That's not a bad idea.
    > 
    > 0 1 28-31 * * [ "`date +%m`" != "`date +%m --date=tomorrow`" ] && run-end-of-month-job
    > 
    
    Hey - that looks like the ticket...
    
    And even my feeble brain can figure out what it's doing....
    
    Thanks kbob!
    
    
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] crontab – last day of month



    Bob MillerMon Nov 20 12:31:04 PST 2006

    Matthew Jarvis wrote:
    
    > One suggestion was to run it for 28, 29, 30, 31 and then determine some 
    > other way if it's really the last day of the month...
    
    That's not a bad idea.
    
    0 1 28-31 * * [ "`date +%m`" != "`date +%m --date=tomorrow`" ] && run-end-of-month-job
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] crontab – last day of month



    Rob HudsonMon Nov 20 12:03:29 PST 2006

    Would 1st day of month at midnight be much different than last day of 
    month?  If not, that's an easy workaround.
    
    OR
    
    Have 3 crontab entries:
    
    # the months with 30 days
    0	0	30	4,6,9,11	*	command
    # the months with 31 days
    0	0	31	1,3,5,7,8,10,12	*	command
    # February is screwy (but you can probably do a /4, /100, /400 thing?)
    0	0	28	2	*	command
    
    -Rob
    
    Matthew Jarvis wrote:
    > It seems I stepped in some doodoo trying to accomplish this - hard to 
    > believe this is so hard...
    > 
    > How do I tell a cron job to run on the last day of the month?
    > 
    > i.e. Feb 28 (or 29 whatever), Apr 30, Mar 31....  I'm being so explicit 
    > because another group I posted this to just didn't grasp that I wanted 
    > the last day, rather than specifically telling it the 28th or something...
    > 
    > One suggestion was to run it for 28, 29, 30, 31 and then determine some 
    > other way if it's really the last day of the month...
    > 
    > Some say it can't be done... are they right?
    > 
    > 
    
  • [Eug-lug] crontab – last day of month



    AlanMon Nov 20 12:02:14 PST 2006

    Matthew Jarvis wrote:
    > It seems I stepped in some doodoo trying to accomplish this - hard to 
    > believe this is so hard...
    > 
    > How do I tell a cron job to run on the last day of the month?
    > 
    > i.e. Feb 28 (or 29 whatever), Apr 30, Mar 31....  I'm being so explicit 
    > because another group I posted this to just didn't grasp that I wanted 
    > the last day, rather than specifically telling it the 28th or something...
    > 
    > One suggestion was to run it for 28, 29, 30, 31 and then determine some 
    > other way if it's really the last day of the month...
    > 
    > Some say it can't be done... are they right?
    > 
    > 
    The key is not figuring out if the current day is the last day, but 
    figuring out if the next day is the _first_ day.
    Shamelessly stolen from somewhere (don't ask me, I don't remember where):
    
    #!/bin/sh
    if test `TZ=PST-24 date +%d` = 1; then
       echo 1st
    fi
    
    -ajb
    
  • [Eug-lug] crontab – last day of month



    Quentin HartmanMon Nov 20 11:55:32 PST 2006

    I don't know of an easy way to do it using built-in crontab stuff.
    Personally, I'd try to write a little script that checks if tomorrow
    would be the first, and if so it executes your stuff. Surely there's a
    more elegant way, but that's the first Q&D that comes to mind.
    
    -- 
    -Regards-
    
    -Quentin Hartman-
    
  • [Eug-lug] crontab – last day of month



    Matthew JarvisMon Nov 20 11:47:52 PST 2006

    It seems I stepped in some doodoo trying to accomplish this - hard to 
    believe this is so hard...
    
    How do I tell a cron job to run on the last day of the month?
    
    i.e. Feb 28 (or 29 whatever), Apr 30, Mar 31....  I'm being so explicit 
    because another group I posted this to just didn't grasp that I wanted 
    the last day, rather than specifically telling it the 28th or something...
    
    One suggestion was to run it for 28, 29, 30, 31 and then determine some 
    other way if it's really the last day of the month...
    
    Some say it can't be done... are they right?
    
    
    -- 
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] Fwd: question about email hosting solutions



    Michael MillerMon Nov 20 10:06:07 PST 2006

    David,
    
    You should look at gmail.  I've only received two or three spam
    messages with my gmail account.  I mark them as spam and I don't see
    that type of message again.
    
    Mike Miller
    
    On 11/19/06, Ben Barrett <stircrazyben at gmail.com> wrote:
    > I love gmail's labels (as opposed to folders, which allow no overlap in
    > context-tagging).
    > Their recent application additions are awesome, and I like their calendar
    > too... I have not used their "for domains" service yet, but am curious to
    > see what differences exist in the domain/organization implementation.  Group
    > calendaring is hot.  :)   I also like their txt-msg appointment reminders,
    > fwiw.
    > YMMV, of course, and IMAP, heh, well traditional folders are kind of
    > limited, dare I say,
    > and I can see why they don't provide it -- how would you stuff a tag cloud
    > into bins?
    >
    > As for the run-of-the-mill hosting services... if your spam volume is low
    > enough (and, er, your users' bandwidth is high enough),
    > you can let nice mail clients like thunderbird handle it (albeit with a
    > touch of training).  I haven't seen any run-of-the-mill hosting
    > services which include SpamAssassin, but then again I haven't been looking
    > :)
    >
    > I've become a reseller for web hosting recently, contact me off-list if
    > you're interested.  I am pleased with the service so far, nuff said.
    >
    > good luck!
    >
    >     Ben
    >
    >
    > On 11/19/06, David Mandel <dmandel at pdxlinux.org> wrote:
    > > Hosting email should be simple, but it isn't - thanks to all the
    > > SPAMERS and system crackers and whoever.
    > >
    > > As a result, I'm tryed of hosting my own mail and I'm looking around
    > > for a hosted solution for a few domains.  What do people recommend?
    > > What are the pros and cons to gmail for domains?
    > >
    > > David Mandel
    >
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    >
    
  • [Eug-lug] Need Wireless NIC



    Ben BarrettMon Nov 20 09:13:37 PST 2006

    Wireless, do you mean 802.11b wifi?  Or Wired, 10 baseT?
    For good deals coming up this week[end], you might want to check out:
    http://www.blackfriday.info
    
       Ben
    
    
    On 11/20/06, Jim Darrough <jdarrough at gmail.com> wrote:
    >
    > Anybody have a USB or PCI Wireless NIC lying around unused they would
    > like to donate to my son? 10bt is fine.
    >
    > Or sell at a reasonable price.
    >
    > Thanks, Jim Darrough
    >
    > 913-9963
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20061120/dc9a1b16/attac=
    hment.htm
    
  • [Eug-lug] Fwd: question about email hosting solutions



    Ben BarrettMon Nov 20 09:08:55 PST 2006

    I've used those a little -- but is there any mechanism to add a context to a
    message that doesn't have your desired keywords already, for instance?
    (other than replying to yourself with them tacked on...)  IIRC, Evolution is
    good at that too, although maybe a little more memory- & CPU-intensive.
    
    One other idea I had, is that if all your users are on specific PC's, say
    for a business, you could be mean and *not* let them know their own
    password;
    then set them up with gmail for domains, and keep the password saved in
    either the browser for webmail or the standalone email client (POP)...
    possib;y ensuring that they do not use the other interface.
    (if you didn't want them to access the business account from elsewhere, for
    instance)  Sounds a little exreme, I know, but hmmm...
    
        Ben
    
    
    On 11/20/06, Alan <euglug at thebucks.net> wrote:
    >
    > Ben Barrett wrote:
    >
    > > YMMV, of course, and IMAP, heh, well traditional folders are kind of
    > > limited, dare I say,
    > > and I can see why they don't provide it -- how would you stuff a tag
    > cloud
    > > into bins?
    > >
    >
    > While not "tag clouds" per se, Thunderbird does have a neat feature
    > called "Search Folders", where you can specify search criteria (subj,
    > from, to, date, etc) and save it as a "virtual" folder.
    > The search folder, when opened, will contain all the messages that match
    >   your criteria, regardless of their actual physical folder location.
    >
    > I've seen Thunderbird users that essentially only use "search folders"
    > for their email organization. I personally couldn't live that way, but
    > then, I seem to be in the minority in that I don't like the gmail
    > interface.
    > heh.
    >
    > -ajb
    >
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20061120/70b86717/attac=
    hment.htm