|
Re: lug-bg: pid.file
- Subject: Re: lug-bg: pid.file
- From: vlindos_mpdev@email.domain.hidden (Vladimir Moushkov)
- Date: Mon, 14 Apr 2003 03:16:55 +0300 (EEST)
<em class="quotelev1"> >Zdraveite !
Zdravei
<em class="quotelev1"> >
<em class="quotelev1"> >Pisha si edin script i za celta mi triabva da znam kyde e pid faila
<em class="quotelev1"> >na dadeno prilojenie koeto raboti v momenta za da moga da go cheta.
Kakwo she mu chetesh na pida ?
<em class="quotelev1"> >
<em class="quotelev1"> >Da obache tochno tova prilojenie ne moga da mu dameria pid faila.
pid fail imat opredeleni prilojenia - daemoni po-princip - zapochnalo e ot fakta "kak da se detektwa izpolzwaneto serial tty". dnes se izpolzwa ot rh ....
<em class="quotelev1"> >Vyzmojno li e da niama i ako e taka kak da go nakaram da si pravi takyv file.
da vyzmojno i e wuzmojno da da go nakarash da prawi ama tapo i bezsmisleno zatowa naprawi tova za da widish pida:
# PID=`ps $FLAGS| grep $PROC | cut -c1-5`
# echo $PID
kydeto PROC e imeto na programata a flags sa paramteri specifichni za unix-a koito izpolzwash za gnu utils FLAGS=ax bi bilo dobre, za BSD prazen string e fine
<em class="quotelev1"> >
<em class="quotelev1"> >
<em class="quotelev1"> >--
<em class="quotelev1"> >Marian Popov
<em class="quotelev1"> >Siterm Engeneering Ltd.
<em class="quotelev1"> >mano_at_pazardjik.com.NOSPAM
<em class="quotelev1"> >--
<em class="quotelev1"> >
--
just vlindos :)
oshte edin administrator na belia svqt
-----------------------------------------------------------------
http://www.Pari.bg - Åäèíñòâåíèÿò áèçíåñ âñåêèäíåâíèê!
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|