From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from director.trueband.net ([216.163.120.8] helo=trueband.net) by speech.braille.uwo.ca with smtp (Exim 3.36 #1 (Debian)) id 1Hqr4N-0001jt-00 for ; Wed, 23 May 2007 09:40:03 -0400 Received: (qmail 19469 invoked by uid 1006); 23 May 2007 13:40:02 -0000 Received: from sberry@northlc.com by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.1.4. Clear:SA:0(0.0/100.0):. Processed in 0.724779 secs); 23 May 2007 13:40:02 -0000 X-Spam-Status: No, hits=0.0 required=100.0 X-Spam-Level: Received: from unknown (HELO trueband.net) (172.16.0.5) by -v with SMTP; 23 May 2007 13:40:01 -0000 Received: (qmail 18738 invoked from network); 23 May 2007 13:39:58 -0000 Received: from unknown (HELO yellobow) (67.54.156.245) by -v with SMTP; 23 May 2007 13:39:58 -0000 Message-ID: <00e301c79d3f$d7f9a0b0$6601a8c0@yellobow> From: "Scott Berry" To: "Speakup is a screen review system for Linux." References: <036001c79cd4$c1eaf870$6601a8c0@yellobow> <1737DDA6-1211-486A-8EBB-B4EA42254267@softcon.com> Subject: Re: help with a bash script Date: Wed, 23 May 2007 08:37:59 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 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 13:40:03 -0000 Hi Travis, Can you please be just a little bit more specific please. Okay so are you telling me that I would put in my script apt-get update then /usr/bin/more apt-get dist-upgrade /usr/bin/more aptget clean End of Script? Just not quite clear what you are trying to get me to do. Scott ----- Original Message ----- From: "Travis Siegel" To: "Speakup is a screen review system for Linux." Sent: Tuesday, May 22, 2007 10:06 PM Subject: Re: help with a bash script > 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 >> >> > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date: 5/21/2007 > 2:01 PM > >