Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

17
  • Thanks. However, the error is not coming from sudo it is coming from x11vnc -storepassword. I've been trying various expect approaches and I can't seem to get it right. An example using expect to enter a password for x11vnc -storepassword would be greatly appreciated. I'll update my question to avoid further confusion. Commented Jul 11, 2013 at 23:25
  • @MountainX Right, sorry, I'd misread the question. Here's an expect script (completely untested). Commented Jul 11, 2013 at 23:45
  • Thank you. Your untested script gave me a few additional clues, but ultimately it also does not run without errors. The error is simply Enter VNC password: usage: send [args] string on the line expect "password:" {send "swordfish" "\r"}. I'm not sure how to fix that. Expect seems to be a very picky tool because I've been fooling with this particular problem for hours without working results yet. Commented Jul 12, 2013 at 0:56
  • 1
    BTW, the same commands used in your expect solution work when entered manually. They do not work in this expect script or any variation of it that I have tried so far. Commented Jul 12, 2013 at 1:07
  • 1
    @CharlieParker Ask this as a question. (And I personally wouldn't know, I'm not familiar with this reauth command (is that a standard thing of AFS? If not you'll need to explain where it's from).) Commented Nov 25, 2022 at 19:50