- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Executing long commands on secureCRT terminal
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2010 09:06 AM
тАО08-09-2010 09:06 AM
I have some commands syntax which are very long having 4-5 lines. I use secureCRT to connect HP-UX Servers.
I have noticed when i copy paste using mouse continuity between lines breaks.
What settings do i need to change so that i can copy and paste entire lines from notepad or word to secureCRT terminal without breaking lines ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2010 10:18 AM
тАО08-09-2010 10:18 AM
Solution:wrapmargin=0
You can also just use cat to paste into a file:
cat > some_file_name
(then paste -- no prompt, press CTRL-d to finish)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2010 10:39 AM
тАО08-09-2010 10:39 AM
Re: Executing long commands on secureCRT terminal
command /this/is \
/a/very/long/list \
/of/arguments \
/for/the/command
The shell will automatically recognize this and will display a special prompt for the extra lines:
$ command /this/is \
> /a/very/long/list \
> /of/arguments \
> /for/the/command
The (backslash + linefeed) combination will act as a space in the command line. If you need long strings without spaces, this might not help.
The second way to solve this problem concerns the application you're copying the command line from (i.e. Word or Notepad). If it understands the command is a single long line, it will be pasted as a single long line, even if the program displays it on multiple lines. Word should be able to do this, but Notepad might not (because Notepad's line wrapping might be too primitive).
The third way would be to write a small HP-UX script. You could use environment variables to pack the arguments more tightly:
#!/bin/sh
A="/this/is"
B="/a/very/long/list"
C="/of/arguments"
D="/for/the/command"
command $A $B $C $D
or if the arguments must form a single long line, then:
#!/bin/sh
A="/this/is/"
B="/a/very/long/"
C="/single/argument/"
D="/for/the/command"
command $A$B$C$D
There are probably many other ways to solve this problem. To find the ideal way, we would have to know more about the command you're trying to run.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2010 11:57 AM
тАО08-09-2010 11:57 AM
Re: Executing long commands on secureCRT terminal
> can copy and paste entire lines from
> notepad or word to secureCRT terminal
> without breaking lines ?
To me, that sounds like a question about
applications running on a Windows system, not
really anything to do with HP-UX.
With my weak psychic powers, I can't really
see what's in these Notepad or Word
documents, or what you're trying to
copy+paste from where into what, how. If
there are line breaks in the text you're
copying, then you might expect them to get
pasted into the destination.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2010 07:25 PM
тАО08-09-2010 07:25 PM
Re: Executing long commands on secureCRT terminal
No, a real shell will just remove the backslash and linefeed. No spaces added.
$ echo abc\
> def
abcdef