Re: [opensuse] Need some help with a script



Hello,

On Sat, 07 Feb 2009, Brian K. White wrote:
[>Randall R Schulz wrote:]
[>> David Haller wrote:]

I have not declared it off-topic. I did ask you to refrain from
telling others to put '.' in PATH.

For all I care, you can do whatever you like on your box. Shoot
yourself in the foot as much as you like, suit yourself. Just don't
tell others, here or elsewhere, to do the same. Savvy?

I will give the advise I decide to give.
^ *blam*

I've had dot in my PATH for 32 years and my foot remains free of bullet
holes.

Ahh so that means it's not wrong?

I have dirty underwear too. I am far too willing to solve
permissions problems by just putting "umask 0" at the top of a
script or as the first part of a system() command.
And I'm not as thorough as I really should be about vetting and sanitizing
any strings or values that were ultimately supplied by a user or
other unpredictable outside source before I use them as part of
commands I'm running.

I have been doing so since day one and have never been burned either.

In a similar vein, up until 2 weeks ago, for over 15 years I have had
HD-drives lose sectors, but never die "just like that". But what do I
know. 2 weeks ago, two 500 GB drives died on me almost simultaneously.
From the first one (system+data), I could still copy the data, the
data on the second drive I just lost. The latter drive is still
detected at boot (if I reconnect it), but won't respond (SATA link
will not establish)... Go figure.

So, not having been "burned", "shot", or "bitten" by whatever, for
however how long, doesn't mean shit. Unless you have proved[see sig]
*and* tried that you can not be affected.

Oh, and have I done/grown "dirty" stuff on my (main) system[1]. The
positive side (i.e. maintaining the system) of what I do with that
system has even been verbed on the suse-linux list. I tend to keep
quiet about the "bad" things I do ;)

I don't tell other people to do the same. Just that, with a metric
buttload of "if"s, things may be possible.

And . in PATH is evil. As is anything but 'ROOT_USES_LANG=no' in
/etc/rc.config, ahhh, /etc/sysconfig/language nowadays :)

And "CWD_IN_ROOT_PATH=..." shouldn't even exist.

-dnh, takes a note to file that last one as a bug

PS: Brian: please attribute quotes

[1] $ rpm -qa --last | tail -n 1
bc-1.04-74 Mon 16 Aug 1999 07:19:26

--
Beware of bugs in the above code; I have only proved it correct, not tried it.
- Donald Knuth
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: chkdsk parameters?
    ... possible commands as listed below. ... IIRC You'll have to do a Restart to do the chkdsk on C; ... Uninterruptible Power Source started screaming as the computer turned ... drives, ...
    (microsoft.public.windowsxp.hardware)
  • Re: NTFSDOS freeware problem
    ... standard Win98SE setup certain commands do not work. ... >folders that were inadvertently restored from a Win98 backup by mistake. ... restore the required files across the network. ... my c drive rather than the d or e drives. ...
    (microsoft.public.win2000.general)
  • Re: directories to exclude for backups
    ... > Basically the two drives share the same organization (ad0 for the first one, ... > Then I use the following commands from a script started by a daily cronjob ... > # for this one I first do the incremental backup on the same drive and then ... > rsync over the second drive (so I can have the incremental backup on both ...
    (freebsd-questions)
  • Re: IOCTL_SCSI_PASS_THRU SAT support
    ... Even if you plug your SATA drive into the motherboard SATA controller, ... IOCTL_ATA_PASS_THROUGH, you can only send ATA commands, and not the SATA ... I also have the requirement to send ATA commands to drives attached via any ...
    (microsoft.public.development.device.drivers)
  • Re: ide cdrom sg like access / rpcmgr ?
    ... a DVD RPC tool. ... This program uses SCSI commands to report and modify the RPC2 settings ... With RPC2 drives you are allowed to change the region five times, ...
    (Linux-Kernel)