-
Detectiion and Tranfering files to USB automatically
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
Similar Threads
-
By elax in forum Customising & Remastering
Replies: 0
Last Post: 06-04-2005, 08:14 AM
-
By ovaron in forum General Support
Replies: 2
Last Post: 10-27-2004, 07:04 AM
-
By bizarro in forum Customising & Remastering
Replies: 1
Last Post: 10-06-2004, 02:24 AM
-
By ahz in forum Customising & Remastering
Replies: 2
Last Post: 05-01-2004, 08:52 AM
-
By motu2k in forum Customising & Remastering
Replies: 1
Last Post: 02-19-2004, 10:59 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

5 Port Gigabit Unmanaged Ethernet Switch, Home Network Hub, Office Ethernet S...
$9.64

Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch
$46.99

NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch
$49.99

5Ports Gigabit Network Switch w/ 4 PoE+ Ports Total 52W each port 30W Plug&Play
$31.99

TP-Link TL-SG105 5-Port Gigabit Ethernet Unmanaged Metal Desktop Network Switch
$19.99

10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W
$39.99

TP-Link TL-SG105, 5 Port Gigabit Unmanaged Ethernet Switch, Network Hub, Ethern
$15.25

Arista DCS-7010T-48-R 48P 1GbE 4P 10GbE SFP+ RA Switch with rack mounts
$69.00

Linksys LGS328MPC 24-Port Managed Gigabit PoE+ Switch with 4 10G SFP+ Uplinks
$224.95

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99