![]() ![]() I imagine there is some issue with stty or PuTTY settings affecting newline operation, but basically the -m mechanism works and, with some diligent effort, I would expect to be able to make it do useful work correctly. I used this command: C:\temp>"C:\Program Files (x86)\PuTTY\putty.exe" -m commands.txt I used Notepad to create this file, "commands.txt": echo "this command works" ![]() I would expect PuTTY to take care of this, but it may not (I have not tested this). Windows files edited with notepad are likely to have lines ending with the two ASCII control characters Carriage-Return (CR or Control-M or ^M) and Line-Feed (LF or Control-J or ^J). You must also be careful with line-endings on your commands. Some options are therefore mentioned that are absent from. Note to Unix users: this manual currently primarily documents the Windows versions of the PuTTY utilities. This manual documents PuTTY, and its companion utilities PSCP, PSFTP, Plink, Pageant and PuTTYgen. Not all Linux servers have pbrun: $ man pbrun PuTTY is a free (MIT-licensed) Windows Telnet and SSH client. That means that the command pbrun is not a valid command on the server's operating system (this is nothing to do with PuTTY). ![]() Those commands must be present on the server and supported by the server's operating system. You can use PuTTY to run commands in a shell on the server. You cannot run arbitrary commands on PuTTY itself. In my abc.txt I have written some commands which I want to be executed on putty itself It is the server that requires you log-in to it. You can use PuTTY to log-in to a server computer which is providing an SSH service. PuTTY is an SSH client application which has no authentication. Run multiple commands from a file after logging into putty from a bat file ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |