Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.co   
   !nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59   
   10.21.MISMATCH!kanaga.switch.ch!switch.ch!newsfeed-du-01.pub.2nd   
   sunrise.ch!not-for-mail   
   Newsgroups: alt.os.linux.ubuntu   
   Date: Mon, 5 Feb 2007 17:09:16 +0100   
   From: Niklaus Kuehnis    
   Subject: Re: starting a console application on first login   
   In-Reply-To:    
   Message-ID:    
   References:    
   MIME-Version: 1.0   
   Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed   
   Lines: 25   
   Organization: TDC Switzerland AG, http://www.sunrise.ch   
   NNTP-Posting-Host: 89.217.188.85   
   X-Trace: 1170691752 news.sunrise.ch 3849 89.217.188.85:14448   
   X-Complaints-To: abuse@sunrise.ch   
   Xref: number1.nntp.dca.giganews.com alt.os.linux.ubuntu:9749   
      
   On Mon, 5 Feb 2007, SINNER wrote:   
      
   > * Niklaus Kuehnis wrote in alt.os.linux.ubuntu:   
   >> Hi,   
   >   
   >> I'm booting to console. Is it possible to run that script on every   
   >> day's first login? If so, what's the easiest and cleanest way of   
   >> doing that?   
   >   
   > If you use anacron (installed by default, at least in Ubuntu 6.06), make   
   > it a cron job that runs once a day or add it to /etc/cron.daily, if the   
   > machine was off, anacron will run it when you turn it on, otherwise it   
   > will run once per day.   
      
   Hmmm, doing console notification with anacron doesn't seem that    
   simple as it runs in the background and, by default, starts only 5    
   minutes after boot. I will try using anacron, writing the apt-get    
   output to a file and echoing part of it on login (through    
   ..bash_profile) if there are updates available. That will be a bit of    
   work, though. The standard notification method would be through    
   e-mail, I guess, but making anacron send an e-mail depending on    
   apt-get output doesn't seem trivial (to me).   
      
   Thanks,   
   Nik   
   --- Platinum Xpress/Win/WINServer v3.0pr5   
    * Origin: Omicron Theta BBS (1:261/20)   
|