Does anybody know if it's possible to disable error messages, such as invalid password, in the rdesktop client on linux? I'd like to write a script that uses rdesktop in a while loop, but it seems to hang if I don't auth properly.

link|improve this question

feedback

4 Answers

Why not test the username and password against the server first, using something else (SMB perhaps)?

link|improve this answer
An excellent suggestion. However, some of these systems live inside the DMZ and I can only see port 3389 on them. – dr.pooter Jun 14 '09 at 12:39
feedback
up vote 0 down vote accepted

OK. It's not possible. Back to the drawing board.

link|improve this answer
You gave up about 39 seconds too soon. – Joseph Kern Jun 12 '09 at 19:56
feedback

Something is afoot! Why would you want to repeatedly login to a remote desktop session with an invalid password?

I'll bite ...

rdesktop 2> /dev/null

Just a simple error redirection should work. But still. Why do you need to write a while loop for an interactive process?

link|improve this answer
rdesktop 2> /dev/null will redirect errors from the client itself but not errors presented from the GINA. Most of the machines in my survey have the same account, but not all. That's a fine situation, but I want to have the while loop continue when it gets a failure from the outliers. Really though, there's no way to do this without hacking the rdesktop source. My plan is to try sending 'enter' on detection. – dr.pooter Jun 12 '09 at 20:09
Ah. Interesting. – Joseph Kern Jun 12 '09 at 20:27
feedback

I have to assume you did what I did, took a Pos desktop, put rdesktop on it and secured it down. On boot mine executes rdesktop to our terminal service.

Two options 1) create a link on desktop to recreate connection(easy fast cheap) 2) create a script that waits for rdesktop to exit, on return it restarts rdesktop. This is very doable but a pain in the ass. you'll need to learn signal handlers for this.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.