sundeep Posted May 6, 2009 Share Posted May 6, 2009 Hi, I tried the below code for remote login to work and it did not work :-( Send("san{ENTER}{ASC 115}{ASC 100}{ASC 112}{ASC 49}{ASC 50}{ASC 51}{ENTER}") which includes both the username and password. The same works when I try it with FTP, with the same username and password but not with telnet. Regards, Sundeep. Link to comment Share on other sites More sharing options...
BrettF Posted May 6, 2009 Share Posted May 6, 2009 for what exactly? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Juvigy Posted May 6, 2009 Share Posted May 6, 2009 How do you select the FTP and the Telnet windows? I think your program fails there. Link to comment Share on other sites More sharing options...
sundeep Posted May 6, 2009 Author Share Posted May 6, 2009 Actually I am trying to upload a file to a remote server using command prompt and access that file through remote login by using telnet command in command prompt. If I run the command externally like, telnet i.p username: san password: ****** I am able to successfully able to login but if I include the above in the auto it script and execute it, it wont work. That is where I am facing the problem. Link to comment Share on other sites More sharing options...
BrettF Posted May 6, 2009 Share Posted May 6, 2009 Through FTP? Just use the FTP UDF... Don't make it harder than it has to be... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Juvigy Posted May 6, 2009 Share Posted May 6, 2009 Ok so why dont you use : RunWait(@COMSPEC & " /c telnet i.p") etc ? Link to comment Share on other sites More sharing options...
sundeep Posted May 6, 2009 Author Share Posted May 6, 2009 I tried using FTP.au3 UDF and till the point I reached ftpput, everything seemed to work fine but finally it didn't upload the file. I noticed that many of them had the same problem in this forum. So, scrapped the idea of using the UDF and instead switched to uploading from command prompt. However the other command compsec, I didn't understand, how it would have been usable. So didn't try it. Had I used FTP UDF also, I would have again taken the help of command line for telnet, since Autoit does not help in using telnet. Thanks guys for your suggestion, let me try *compsec*, and check out my luck if it works, in the mean time, if you have anything to tell, please reply. Link to comment Share on other sites More sharing options...
BrettF Posted May 6, 2009 Share Posted May 6, 2009 If your set on using telnet or whatever I won't stop you. I think your code was more the problem. The (updated) UDF works fine, and I believe there are other methods of upload floating around. If that still fails, try using I/O streams from telnet. You will see this in the example for StdinWrite, StdoutRead etc. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now