- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Command line argument constraint (while editin...
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
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
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-05-2013 09:43 PM - last edited on 08-05-2013 10:59 PM by Maiko-I
08-05-2013 09:43 PM - last edited on 08-05-2013 10:59 PM by Maiko-I
Command line argument constraint
Hi All,
I am just trying to execute a long command in HP-UX where i could get it.
it is being ended with < symbol at the last and i could not edit further
Can you help to understand why i am getting like this. (Note : this is happening only in sh shell, in bash shell i am able to run the command without any issues)
Regards
Rajini
P.S. this thread has been moved from Servers > General to HP-UX > languages. - Hp Forum moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2013 10:41 PM - edited 08-06-2013 09:30 PM
08-05-2013 10:41 PM - edited 08-06-2013 09:30 PM
Re: Command line argument constraint (while editing)
While you can have a command line at least 1 MB long, in a real shell you can only edit commands less than 256 bytes.
So all long command lines should be put into a script.
(Or you need to type them without mistakes. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2013 08:21 PM
08-06-2013 08:21 PM
Re: Command line argument constraint (while editing)
Hi Dennis,
But the same command can be executed using the bash shell in HP-UX.is there any limitations in the shell or do we need to change any settings to run a long command in HP-UX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2013 09:29 PM
08-06-2013 09:29 PM
Re: Command line argument constraint (while editing)
>the same command can be executed using the bash shell in HP-UX.
(I assume you meant edited.) The shells are different. Same as vi and vim.
>is there any limitations in the shell
Yes, this is one of them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2013 07:29 PM
08-08-2013 07:29 PM
Re: Command line argument constraint (while editing)
Hi,
Is there any way to rectify it?
Rajini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2013 08:12 PM
08-08-2013 08:12 PM
Re: Command line argument constraint (while editing)
>Is there any way to rectify it?
You're not going to get a different answer.
You could put long strings into variables and use those to shorten the lines.
Again, as long as you don't edit the line, you can type as long as you want.