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

VTG Atari 400 Home Computer System ** Sold "AS-IS" for Parts or Repair
$88.75
Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On)
$300.00
DEFECTIVE Atari 810 Vintage Computer Disk Drive powers on Unit Only Boo G3D
$49.29
UNOCART-2600 SD card Multi Rom Cartridge for ATARI 2600 with CASE
$34.25
SDrive Max Floppy Drive Emulator Atari 8-Bit 400/800/XL/XE Firmware 1.5 USB C R2
$70.00
Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working
$99.99
Atari XE 130XE Computer NTSC with Power Supply Powers On Untested
$159.95
INFO/soft Character Generator Manual for Atari 3000/5000/7000 NTSC
$40.00
Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ
$350.00
Atari 1200xl Original ROM And MMU set
$20.00