From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 66-197-196-101.hostnoc.net ([66.197.196.101] helo=www5.stonewebs.com) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1HqhBV-0003VL-00 for ; Tue, 22 May 2007 23:06:45 -0400 Received: from 75-120-0-7.dyn.centurytel.net ([75.120.0.7] helo=[192.168.2.100]) by www5.stonewebs.com with esmtpa (Exim 4.63) (envelope-from ) id 1HqhBb-0004wF-An for speakup@braille.uwo.ca; Tue, 22 May 2007 22:06:51 -0500 In-Reply-To: <036001c79cd4$c1eaf870$6601a8c0@yellobow> References: <036001c79cd4$c1eaf870$6601a8c0@yellobow> Mime-Version: 1.0 (Apple Message framework v752.3) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1737DDA6-1211-486A-8EBB-B4EA42254267@softcon.com> Content-Transfer-Encoding: 7bit From: Travis Siegel Subject: Re: help with a bash script Date: Tue, 22 May 2007 23:06:33 -0400 To: "Speakup is a screen review system for Linux." X-Mailer: Apple Mail (2.752.3) X-PopBeforeSMTPSenders: tsiegel X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - www5.stonewebs.com X-AntiAbuse: Original Domain - braille.uwo.ca X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - softcon.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.9 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2007 03:06:45 -0000 You can just about anything you like in a cron job. if it can run in a script, it can run as a job. Secondly, just run the program (use the whole path and don't rely on the parcer of the interpreter to find it for you. I.E. /usr/bin/more instead of just more. This prevents hackers from overriding the programs being executed. Also, when you put it in a cron job, the output of the job will be emailed to root (unless you specify otherwise) so you'll know if it worked or not. But, most programs (and I'm sure appget is amoung them) have an error code to determine if they exited successfully or not. Simply test for the code after the program ends if you really need to know, but it shouldn't matter, since you can view the output of the job if so desired. On May 22, 2007, at 8:53 PM, Scott Berry wrote: > Hello guys and gals, > > One more question here. I want to create a bas script for my Dad > which does the following: > 1 Does apt-get update and when apt-get update gets done it knows > that it has been completed successfully. > 2. Do apt-get dist-upgrade and knows when it gets done. > 3. Do an apt-get clean. > Also for those who have more experience than me I have a question > too. Is it wiser for me to run that in a shell console of it's own > or just have him run that under gnome terminal. My goal at the > very end is to cron this so this can run at night for him. > > Scottat updates can be > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup > >