All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Taylor <scott@dctchambers.com>
To: linux-admin@vger.kernel.org
Subject: Re: counting shell args
Date: Mon, 16 Dec 2002 14:18:36 -0800	[thread overview]
Message-ID: <5.1.1.6.0.20021216135627.01c67f78@mustang> (raw)
In-Reply-To: <Pine.LNX.4.33.0212161645140.3389-100000@router.windsormach ine.com>

At 01:49 PM 12/16/02, you wrote:
>On Mon, 16 Dec 2002, Scott Taylor wrote:
>
> > That should be very useful to know. :)
> >
> > Now you have me curious (grr...I just got over that) why do you care if
> > there are more than 25 blocks in your zipped file?
>
>If it dumps out a zero byte file, as part of the pipe gzip will go gzip
>it, and it ends up being 20 bytes.  As far as smbtar is concerned,
>that's a valid output, and returns 0 error code.  It was easier to put
>down 25 than figure out if that's 25 bytes or 25 kilobytes.

Ok.  But you are testing for blocks not bytes or KB.  Not that it probably 
matters at this point; blocks these days are usually 1K size anyhow.

>If it's a zero return code, AND the file is over 25(k), then the script
>rotates the backups, otherwise reports via email that there was a backup
>failure on that particular machine.  Once in awhile I'll get one of those
>partial backups, and that's what the previous full daily backups are for.

Ah, I see. :)

>If i get two or so in a row, I go hunting down why the machine is
>failing(is it just turned off,

That's just plain annoying, but it's funny when they come to you and ask 
for a recovery of some file they have been working on for the last 6 months. ;>

>is the ethernet unplugged AGAIN,

Damn janitors!

>did the hard drive die last Friday and the user hasn't called me after 4 
>days totell me their computer is broken?)

That's annoying too, but just about as funny as turning it off.  I like to 
send them to their boss to explain how much work they have accomplished in 
that case.  Yet, if it is the boss, I just take my time getting a 
replacement. =P

>Are we still on topic? :D

Doesn't quite seem like it, but it's been interesting, nonetheless. ;)

Scott.


  parent reply	other threads:[~2002-12-16 22:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-16 20:36 counting shell args Scott Taylor
2002-12-16 20:47 ` Mike Dresser
     [not found] ` <Pine.LNX.4.33.0212161545230.25857-100000@router.windsormac hine.com>
2002-12-16 20:53   ` Scott Taylor
2002-12-16 20:57     ` Mike Dresser
     [not found]     ` <Pine.LNX.4.33.0212161555240.25857-100000@router.windsormac hine.com>
2002-12-16 21:05       ` Scott Taylor
2002-12-16 21:12         ` Mike Dresser
     [not found]         ` <Pine.LNX.4.33.0212161607130.25857-100000@router.windsormac hine.com>
2002-12-16 21:38           ` Scott Taylor
2002-12-16 21:49             ` Mike Dresser
     [not found]             ` <Pine.LNX.4.33.0212161645140.3389-100000@router.windsormach ine.com>
2002-12-16 22:18               ` Scott Taylor [this message]
2002-12-17 15:15                 ` Mike Dresser
     [not found]                 ` <Pine.LNX.4.33.0212171005410.13631-100000@router.windsormac hine.com>
2002-12-17 15:36                   ` SysAdmin rants [was Re: counting shell args] Scott Taylor
2002-12-17  3:11 ` counting shell args dashielljt
     [not found] ` <Pine.LNX.4.50.0212162211130.217-100000@athame.gmpexpress.n et>
2002-12-17 15:38   ` Scott Taylor
2002-12-18  4:13     ` dashielljt
  -- strict thread matches above, loose matches on Subject: below --
2002-12-16 22:04 johnjulian1
2002-12-17 15:05 ` Mike Dresser

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=5.1.1.6.0.20021216135627.01c67f78@mustang \
    --to=scott@dctchambers.com \
    --cc=linux-admin@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.