SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-03-03 18:44:17

Mehall
#! Die Hard
From: Scotland, Cold
Registered: 2009-01-17
Posts: 850
Website

sshfs automation script

Hey all.

I was getting annoyed having to type in all the full commands for sshfs, and I always ended up forgetting the unmount command, so I wrote a script.

Unfortunately, I haven't had a chance to test it yet, since I'm not at home just now, but I put it on the pastebin, partly so that I can access it with ease.

it's easy to edit.

You have four places to edit to customise it:

the two menu's, and the place where it details what the address/mount-point should be when mounting it, and the place where it details what address you are unmounting.

You can easily enough add more hosts if you want.

If I knew how to code anything I'd consider making a light-weight as hell gui frontend, but I don't know where to start with that.

sshfs could do with a gui, even if I wouldn't use it tongue

code: http://crunchbanglinux.org/pastebin/209

EDIT: New code up. this one HAS been tested, though it has no specific error checking (it'll just fail, but you'll see it has no files in the mount-point when you look)


I couldn't get it to work the simple way, but the code is still fairly clear.

Last edited by Mehall (2009-03-04 00:12:13)


Ex-KDE user.
Collects old PC's (Coz he can't afford new ones =P)
Crunchbang @ Distrowatch
My Blog (updated infrequently, and on the #! Planet too.)

Offline

Help fund CrunchBang, donate to the project!

#2 2009-03-03 18:46:12

Mehall
#! Die Hard
From: Scotland, Cold
Registered: 2009-01-17
Posts: 850
Website

Re: sshfs automation script

And I'm bloody glad I put it up on pastebin, since it has syntax hilighting.

I saw SOOO many mistakes =[


Ex-KDE user.
Collects old PC's (Coz he can't afford new ones =P)
Crunchbang @ Distrowatch
My Blog (updated infrequently, and on the #! Planet too.)

Offline

#3 2009-03-04 00:12:32

Mehall
#! Die Hard
From: Scotland, Cold
Registered: 2009-01-17
Posts: 850
Website

Re: sshfs automation script

New version up.

Tested and working (read OP for details)


Ex-KDE user.
Collects old PC's (Coz he can't afford new ones =P)
Crunchbang @ Distrowatch
My Blog (updated infrequently, and on the #! Planet too.)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo