Results 1 to 4 of 4

Thread: Need computer to detect hard-drive automatically and run script

  1. #1
    Join Date
    Sep 2008
    Beans
    51

    Cool Need computer to detect hard-drive automatically and run script

    i need to run a script every time i plug in my external hard-drive, but i don't want to have to click a file or paste a command into terminal, how can i make sure the script runs as soon as i plug it in?

  2. #2
    Join Date
    Apr 2012
    Beans
    5,531

    Re: Need computer to detect hard-drive automatically and run script

    You could write a udev rule (perhaps based on the idVendor and idProduct ATTRS to uniquely identify the device), and give it a RUN action pointing to your script

  3. #3
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,509
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Need computer to detect hard-drive automatically and run script

    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  4. #4
    Join Date
    Jan 2013
    Beans
    525

    Re: Need computer to detect hard-drive automatically and run script

    Try cuttlefish. It does stuff like that!

    http://www.omgubuntu.co.uk/2012/09/a...ith-cuttlefish

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •