Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Running a program when a device is attached
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Carnildo
Guru
Guru


Joined: 17 Jun 2004
Posts: 593

PostPosted: Fri Dec 20, 2013 7:22 am    Post subject: Running a program when a device is attached Reply with quote

How would I go about running a program automatically (specifically, "rsnapshot weekly") when I plug a specific USB hard drive into my computer?
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Fri Dec 20, 2013 8:28 am    Post subject: Reply with quote

Pssst! Are you running udev ?
Only whisper the answer! :twisted:

If yes then you can rely on the gentoo-wiki
The paragraphs Advanced Configuration / Rules && Persistent device names can be a starting point for understanding where to dig more deeply or ask further more precise questions.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum