HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr/bin/expr: The parameter list is too long.
Operating System - HP-UX
1833013
Members
2896
Online
110048
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
03-19-2001 10:03 AM
03-19-2001 10:03 AM
/usr/bin/expr: The parameter list is too long.
The above error is output after the following script has run for quite some time:
#!/bin/sh
count2=0003
#dirdepth=/net/nano/usr/y
dirdepth=/b
dircount=0
cd /x
while ((`expr $dircount \< 27` == 1))
do
while ((`expr $count2 \< 9999` == 1))
do
cd z$dircount$count2
count2=`expr $count2 + 1`
done
count2=000
dircount=`expr $dircount + 1`
echo $dircount","$count2
done
while ((`expr $dircount \< 9999` == 1))
do
while ((`expr $count2 \< 9999` == 1))
do
mkdir z$dircount$count2
cd z$dircount$count2
echo "tenspin "$dircount","$count2
count2=`expr $count2 + 1`
done
count2=0
dircount=`expr $dircount + 1`
done
Here is some of the output preceding and including the error when the script dies:
mkdir: cannot create z272240: File exists
tenspin 27,2240
mkdir: cannot create z272241: File exists
tenspin 27,2241
mkdir: cannot create z272242: File exists
tenspin 27,2242
mkdir: cannot create z272243: File exists
tenspin 27,2243
mkdir: cannot create z272244: File exists
tenspin 27,2244
mkdir: cannot create z272245: File exists
tenspin 27,2245
mkdir: cannot create z272246: File exists
tenspin 27,2246
mkdir: cannot create z272247: File exists
tenspin 27,2247
mkdir: cannot create z272248: File exists
tenspin 27,2248
mkdir: cannot create z272249: File exists
tenspin 27,2249
./grueldxx[26]: /usr/bin/expr: The parameter list is too long.
./grueldxx[26]: /usr/bin/expr: The parameter list is too long.
./grueldxx[21]: == 1: Syntax error
Note that I ran this script twice, and got the same error at about the same place. The first time, of course, the mkdir error was not displayed as the directory did not exist previous to the execution of this script.
Any ideas as to why /usr/bin/expr chose this particular time to die?
The system is a C3600, running HP-UX 11.00 with lots of patches. The directory in which these subdirectories are being created are located across the network using NFS v3 on another system.
Thanks!
#!/bin/sh
count2=0003
#dirdepth=/net/nano/usr/y
dirdepth=/b
dircount=0
cd /x
while ((`expr $dircount \< 27` == 1))
do
while ((`expr $count2 \< 9999` == 1))
do
cd z$dircount$count2
count2=`expr $count2 + 1`
done
count2=000
dircount=`expr $dircount + 1`
echo $dircount","$count2
done
while ((`expr $dircount \< 9999` == 1))
do
while ((`expr $count2 \< 9999` == 1))
do
mkdir z$dircount$count2
cd z$dircount$count2
echo "tenspin "$dircount","$count2
count2=`expr $count2 + 1`
done
count2=0
dircount=`expr $dircount + 1`
done
Here is some of the output preceding and including the error when the script dies:
mkdir: cannot create z272240: File exists
tenspin 27,2240
mkdir: cannot create z272241: File exists
tenspin 27,2241
mkdir: cannot create z272242: File exists
tenspin 27,2242
mkdir: cannot create z272243: File exists
tenspin 27,2243
mkdir: cannot create z272244: File exists
tenspin 27,2244
mkdir: cannot create z272245: File exists
tenspin 27,2245
mkdir: cannot create z272246: File exists
tenspin 27,2246
mkdir: cannot create z272247: File exists
tenspin 27,2247
mkdir: cannot create z272248: File exists
tenspin 27,2248
mkdir: cannot create z272249: File exists
tenspin 27,2249
./grueldxx[26]: /usr/bin/expr: The parameter list is too long.
./grueldxx[26]: /usr/bin/expr: The parameter list is too long.
./grueldxx[21]: == 1: Syntax error
Note that I ran this script twice, and got the same error at about the same place. The first time, of course, the mkdir error was not displayed as the directory did not exist previous to the execution of this script.
Any ideas as to why /usr/bin/expr chose this particular time to die?
The system is a C3600, running HP-UX 11.00 with lots of patches. The directory in which these subdirectories are being created are located across the network using NFS v3 on another system.
Thanks!
A journey of 1000 steps ends in a mile.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2001 10:37 AM
03-19-2001 10:37 AM
Re: /usr/bin/expr: The parameter list is too long.
Sounds like you have too many directories and/or files out there.
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