[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Etwas beim Login ausführen



Hallo Peter,

Du willst zwar etwas was für KDE funktioniert aber hier einen Tip, der
sich AUCH in KDE-Login und KDE-Logout integrieren läßt:

----[ '~/.bash_login' ]-----------------------------------------

if [ `w -h ${LOGNAME} |wc --lines` -eq 1 ] ; then

  Hier_der_einmalig_ausführbare_code

fi
----------------------------------------------------------------


----[ '~/.bash_logout' ]------------------------------------------

if [ `who |grep "^${LOGNAME}" |wc --lines` -eq 1 ] ; then

  Hier_der_einmalig_ausführbare_code

fi
----------------------------------------------------------------

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: