public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
From: "Scott Berry" <sberry@northlc.com>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: Re: help with a bash script
Date: Wed, 23 May 2007 08:37:59 -0500	[thread overview]
Message-ID: <00e301c79d3f$d7f9a0b0$6601a8c0@yellobow> (raw)
In-Reply-To: <1737DDA6-1211-486A-8EBB-B4EA42254267@softcon.com>

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" <tsiegel@softcon.com>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
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
>
> 



  reply	other threads:[~ UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 Scott Berry
 ` Travis Siegel
   ` Scott Berry [this message]
 ` Gregory Nowak
   ` Scott Berry
     ` Dawes, Stephen
       ` Scott Berry
         ` Dawes, Stephen
 ` Sean McMahon
 Jude DaShiell
 ` Littlefield, Tyler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00e301c79d3f$d7f9a0b0$6601a8c0@yellobow' \
    --to=sberry@northlc.com \
    --cc=speakup@braille.uwo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).