Using PuTTY in Windows with Notepad

I'm trying to set up a debug in a Juniper SRX-240.
Because of the many commands, I'd rather not type them all into the CLI directly.
So, I have them all in a text file that I'd like to copy and paste.

Up to now I've been able to do this:
Windows Copy the textblock (multiple lines) from Notepad.
Right click in the PuTTY window at the cursor.

Lately the following has been happening:
Blank spaces between command terms are being removed.

I've tried using the Windows-style option in PuTTY so I can see a menu and Paste.  But this seems to make no difference.

What can I do to make this work as intended?
LVL 27
Fred MarshallPrincipalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

woolmilkporcCommented:
Use plink with your commands file.

The command line tool plink is part of the PuTTY suite. Get it from here:

http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe

Once you installed it just run from a CMD window

plink -m commandsfile.txt user@server

A plink manual is here:

http://the.earth.li/~sgtatham/putty/0.53b/htmldoc/Chapter7.html#7

wmp
0
rindiCommented:
You could be better off using another editor like notepad++ where you can set the encoding to be something used commonly on 'nix platforms:

http://portableapps.com/apps/development/notepadpp_portable
0
Fred MarshallPrincipalAuthor Commented:
OK, done.  
What encoding might you suggest then?
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

Fred MarshallPrincipalAuthor Commented:
Just to be clear:  These are primarily interactive sessions but there are a number of commands that are each fairly long and slightly complex so the issue of typos and editing is to be dealt with.  Thus a source of text to be pasted into the PuTTY window that can be edited "offline" is a pretty good way to do this.  But the pasting can't be changing the text of course!
0
sanjayrajtCommented:
Hi,

it is a link from Cisco support form .it showing hyper terminal .But it may be help you.


https://supportforums.cisco.com/docs/DOC-2477
0
rindiCommented:
Probably UTF-8 will do, just try the different options.
0
arnoldCommented:
There should be no issues with using notepad or any other editor, my guess is that the issues you are having might deal with whether the commands you want to send and the way it is laid out in notepad might be an issue.
You may have to transition into the correct mode before you send the mode specific commands.

If memory servers, you can predefine and leave the restrictive lists. Then all your debug commands will be which list to use to limit what is debugged.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Fred MarshallPrincipalAuthor Commented:
Well the SRX seems to allow some predefinitions but I don't see that they apply to groups; only individual settings.  At least that's what I get so far.

I'm beginning to think that something "lost its mind" for a while because now it appears that I can accomplish the same thing once more.  Also, there could have been "cockpit error" in that if one is not in the proper MODE in the CLI (one mode shows you things and the other mode allows changes to settings) then the commands can mean nothing at all and there appears to be some automatic "hint" system that runs things all together.  If you put in a bad command then a whole bunch of commands get "tried" for your consideration is how I'm interpreting what I'm seeing.
0
Fred MarshallPrincipalAuthor Commented:
Arnold appears to have addressed the issue.  Thanks and points to others who made useful suggestions - although unneeded in this case.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking Hardware-Other

From novice to tech pro — start learning today.