Linked Questions

0
votes
1answer
2k views

Run a command after a specific USB was plugged in [duplicate]

I want my usb to run a command or a script --like autorun-- when it is plugged in. I've also searching and found out that autorun was not present because of some security reason(s). How do you run a ...
4
votes
0answers
1k views

Run script AFTER automounting usb hdd (udev, mount --bind) [duplicate]

Possible Duplicate: How to run a script when a distinct flash-drive is mounted? When plugging-in my USB HDD, it is mounted automatically, as expected. After that event, I'd like to automatically ...
132
votes
9answers
311k views

Running programs in the background from terminal

How do I run a program in the background of a shell, with the ability to close the shell while leaving the program running? Lets say my UI is having problems or for some reason, I need to boot up a ...
48
votes
9answers
85k views

How to automatically archive a directory?

I want to do one way synchronization. I am having Folder A on my computer which is constantly updated with content. Another Folder B is used for backup purpose which is on external HDD. Now what I ...
22
votes
2answers
21k views

Autorun a script after I plugged or unplugged a USB device

What can I do to run automatically a script after I mount/plugin or unmount/unplug a USB device?
13
votes
1answer
11k views

How do I run a script on a dbus signal?

Is it possible to run a script on an arbitrary dbus signal? Something like Upstart that runs as an unprivileged user and doesn't require root perms to modify? I ask because I've already written a ...
10
votes
2answers
6k views

Automatically sync a folder to a USB when USB is plugged in?

Is there a way to sync a folder to an USB drive when the drive is plugged in? I'd like it to sync, or copy over changes, both ways. I've seen the Back In Time and Unison-GTK applications, but I'd like ...
3
votes
1answer
10k views

Symbolic links lost after restart

I have been working on setting up some symbolic links so that I can easily access directories and files on another internal hard drive. When I create the links they work well, but every time that I ...
3
votes
3answers
4k views

External Hard Drive sync

I was wondering whether there's a mechanism to sync two external hard drives, so that the files are updated both ways (and they end up containing the exact same information). Ideally it could run ...
3
votes
2answers
2k views

Using duplicity directly, is it possible to have multiple backup plans?

If I understand correctly, duplicity is the command line tool for creating backups and can be used stand-alone (i.e. no DejaDup involved) for creating backups. Is it possible to set up multiple ...
0
votes
1answer
2k views

Mount external harddrive and one of its subfolders from fstab

I'm currently mounting my external harddrive using the following entry in /etc/fstab: UUID=12C23AD8C23AC031 /media/MyBook ntfs-3g auto,users,exec,rw,nobootwait,iocharset=utf8,uid=1000,gid=1000 0 0 ...
0
votes
2answers
2k views

WD Elements 1042 External Will not work

I'm trying to get all my data at this point. Any help? Once and a while it will mount but cant get data off quickly. Error Message: Error mounting /dev/sdb1 at /media/ubuntu/Elements: Command-line `...
1
vote
1answer
2k views

Can upstart script be triggered by a device attached?

How should I specify the "start on" condition to run an upstart script when a device (an external disk) is attached?
2
votes
2answers
879 views

Run a script on detecting modem

My problem is I am not able to run script automaticlly when modem is connected. I need a code to be run when my modem is detected. I am having a photon modem and I am using sakis3g script to connect ...
2
votes
1answer
445 views

Is there a way to run a script every time I insert a usb modem?

I would like a shell script to execute each time I insert a USB modem. How would I do this?

15 30 50 per page