Linux-Misc Digest #598, Volume #25               Mon, 28 Aug 00 13:13:04 EDT

Contents:
  Re: How do you pronounce GNOME? (Dave Brown)
  Re: tranfering boot/root disk to higher capacity format ("mrauscher")
  Re: Using gnomeicu (Andreas Kahari)
  Re: Members of root group (root)
  Re: NEWBIE-Shell scripting - When to use script variable vs. create tmp file??? 
(Barry Margolin)
  NETSCAPE - bus error (root)
  Re: Reading vi files in windows (Brian V. Smith)
  Re: multiple string replacement (Dave Brown)
  Re: Email configuration question ([EMAIL PROTECTED])
  opengl on sgi linux machines? (Dan Stromberg)
  Re: Amateur Hacker Backdoors Thwarted By Upgrade? (Leonard Evens)
  LILO Died - Partition Not Found (Brian)
  Re: Linux Mail Server (Tim Haynes)
  where can I find bdftopcf source code ([EMAIL PROTECTED])
  Re: Restaurant Booking System (Richard Watson)
  Re: Amateur Hacker Backdoors Thwarted By Upgrade? (Wretch)
  Re: ls /dos incorrect.... (Jose M de Aguiar)
  Re: NEWBIE-Shell scripting - When to use script variable vs. create tmp file??? 
(Sweth Chandramouli)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (Dave Brown)
Subject: Re: How do you pronounce GNOME?
Date: 28 Aug 2000 10:56:04 -0500

On Thu, 24 Aug 2000 13:23:26 +1000, Michael Westerman 
<[EMAIL PROTECTED]> wrote:
>if enough people pronounce it wrongly the same way it becomes right!!!
>I pronounce Line-icks and G- nome  as long as people know what im talking
>about it dosn't matter unless the creator takes offence and stops making the
>product.
>
><[EMAIL PROTECTED]> wrote in message news:8o1hmk$jqq$[EMAIL PROTECTED]...
>> I've always wondered that.  How do you pronounce GNU?  If you know that
>> then GNOME will be similiar.  Some reason I've always thought GNOME was
>> pronouced: "nome".  But I'm not sure.  Took me forever to figure out
>> that I had been pronouncing Linux wrong.  As in "line-icks".  But soon
>> found out that Linux is pronounced "lynn-icks".  My $.02.

Neither the official websites for Gnome or Gnu give any hint, although I 
saw one post to claim an "official" pronunciation.  Presumably, the 
"g" is silent, as normal pronunciation of these words.  Several of the 
"cute" usages would not work if gnu did not refer to the animal--
"hurd (sic) of gnus", for example.

That said, I'll have to admit that when teaching, it's handy to add the 
hard "g" so that the listeners don't think you're saying "new".

-- 
Dave Brown  Austin, TX

------------------------------

From: "mrauscher" <[EMAIL PROTECTED]>
Subject: Re: tranfering boot/root disk to higher capacity format
Date: Mon, 28 Aug 2000 08:58:37 -0700

Yeah, this is what I was getting at; the Bootdisk-HOWTO didn't help me much.
Here's what I did according to what I could extract from the howto (btw,
this mini-distro doesn't use lilo):

