Re: lug-bg: AutoSlack 1.7 KeepAlive script
- Subject: Re: lug-bg: AutoSlack 1.7 KeepAlive script
- From: danchev@xxxxxxxxx (George Danchev)
- Date: Fri, 25 May 2001 22:45:59 +0300
Ami kakvo da kaja ..., samo nqkolko dumi za adekvatnata assistance , za
drugo ne se seshtam v momenta:
Evala i Blagodarq , Thanks und Dankishe ,Graciq i Ashkoolsum Mashaaa na
tova source-to .
On Friday 25 May 2001 17:47, you wrote:
> Zdravei,
>
> On Fri, 25 May 2001, George Danchev wrote:
> >neuspeshno , prosto tazi funkciq vse oste ne raboti) i sled kato izte4e
> >TIMEOUT parametura koito mu se zadava (opitvah na nqkolko ftp servera s
> >mnogo golemi timeout stoinosti - ne resume-va ) autoslack prekratqwa
> > rabota . Trqbwa ru4no da se startira otnovo i zlopolu4niq package ste
> > bude izteglen otna4alo , za ve4e izteglinite nqma problemi - spool-nati
> > sa v edin dir . Ta pri men taka 3 puti dropwashe na polovinata na
> > glibc-2.2.2 (27MB) ... dialer-a (v moq slu4ai) reconnect-va , no
> > autoslack ne iska da resume-ne
> >
> >:(((.
>
> Predpolagam, che tova e bilo mnogo nepriatno :-(
Napravo mi podari sunq kakto se kazva, sega moga da ostavq autoslacka da
si "pase" na volq all the night (kakto go pravi i apt-get ) , da si izmiq
zubkite i da si legna , i na sutrinta Nov Slack. Pei surce ...
>
> >Ta pitaneto mi e slednoto :
>
> ...
>
> >Ta moje li nqkoi da nahvurlq suvsem grubo nqkolko red4eta na takuv
> > keepalive bash script koito da sledi i restartira : autoslack -opt1 -opt2
> > -optX ( moje i na drug script ezik ) , a az posle ste si go "doumorq".
>
> Prastam ti edna cqla C programa, kompilira se s
>
> gcc -o keepalive keepalive.c
>
> Sled tova pishesh
>
> ./keepalive command [arguments]
>
> sled koeto keepalive instalira SIGCHLD handler, fork-va command child,
> i usleep(). Ako child command terminira, keepalive poluchava SIGCHLD,
> sybuwda se, fork-va nov command child i pak zaspiva...
>
> Edinstveniq nachin da prekratish tozi cikyl e da kill-nesh keepalive.
Programkata raboti idelno , probah q s nai razli4ni processes , pravi mnogo
burz forking na natovarena mashina . Vuobste ste svurshi rabota i za mnogo
drugi nesta , ne samo za autoslack-a...
>
> Predpolagam, che autoslack e konzolna programa,
console app e da ;-) . Da ti kaja ima izvestna razlika s buton4eto Windows
Update. HAHAHAHAHA.
BTW dobriq Package Manager malko ili mnogo spomaga za lesnoto ubejdavane na
winlosers da opitat i Linux (i ne samo) - stoto nqmat podoben analog
otsreshta . 4rez APT uspqh da ubedq edin friend da sloji Debian (zadava mi
neudobni vuprosi sega , ama ...) , v momenta double-boot-va win98/Deb , no go
4uwam 4e se kani kato se pou4upi malko s linuxa , da purge-ne wina .
>a pyk keepalive sym q pisal s mnogo verbose prints, koito mogat da sa
nepodhodiasti za teb,
> zatova mojesh spokoino da iztriesh vsicko sto e printf() v keepalive.c
>
Da prav si , moje bi tezi prints mai sa po podhodqshti :
./keepalive: child process (pid=1445) terminated with status 0,
I''ll be back, just going to crack a cigarette .
starting new process...
Hell man , don't you think I could ever die , I was born to never die !
./keepalive: forked child process with (pid 1448)
Need a cigarette sometimes !!!
> Razbira se, ne poemam nikakva garanciq za tazi programa.
> Use at your own risk ;-))
ami az takava garanciq tursq , dnes qvno mi vurvi oba4e !!!
Oste edin put blagodarq za source !!!
znaeh si az 4e "Source will beat them all" !!!
>
> Pozdravi,
> Vladimir Dzhuvinov
> --
> PGP 1024D/959FC3BC 2001-02-12 Vladimir Dzhuvinov <vd@xxxxxxxxx>
> Key fingerprint = CB20 FC83 775C C34E 49D5 0F71 BAE5 7C38 959F C3BC
> Download public PGP key from http://www.valan.net/vdzhuvinov.asc
----------------------------------------
Content-Type: TEXT/PLAIN; charset="us-ascii"; name="keepalive.c"
Content-Transfer-Encoding: BASE64
Content-Description:
----------------------------------------
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|