runing ./a.out or any file when pen drive is detected to PC in linux
hello,
i want to make a program in c++ in linux, such that when i attach my pen drive to linux PC it must run any file specified by me. Just i was searching for this problem i see the udev concept can u tell me how can do this in c++. |
Hi, welcome to LQ!
And thank God you can't ... whatever you write, it needs to be tied in w/ udev on the receiving machine, which you hopefully won't have access to. autorun is a crime against humanity. Cheers, Tink |
so,can you tell me how can i run a specific file when my pendrive is attached its needed for my project in which i m trying to provide security in which when pen drive is attached i will ask the user to enter a username and password this is because
i can keep track of users. so please help me. |
please help me i m waiting for your help
|
What are you trying to achieve w/ this? In terms of security, what
do you gain? Cheers, Tink |
ok can u tell me how can i control the window close event in linux using c++.
|
All times are GMT -5. The time now is 01:48 AM. |