Re: =?iso-8859-1?Q?variable=3DStrart=5FProgramPID =3F=3F?=
From: pir aa (pir_at_austromail.at)
Date: 11/25/04
- Previous message: Greg Madden: "Re: how to check temperature on my desktop"
- Maybe in reply to: Sam Watkins: "Re: =?iso-8859-1?Q?variable=3DStrart=5FProgramPID =3F=3F?="
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 25 Nov 2004 09:27:28 +0100 To: swatkins@fastmail.fm, debian-user@lists.debian.org
Thanks,
You are right it is $! but my question that this throws up, is, if when
running x scripts the $! could return at some time the pid of a wrong command.
What I mean:
Imagine having two scripts (I know ls and df don't run long enough, it is just
used as an example):
1.)
ls
pid1s=$!
kill $pid1s
2.)
df
piddf=$!
kill $piddf
Now could it ever happen, if there would run really many of these scripts,
that you could end up with something like this:
df
pidls=$!
??
(Now I am using "pkill -f" for my scipt)
Pir
---
Alles Kaufen und Verkaufen! eBay.at - der eigene Marktplatz für Österreich.
http://www.austronaut.at/ebay.php
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Greg Madden: "Re: how to check temperature on my desktop"
- Maybe in reply to: Sam Watkins: "Re: =?iso-8859-1?Q?variable=3DStrart=5FProgramPID =3F=3F?="
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|