#copy all files from the original boot disk to the HD
cp -r /mnt/floppy/* /tmp/olddisk
#format the new disk
fdformat /dev/fd0u1680
#copy the kernel to the disk
dd if=/tmp/olddisk/vmlinuz of=/dev/fd0 bs=1k
#set the root device
rdev /dev/fd0 /dev/fd0
#set root R/W
rdev -R  /dev/fd0 0
#set the RAM disk word
rdev -r  /dev/fd0 16819
#copy the root fs
dd if=/rmp/olddisk/initrd.gz of=/dev/fd0 bs=1k seek=435

At this point, I assume I should be able to mount the disk and see the
files. Either I've missed something, or my assumption is plain wrong because
when I do, I just get a list of garbage files and directories.

An obvious and basic question; what about a fs on the diskette? The distro
uses dos so that it can be edited from a M$ machine, so, when should mkfs be
executed? I've done it both before and after dd'ing the kernel and initrd.gz
and it doesn't help the outcome.

Thanx for reading; any advice appreciated.


Dances With Crows <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> I found the following URL rather helpful when messing with bootdisks.
> Keep in mind that most root/boot disks don't actually use a filesystem
> for much; they have a kernel image, a lilo.conf, and a compressed
> RAMdisk file.  You can use the information contained within the HOWTO to
> make a 2-disk set as well, so you could have a 1722K compressed RAMdisk
> image with more stuff than a regular root/boot disk (the kernel image
> takes up about 500K, usually.)
>
> http://www.linuxdoc.org/HOWTO/Bootdisk-HOWTO/x712.html
> http://www.linuxdoc.org/HOWTO/Bootdisk-HOWTO/
>
> --
> Matt G|There is no Darkness in Eternity/But only Light too dim for us to
see
> Brainbench MVP for Linux Admin /  Those who do not understand Unix are
> http://www.brainbench.com     /   condemned to reinvent it, poorly.
> -----------------------------/           --Henry Spencer



------------------------------

Subject: Re: Using gnomeicu
From: [EMAIL PROTECTED] (Andreas Kahari)
Date: 28 Aug 2000 18:03:57 +0100

In article <[EMAIL PROTECTED]>,
JCA  <[EMAIL PROTECTED]> wrote:
>
>    Can anybody summarize how to use this baby? Also, what is gnomeicu
>and gnomeicu-client? Does one need them both?
>
>


The documentation is included in the distribution of GnomeICU. 

I have never used GnomeICU and I know that I never will, but I had no
problems finding the documentation in the distribution tar-ball (it's
HTML formatted for those who don't know how to read plain text files).
Did you even try to *start* looking for the docs?

Download it from Freshmeat:
<URL:http://freshmeat.net/projects/gnomeicu/?highlight=gnomeicu>

/A

-- 
Andreas K�h�ri, <URL:http://hello.to/andkaha/>.
All junk e-mail will be reported to the appropriate authorities.
========================================================================
The important thing is not to stop questioning.

------------------------------

From: root <[EMAIL PROTECTED]>
Subject: Re: Members of root group
Date: Tue, 29 Aug 2000 02:00:58 +1000


>It would be better to do something along these lines: create a separate
>group (for example: logreaders) and add those users and root to that
>group.  Then change the ownership of those logs and selected programs to
>root:logreaders and set permissions on each log or program
>appropriately.
>jlk

YES!  there is no reason to create other 'root' users.  If they are trusted
enough to use root privelages, they should have root's password etc...
I trust YOU are not logging in as root?  Always SU...  

So, yes, give permissions accordingly via a separate group.  disable the files
in bin u don't want them to have access to etc.  Much more secure.


------------------------------

From: Barry Margolin <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.aix,comp.unix.misc,comp.unix.shell
Subject: Re: NEWBIE-Shell scripting - When to use script variable vs. create tmp 
file???
Date: Mon, 28 Aug 2000 16:06:55 GMT

In article <8o853d$7jj$[EMAIL PROTECTED]>, Ken Pizzini <[EMAIL PROTECTED]> wrote:
>On Thu, 24 Aug 2000 20:20:07 GMT, -ljl- <[EMAIL PROTECTED]> wrote:
>>I not an expert by any sense of the word but this can be solved by
>>using the "PID of the current process", reserved shell variable $$.
>>Each process is unique.
>
>... provided that you are working on a disk that is not shared.
>Things like NFS screw up the "$$ is unique among running
>processes" assumption.

If you write your temp files to /tmp or /var/tmp, it's extremely unlikely
that it would be shared.

-- 
Barry Margolin, [EMAIL PROTECTED]
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

------------------------------

From: root <[EMAIL PROTECTED]>
Subject: NETSCAPE - bus error
Date: Tue, 29 Aug 2000 02:04:00 +1000

Sigh.  Hello again - just when u sort out one prob, up comes another!!!

I'm using netscape v4.6 under mandrake v7(?)

If I open multiple windows and then close them later, the whole damn suite
shutsdown with a 'bus error' reported to the console(launched from console in
mandrake).

New netscape versions haven't helped thus far.

Anyone with a fix that doens't involve tossing out netsape, bring it on!

Thanks in advance for your input

Shane/

------------------------------

From: [EMAIL PROTECTED] (Brian V. Smith)
Subject: Re: Reading vi files in windows
Date: 28 Aug 2000 16:11:42 GMT

In article <[EMAIL PROTECTED]>, Fabian Gebhardt <[EMAIL PROTECTED]> writes:
|> There is also a little trick: Notepad doesn't understand the UNIX files, but the
|> old DOS 'edit' does!
|> So just open them in DOS 'edit' and save them. Or use some of the convert progs:
|> duconv, unix2dos, dos2unix...

Wordpad understands UNIX newline'd files too.

-- 
===============================================================
Brian V. Smith ([EMAIL PROTECTED]) http://www-epb.lbl.gov/BVSmith
Lawrence Berkeley National Laboratory
I don't speak for LBL; they don't pay me enough for that.
Check out the xfig site at http://www-epb.lbl.gov/xfig

 To the optimist, the glass is half full. To the pessimist, the  
 glass is half empty. To the engineer, the glass is twice as big 
 as it needs to be.

------------------------------

From: [EMAIL PROTECTED] (Dave Brown)
Subject: Re: multiple string replacement
Date: 28 Aug 2000 11:26:42 -0500

On 28 Aug 2000 15:12:50 +0100, Andreas Kahari <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
>Clemens Hermann  <[EMAIL PROTECTED]> wrote:
>>Hi,
>>
>>I have a directory containing ~ 60 Text-Files. Each of the file contains
>>a string (STRING1) several times. This string should be replaced with
>>STRING2 in all files. How can I accomplish this without opening an

... to edit the files "in place" use ed. Assuming file1, file2, etc.:
====================
for name in file*
do
 echo 'g/junk/s//stuff/
 w
 q
  ' | ed $name
done
===================


-- 
Dave Brown  Austin, TX

------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.setup,comp.os.linux.questions
Subject: Re: Email configuration question
Date: Mon, 28 Aug 2000 16:24:17 GMT

  "Andrew N. McGuire " <[EMAIL PROTECTED]> wrote:
<snip>
> /etc/aliases or /etc/mail/aliases are what you are looking for.
> The exact location of the file should be found in the sendmail.cf
> file, on a line that looks similar to this:
>
> O AliasFile=/etc/mail/aliases
>
> The format of the aliases file is:
>
> alias: user1,user2
>
> the alias part must be local, the addresses do not have to be.
>
> so as per your example you could say:
>
> barry: BF4839432
>
> After adding aliases to this file you will have one of the following:
>
>   - newaliases
>   - sendmail -bi
>   - makemap dbm /etc/mail/aliases < /etc/mail/aliases
>
> The topic of aliases is actually quite a bit more complicated as you
can
> define an alias for a file, or program, or even a mailing list.
However
> the above should get you started.
</snip>
Andrew!
I'm new to Linux and even newer to sendmail, but figured aliases were
the solution to this issue - it's nice to know the "right" answer every
once inawhie. :) Per what I've read, and your comments
above, I'm wondering if I can use aliases for an e-mail I send out
monthly. It's not spam as everyone who receives it has requested it
and we follow the mass-mail guidelines. But, this e-mail goes to
between 6,000 and 7,000 addresses. Would it be possible to create an
alias (as in one) for blocks of 1,000 or 500 addresses? Since I'm new
to Linux, I don't know what optimization would be needed to handle a
load like that. Are there better solutions? We maintain the database
manually (it's in access right now) so we don't need automated
subscribe/un-subscribe, and it's just a one way mailing once a month--
not a discussion.
Thouhts?
Thanks!
Nathan


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED] (Dan Stromberg)
Crossposted-To: comp.sys.sgi.admin
Subject: opengl on sgi linux machines?
Date: 28 Aug 2000 16:28:45 GMT

Does SGI sell OpenGL on their linux servers?

I'm noticing that even tho intel/amd smokes mips in pure cpu
performance, opengl smokes mesa even if opengl is on a much slower
processor.

Is it possible SGI's opensourcing of GLX will eventually make mesa
more competitive with opengl?  That is, will free GLX make it so mesa
can use hardware acceleration in video cards, and if so, will that be
enough to make mesa a comparable performer?

------------------------------

From: Leonard Evens <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: Re: Amateur Hacker Backdoors Thwarted By Upgrade?
Date: Mon, 28 Aug 2000 11:05:35 -0500

Wretch wrote:
> 
> Hello.  I'm new to dealing with Linux security issues, and
> I recently had a break-in from a seemingly amateur hacker.
> My questions pertain to any backdoors that the hacker might
> have created, and whether it is *likely* (given that the
> hacker is somewhat of a rookie) that an OS upgrade will destroy it.
> 
> The address that the hacker ftp'd to numerous times, as indicated by
> the bash history files, was "dhcelite.hypermart.net," who you
> will see is a classic jive trash talking dorky whiteboy who
> fancies himself a computer gangster.  Has anybody out there
> had trouble with this punk as well?
> 
> NOW, on to my question:
> 
> -----------------------------------------------
> First, a few details about what I was running:
> -----------------------------------------------
> Redhat Linux 6.0
> i686 Intel Pentium II
> telnet,ftp,pop-3   are usually running (as specified in inetd.conf)
> 
> ---------------------------------------
> What happened
> ---------------------------------------
> 
> Hacker took advantage of the well-known
>  "buffer overflow" and gained root access.
> 
> Hacker ran a program called "eggdrop" which
>  installs an IRC-bot for group chats.
> 
> Also found running at various times were the
> following programs:
> 
> "remote.c" --> Allows backdoor access (I think)
> "t666.c"
> 
> "ns.c --> A "trinoo" daemon which I think is used
>             in denial of service attacks
> 
> Hacker also modified some files like "rc.local" so
>  that the naughty "remote.c" and "t666.c" programs
>  would run upon each reboot.
> 
> ------------------------------------------
> What I've Done
> -------------------------------------------
> 
> Upgraded to Redhat Linux 6.2, and employed all
> the current bug fixes and updates found at
> the Redhat site.  The kernel is upgraded to
> 2.2.16-3.
> 
> Also, I now only use secure shell logins
>  and file transfers, something I wasn't
>  doing before the hack.
> -------------------------------------------
> My Question
> -------------------------------------------
> 
> Is it *likely* that the upgrade, plus the
> shutting off of the telnet and ftp services, is
> good enough to keep out the amateur hacker?
> 
> Do amateur hacks usually install backdoors
> in such a way that they don't get written over
> in an upgrade of the binaries?
> 
> MUCH thanks for any help!
> 
> AC

The only thing I have to add to Bill Unruh's excellent advice is
the following.  You can't count on the amateur status of the
intruder to save you.   Amateurs use cracking kits they find on
the web, and such a kit could easily make changes in your
file system or plant trojan horses you might not find.  Follow
Bill's advice and wipe your disk clean and reinstall.

-- 

Leonard Evens      [EMAIL PROTECTED]      847-491-5537
Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208

------------------------------

From: Brian <[EMAIL PROTECTED]>
Subject: LILO Died - Partition Not Found
Date: Mon, 28 Aug 2000 09:40:10 -0700

I've just given Windows the boot. I installed the new Linux Mandrake 7.1
and decided to repartition my whole IDE drive. (6.5 and Windows
coexisted well). I now have one Linux partition from 0-760 sectors
mounted as '/'. When I try to install LILO to the MBR on /dev/hda it
bombs with the message that the partition isn't found.  If I look at the
partition table with DiskDrake, it shows the partitions I expect, hda1
is bootable but it notes that it is MS-DOS bootable. What do I have to
do to finish expunging MS-DOS?

My lilo.conf file looks like this:


boot=/dev/hda1
vga=normal
default=linux
prompt
timeout=50
image=/boot/vmlinuz
              label=linux
              root=/dev/hda1
              vga=normal
              read-only
...
other=/dev/fd0
         label=floppy
         tables=/dev/hda


The floppy part fortunately works. Any suggestions?



------------------------------

From: [EMAIL PROTECTED] (Tim Haynes)
Crossposted-To: 
alt.os.linux,comp.os.linux.networking,comp.os.linux.setup,uk.comp.os.linux
Subject: Re: Linux Mail Server
Date: 28 Aug 2000 17:37:27 +0100

"D. C. & M. V. Sessions" <[EMAIL PROTECTED]> writes:

> OK, now that you've heard references to the religious issues, I have
> a slightly different take on the matter.
> 
> Find a good mail admin, and give her the tools she likes best.

[]

+1, Insightful! :8]

...if only this was more prevalent...

~Tim
-- 
| Geek Code: GCS dpu s-:+ a-- C++++ UBLUAVHSC++++ P+++ L++ E--- W+++(--) N++ 
| w--- O- M-- V-- PS PGP++ t--- X+(-) b D+ G e++(*) h++(*) r--- y-           
| The sun is melting over the hills,         | http://piglet.is.dreaming.org/
| All our roads are waiting / To be revealed | [EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED]
Subject: where can I find bdftopcf source code
Date: Mon, 28 Aug 2000 16:35:13 GMT

Hi everyone,
  I am looking for the source code of 'bdftopcf' program.
Could someone point me out where to find it?
Thanks in advance.

Best Regards
Joshua Chen


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Richard Watson <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,alt.os.linux.suse,comp.os.linux.setup,uk.comp.os.linux
Subject: Re: Restaurant Booking System
Date: 28 Aug 2000 18:50:06 +0100

"Darren Paxton" <[EMAIL PROTECTED]> writes:

> Apologies for cross-posting, but I felt the need to do this in order to gain
> the greatest level of responses from the Linux Users.

Maybe stick to 3 or less next time. You've only just scraped below my
news server's threshold for spam.
 
> I work for a restaurant chain based in Glasgow, Scotland, and we would like
> to introduce some form of online restaurant booking system to our website.
> We have already had consultations with a company who specialise in this kind
> of system, but one of their stipulations is that every time a booking is
> made from our website, we are to be charged a fee.

Is this in addition to the set up costs? Just out of interest how much
were they charging you?

> Our MD would like to
> avoid having to pay such a fee, and with the introduction of higher speed
> connections, we are considering introducing our own webserver, and therefore
> we would be able to host our own programs and back ends to the website.

I would actually _not_ recommend this from a commercial point of
view. When you consider how cheap web space is you would be far better
off IMO letting someone else do that for you. Do you really want to be
dragged out of bed at 4 in the morning after a mains spike or
whatever? �150-�200 a year gets you some nice web space with someone
else to do the donkey work. Compare this to �4-500+ to set up your own
box on a shoestring and doing all your own support.

On the other hand if you want to set up a web server for the fun of it
and you're prepared to learn a lot then go right ahead.
 
> What I would like to know is are there any linux based applications
> available out there that would allow online bookings, and hopefully would
> also allow this to be done for multiple locations. Each of the locations
> would also need access to every other unit's booking sheets so that they
> could pass bookings on to other sites if they were full for that
> period.

You just need a central database (MySQL/Postgresql) with all the
bookings on it. 

IMHO the most sensible course of action would be a web based solution
with PHP. Chances are something like this has already been written and
would just need a bit of tarting up. In any case it wouldn't be so
hard to write from scratch. Just needs reasonable planning and all
that. 

> We
> are also looking at bringing in a team of dedicated telephone agents to also
> take bookings over the phone, but this could obviously be done via the web
> front end.

Yes, you just need a few admin type pages so that your telephone
people can bugger^H^H^H^H^H^H^H alter things as required.

-- 
         Richard Watson |  Pentagon Web Design Ltd  | Reading, UK 
   [EMAIL PROTECTED] |  Fax: +44(0)870 706 5282  | ICQ: 65274884
http://www.pwdltd.co.uk |  Reg. Linux User #183315  | GPG/PGP 0xA6AB8345

------------------------------

From: Wretch <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: Re: Amateur Hacker Backdoors Thwarted By Upgrade?
Date: Mon, 28 Aug 2000 12:52:19 -0400

Leonard Evens wrote:
> 
> The only thing I have to add to Bill Unruh's excellent advice is
> the following.  You can't count on the amateur status of the
> intruder to save you.   Amateurs use cracking kits they find on
> the web, and such a kit could easily make changes in your
> file system or plant trojan horses you might not find.  Follow
> Bill's advice and wipe your disk clean and reinstall.


Yes, I too believe that a full reinstallation is the only
way to calm my nerves.  

However, in my post I was sort of groping, in an offhanded way,
for some insight as to exactly how one installs a "backdoor"
once they get into the system.  Can this be done in an effectively
infinite number of ways, or are there typical tricks that I might
be able to look for?  

Thanks,

AC

------------------------------

From: Jose M de Aguiar <[EMAIL PROTECTED]>
Crossposted-To: comp.emulators.ms-windows.wine,comp.os.linux.setup
Subject: Re: ls /dos incorrect....
Date: Mon, 28 Aug 2000 10:17:10 -0700

Andre Poenitz wrote:
> 
> Jose M de Aguiar ([EMAIL PROTECTED]) wrote:
> : Any suggestions?
> 
> Have you mounted the partition?
> 
> Andre'
> 
> --
> It'll take a long time to eat 63.000 peanuts.
> Andr� P�nitz ......................... [EMAIL PROTECTED]

Thanks for the suggestion. 

Any way, my understanding is that if I can list some files
in the /dos directory, it means that the file system is 
mounted. 

I checked xvmount which directs to /etc/xvmounttab  ( Debian 
2.2 Linux Kernel 2.2.14 ). It shows:

#
# Config file for xvmount (v3.5)
#
# name          device          directory       type    options

Floppy0:        /dev/fd0        /mnt            auto    defaults  # floppy A
Floppy1:        /dev/fd1        /mnt1           auto    defaults  # floppy B

CD-ROM:         /dev/cdrom      /cdrom          auto    ro        # CD-ROM 

DOS-HD:         /dev/hda1       /dos            vfat    defaults  # first DOS partition

---

I also checked into /etc/mtab:

/dev/hda3 / ext2 rw,errors=remount-ro,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda1 /dos msdos rw 0 0

---

I can list part of the files available in the /dos partition 
of the hard-disk. But not all of them. I think the question 
in fact is more Linux related then Wine. 

Any way, any suggestion are welcome.

Thanks, 

Jose

------------------------------

From: [EMAIL PROTECTED] (Sweth Chandramouli)
Crossposted-To: comp.unix.aix,comp.unix.misc,comp.unix.shell
Subject: Re: NEWBIE-Shell scripting - When to use script variable vs. create tmp 
file???
Date: Mon, 28 Aug 2000 17:06:38 GMT

In article <y6wq5.14$2C1.485@burlma1-snr2>,
Barry Margolin  <[EMAIL PROTECTED]> wrote:
>In article <8o853d$7jj$[EMAIL PROTECTED]>, Ken Pizzini <[EMAIL PROTECTED]> wrote:
>>On Thu, 24 Aug 2000 20:20:07 GMT, -ljl- <[EMAIL PROTECTED]> wrote:
>>>I not an expert by any sense of the word but this can be solved by
>>>using the "PID of the current process", reserved shell variable $$.
>>>Each process is unique.
>>
>>... provided that you are working on a disk that is not shared.
>>Things like NFS screw up the "$$ is unique among running
>>processes" assumption.
>
>If you write your temp files to /tmp or /var/tmp, it's extremely unlikely
>that it would be shared.
        I'm a big fan of "tempfile.`hostname`.$$.`date +%Y%m%d%H%M%S`",
which shouldn't be affected by sharing, and when used in scripts that aren't
called from cron jobs does a pretty good job of preventing people from
predicting the tempfile name and attempting ugly race condition attacks.
When I'm feeling really paranoid, I do something like

TEMPFILE="tempfile.`hostname`.$$.`date +%Y%m%d%H%M%S`.$COUNTER.`netstat -an | cksum | 
tr -d ' '`"
while [[ -e $TEMPFILE ]] ; do
   TEMPFILE="tempfile.`hostname`.$$.`date +%Y%m%d%H%M%S`.$COUNTER.`netstat -an | cksum 
| tr -d '[:space:]'`"
done

        .  Once I'm feeling that paranoid, though, I usually just
write the script in perl and use the POSIX random filename function.

        -- Sweth.

-- 
Sweth Chandramouli ; <[EMAIL PROTECTED]>
<a href="http://www.sweth.net/legal/disc.html">*</a>

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to