HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- max lenght of a command
Operating System - HP-UX
1830271
Members
2514
Online
110000
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-09-2004 02:33 AM
04-09-2004 02:33 AM
max lenght of a command
Hi ,
I want to know what is the maximum size (number of characters) that I can use in a single command. The requirement with me is I want to move files from one location to another location but the paths are at times as long as 255 characters.
I am planning to move my application from Linux to Hp-UX but I do not know the limit of the command length.
Can I in any manner increase the maximum size of a single command.
Thanks
Amit
I want to know what is the maximum size (number of characters) that I can use in a single command. The requirement with me is I want to move files from one location to another location but the paths are at times as long as 255 characters.
I am planning to move my application from Linux to Hp-UX but I do not know the limit of the command length.
Can I in any manner increase the maximum size of a single command.
Thanks
Amit
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2004 02:50 AM
04-09-2004 02:50 AM
Re: max lenght of a command
Hi Amit,
According to the /usr/include/limits.h file the limit is 2048 characters. It's defined as POSIX2_LINE_MAX
But you should also have at least PHCO_27345
http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_27345&context=hpux:800:11:11
Or it's supersede - PHCO_28832
http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_27345&context=hpux:800:11:11
Or you may have trouble at 2046
HTH,
Jeff
According to the /usr/include/limits.h file the limit is 2048 characters. It's defined as POSIX2_LINE_MAX
But you should also have at least PHCO_27345
http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_27345&context=hpux:800:11:11
Or it's supersede - PHCO_28832
http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_27345&context=hpux:800:11:11
Or you may have trouble at 2046
HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2004 02:51 AM
04-09-2004 02:51 AM
Re: max lenght of a command
The command line limit i hit was 255 or 256 characters.
I override this for file copies as follows:
filesource=/source_location
distdir=/dest_location
cp $filesoruce $destdir
Though the values add up to more than 255 characters this lets me get around it. You need to be careful not to use esc esc shell sequence because that will expand the variables from $variables to actual values.
This is worth a try.
SEP
I override this for file copies as follows:
filesource=/source_location
distdir=/dest_location
cp $filesoruce $destdir
Though the values add up to more than 255 characters this lets me get around it. You need to be careful not to use esc esc shell sequence because that will expand the variables from $variables to actual values.
This is worth a try.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP