|
Re: sigusr1, sigusr2: msg#00093network.ekg.user
> Mam jeszcze jedno pytanie w "help on" jest: > sigusr1, sigusr2 - otrzymanie przez ekg danego sygnału > > Czy przy jak robie detach na screenie to jest wysylany jakis sygnal do > ekg? Jeśli nie > To czy można jakos sckonfigurowac screena żeby wysylal ? > > Bo chcialem zrobic ze jak robie Ctrl-a d to żeby automatycznie status > zmienial się na niewidoczny Sproboj dodac sobie aliasa do screena np. (w standardzie tcsh): alias se ~/status_on_attach\;screen ekg\;~/status_on_detach alias sr ~/status_on_attach\;screen -r\;~/status_on_detach gdzie ~/status_on_attach i ~/status_on_detach to skrypty powlokowe w katalogu domowym uzytkownika kazace ekg odczytac nowy temat: (przyklad dla mnie) pid=`ps axww | grep '/home/users/gh[o]st/bin/ekg' | grep -v SCREEN | awk '{ print $1}'` if [ ! -z "$pid" ] ; then kill -USR1 $pid fi w pliku ~/status_on_detach trzeba zmienic USR1 na USR2 i dodac on sigusr1 * set theme [temat_aktywny] on sigusr2 * set theme [temat_zdetachowany] troche zagmatwane ale powinoo zadzialac ;-) Pozdrawiam GhosT (lac. spirytus ;-) -- Piotr "GhosT" Wydrych <Piotr.Wydrych-X8HigQIysNQf3/XKqG1W6GZHpeb/A1Y/@public.gmane.org> ------------------------------------------------------------------------ Bestiae sumus, ut non bestiae simus. (Bestiami jestesmy, by bestiami sie nie stac.) |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Odp: (no subject): 00093, przemmaj |
|---|---|
| Next by Date: | Re: (no subject): 00093, theKnight |
| Previous by Thread: | sigusr1, sigusr2i: 00093, Struthio |
| Next by Thread: | RE: sigusr1, sigusr2: 00093, Struthio |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |