> -----Message d'origine-----
> De:   Michael McCabe [SMTP:[EMAIL PROTECTED]]
> Date: jeudi 18 janvier 2001 12:26
> A:    Muscle
> Objet:        MUSCLE card insertion and removal
> 
> I'm using pcsc-lite 0.8.4 and noticed that pcscd recognises when a card
> is inserted and removed from my Schlumberger Reflex 62 drive.  Is there
> a way for me to automatically call an applet when the daemon gets card
> inserted message.  Also is it possible to call an external program on
> the host PC.
> 
> Thanks in advance,
> Michael.
> 
> 
> ***************************************************************
> Linux Smart Card Developers - M.U.S.C.L.E.
> (Movement for the Use of Smart Cards in a Linux Environment)
> http://www.linuxnet.com/smartcard/index.html
> ***************************************************************
> 
> 

You should have a look at eventhandler.c, find the messages "card inserted", (near 
line 205 in pcsc-lite 0.7.5) or "card remove" (l 171).
You can launch your command on the host by calling system("my command &") or, better 
this way,  using fork() and exec() .

Regards

Guillaume.

_________________________________

Guillaume LAISNEY
REALTRONIC  - service R&D logiciel

email: [EMAIL PROTECTED]

tel:    +33 (0) 2 33 50 98 00
fax:    +33 (0) 2 33 50 98 49

REALTRONIC
Z.I. Conillot
50400 Granville
FRANCE




 
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to