![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remote commands problem using RSH & Rexec | fhuwaidy | UNIX for Advanced & Expert Users | 0 | 01-15-2008 04:22 PM |
| How can I do a rexec to execute un C exe ? | Lika | Shell Programming and Scripting | 4 | 02-22-2007 10:17 AM |
| Rexec | pmj1970 | SUN Solaris | 1 | 04-20-2004 01:46 PM |
| Enabling Rexec ???? | raichuu | UNIX for Dummies Questions & Answers | 1 | 02-26-2002 08:25 PM |
| expect (re: rexec) | yatno | UNIX for Dummies Questions & Answers | 1 | 03-27-2001 06:30 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi folks,
I'm trying to make a reconnection algorithm using rexec(), but I noticed that when rexec() fails returning -1, it is impossible to make it run successfully again until you restart the program or the thread. Example, I have a endless loop for connection retries, if I supply a wrong password for a given username, rexec fails, it's ok. But my program keeps trying to connect calling rexec function, so if I change the password for that user in the host to the password that rexec is giving, it should connect successfuly, but I keep getting the same login error. The curious is if I restart my program or even if I finish the thread and start the thread again it connects succesfully. I think it's a bug in rexec, does anyone had a problem similar to that and can help me. Due to that problem I'm writing a code just to restart the threads that failed in rexec, but it's getting much more complex than it should be. Thanks in advance for any help. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|