strange bash problem
By basd on Apr 1, 2009 | In kde4, linux, opensuse, gnome
Okay, yesterday I said there was a problem with sshfs -- but I was (sort of) wrong.
...
As it turns out, sshfs is working just fine.
That is, if I invoke it via the bash script I have been using for some time. This script:
(a) launches a kdialog asking if I wish to connect
(b) runs sshfs, which gives me a kdialog to enter the password
(c) also runs a mount.cifs of a local network drive
(d) exits.
So, I embedded these commands in another script that then goes on to check the remote connection and exchange some files.
This works too -- until the second time I invoke the script.
Whereupon, it apparently verifies there is a connection, but fails to actually access the necessary directory and the script hangs up.
So, I tried a "sleep" command in case the script was moving forward too quickly after running the sshfs connect. Didn't work. I tried "calling" the original script, instead of embedding it.
Same result.
So, then I set up a wait point in the new script so I can manually run the original script -- and then continue the new script.
Oddly, this works fine.
So, it appears I need to exit the bash shell application after making the connection and before running bash commands that interact with the remote directories. And if I don't, I can still interact properly ONE TIME ONLY.
I can't figure this one out at all.
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
No feedback yet
| « ymmv. kde4.2.2 | I visit the future, sshfs ceases to work and other weirdnesses » |