I am new to linux. for one my new project ,the requirement is
we will have a textfile(.txt) in a local harddisk of the Desktop which is having linux OS(Red Hat Enterprise Linux 4) with kernel version 2.6.20.14. We need to write a small application program in C language which will do the following action:
1) Whenever the USB is connected in the Desktop, the C program has to transfer the textfile to the USB disk automatically.
For executing this we would like to clarify the followings:
a) How to find the presence of USB disk through my C program?
b) How to transfer the textfile to USB disk through my C program automatically after detecting the USB disk?
If any one can give a solution for this, it will be really helpful.
Thanks,
Unnikrishnan

Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit NEW
$13.89
LEVOIT Cordless Vacuum Cleaner, Stick Vac with Tangle-Resistant Design, Up to...
$162.04
Cordless Air Duster & Vacuum Cleaner for Keyboard & PC Cleaning - 110000RPM Powe
$53.99
2-in-1 Compressed Air Duster & Vacuum, Brushless Motor, 320000RPM
$37.99
Vaquform DT2 - Desktop Vacuum Forming Machine
$800.00
US Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kits
$13.89
Cordless Handheld Vacuum Cleaner Compatible with DeWalt 20V Battery
$107.67
Compressed Air Duster Rechargeable Computer Vacuum Cleaner for PC Keyboard Toys
$16.99
V3 Robot Vacuum and Mop Combo,Self-Charging,5000pa Strong Suction,WiFi/Alexa NIB
$82.00
Mini Computer Vacuum Cleaner & Compressed Air Duster 14500Pa, 110000RPM, Cordles
$53.99