Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.co   
   !nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-o   
   line.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail   
   From: Hadron    
   Newsgroups: alt.os.linux.ubuntu   
   Subject: Re: starting a console application on first login   
   Date: Mon, 05 Feb 2007 19:06:58 +0100   
   Lines: 25   
   Message-ID: <87zm7sscl9.fsf@geemail.com>   
   References:    
    <87d54otuwp.fsf@geemail.com>   
       
   Mime-Version: 1.0   
   Content-Type: text/plain; charset=us-ascii   
   X-Trace: individual.net bHhibpmUJTjkzKih8YB9+Ab3nB+4xQXhSlXFipkAZtqay3gVH3   
   X-Orig-Path: news.individual.net!news   
   X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%;|j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_!   
   User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)   
   Cancel-Lock: sha1:MpZ8/3mWTmd0fAtD8zZotP6D3sM=   
   Xref: number1.nntp.dca.giganews.com alt.os.linux.ubuntu:9755   
      
   Niklaus Kuehnis writes:   
      
   > On Mon, 5 Feb 2007, Hadron wrote:   
   >   
   >> Niklaus Kuehnis writes:   
   >>   
   >> create a script file with your update lines in it.   
   >> call it xxx.org   
   >> ensure it is on path an executable.   
   >> make its last line "rm xxx"   
   >> add a cron job in cron.daily to just "cp ~/bin/xxx.org ~/bin/xxx" where   
   "bin" is your   
   >> executable directory.   
   >> executr "xxx" from your .bashrc.   
   >>   
   >> The first time it runs it deletes itself. The cron job will replace it a   
   >> day later.   
   >   
   > Great, that works! Although I decided to do it with chmod instead of   
   > rm. Thanks!   
   >   
   > Niklaus   
      
   you mean you stop it being executable? Doesnt that result in a "no   
   command found" or do you check the permissions before tryint to execute   
   it from the bashrc?   
   --- Platinum Xpress/Win/WINServer v3.0pr5   
    * Origin: Omicron Theta BBS (1:261/20)   
|