You are not logged in.
I'm a lousy programmer and know some bash and python. I want a program that automaticly mounts new drives available. Most important is my dvd-writer but I'd also like it to check for external disks through sshfs. This is more or less what I want (in pseudo-python).
def mount_hd():
try:
sshfs user@host.myftp.org:/home /mnt/xhd
except MountError:
pass
def mount_rom():
try:
mount /dev/cdrom /mnt/cdrom
except MountError:
pass
while True:
mount_hd()
mount_rom()
Of course it would be better to call the program when the computer detects new hardware instead of having it running in the background. Any ideas?
/Richard
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline