0403-035 specified path name too long


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting 0403-035 specified path name too long
# 1  
Old 12-14-2010
0403-035 specified path name too long

I get this error when attempting to run a simple .ksh script. This script runs fine on other servers. What causes this error?
# 2  
Old 12-14-2010
Please post the script.

Last edited by methyl; 12-14-2010 at 09:45 AM.. Reason: O/P said ksh
# 3  
Old 12-14-2010
Its Korn.

Code:
#!/bin/ksh
#
# Script to setup Queue Manager SSL repository and create QM certificate
#
# Created 2010.12.06 by JWD
#
####################################################################



if [ $# -lt 1 ] ;  
then

   echo need 1 parameters --  QMGRNAME
   exit 0

fi

QMGRNAME=$1

echo QMGRNAME = $QMGRNAME 

####################################################################
#
# Create the QM's  SSL KEY REPOSITORY
#
####################################################################

gsk7cmd -keydb -create -db "/var/mqm/qmgrs/$QMGRNAME/ssl/$QMGRNAME.kdb" -pw serverpass -type cms -expire 3650 -stash

echo gsk7cmd create db results ..0 is a good return..  = $?

####################################################################
#
# Create the QM's  SSL CERTIFICATE
#
####################################################################

gsk7cmd -cert -create -db "/var/mqm/qmgrs/$QMGRNAME/ssl/$QMGRNAME.kdb" -pw serverpass -label ibmwebspheremq$QMGRNAME -dn "CN=$QMGRNAME,OU=delhaize,O=foodlion,L=salisbury,ST=nc,C=usa" -expire 3650

echo gsk7cmd create certificate results ..0 is a good return..  = $?

####################################################################
#
# Extract the QM's  SSL CERTIFICATE
#
####################################################################

gsk7cmd -cert -extract -db "/var/mqm/qmgrs/$QMGRNAME/ssl/$QMGRNAME.kdb" -pw serverpass -label ibmwebspheremq$QMGRNAME -target $QMGRNAME.crt -format ascii

echo gsk7cmd extract certificate results ..0 is a good return..  = $?


exit

# 4  
Old 12-14-2010
Depends on the version of AIX, but you seem to have hit a 256 character command length limit.
Depends on the number of characters in $QMGRNAME how long the line starting "gsk7cmd -cert -create" becomes.
What to do next depends on the version of AIX.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

0403-027 The parameter list is too long on AIX 5.3

Hi we are using AIX 5.3 64bit I have near about 79000 log file having naming convention like "IFTMBCSun Aug 14 07:45:00 PAKST 2011". This naming convention was created by a script error, now we need to rename these log file by removing extar spaces and (:) colon for that we wrote below script ... (4 Replies)
Discussion started by: lodhi1978
4 Replies

2. AIX

aix:ksh: /usr/bin/rm: 0403-027 The parameter list is too long.

Hi, I am getting the below error message When i am trying to delete the files from the directory.Could you please guide me? rm *.aud ksh: /usr/bin/rm: 0403-027 The parameter list is too long. and find /oracle/admin/testP/adump/*.aud -mtime +5 -exec rm {} \; ksh: /usr/bin/find:... (3 Replies)
Discussion started by: nokiae63
3 Replies

3. Shell Programming and Scripting

usr/bin/ls: 0403-027 The parameter list is too long

I ran this script in AIX 5L environment and getting an error usr/bin/ls: 0403-027 The parameter list is too long Our administrator had increased the maxium allowable size of the ARG/ENV list but it still doesn't work. I have tested the command in red below in the unix prompt and it works just... (13 Replies)
Discussion started by: hanie123
13 Replies

4. UNIX for Dummies Questions & Answers

UNIX: 0403-027 The parameter list is too long

Hello All, We have a batch job that clean old records. This run a script to back up file then delete. Unfortunately, this job been failing lately. This is the error we received. "/usr/bin/compress: 0403-027 The parameter list is too long." I am not sure if the job failed since its... (2 Replies)
Discussion started by: juieshenkei
2 Replies

5. Shell Programming and Scripting

/usr/bin/ls: 0403-027 the parameter list is too long.

Hi, I'm trying to list specific files and redirecting to a file ls aqp* > temp.lst but getting "/usr/bin/ls: 0403-027 the parameter list is too long." error. I just have 236 files in the directory. I tried "ls | grep 'aqp*' > temp.lst" too, but nothing was redirected. + grep aqp* +... (4 Replies)
Discussion started by: dateez
4 Replies

6. Programming

lstat long path problem

Hi, We are using lstat in our project. But in case of the path length more than 1024, it's returning error ENAMETOOLONG. Is there any another system call which is supporting more than 1024 path and providing the same info as lstat. Thanks (2 Replies)
Discussion started by: Saurabh78
2 Replies

7. UNIX for Dummies Questions & Answers

0403-027 The parameter list is too long.

hi when i ran the following command rm *_F i got this error 0403-027 The parameter list is too long. It shd remove 5000(around) files pls help me on this. why its throwing this error how to rectify this error (5 Replies)
Discussion started by: romiljain
5 Replies

8. AIX

mkdir: A file or path name is too long

Hi, I have an AIX machine. I am trying to create a directory from within the script, but the message being shown is "mkdir: 0653-358 Cannot create directory 'xxx': A file or path name is too long" I am not giving any 'long' pathname to mkdir. The commands being issued within the script are: ... (0 Replies)
Discussion started by: greenhorn007
0 Replies

9. Shell Programming and Scripting

getting error 0403-016 Cannot find or open the file while reading a long line

Hi, I have an requirement of reading a long line of 7000 chars and cutting it iam doing this : while read -r x do echo $x ......... done < `cat filename` when iam doing this it is giving me "0403-016 Cannot find or open the file." Can anyone let how this can be done. (2 Replies)
Discussion started by: karthee
2 Replies

10. UNIX for Dummies Questions & Answers

Grep 0403-027 The parameter list is too long.

Hi there I get this error message when I try to do a basic grep. Does anyone have any ideas what is wrong. Thanks 0403-027 The parameter list is too long. (1 Reply)
Discussion started by: japada
1 Replies
Login or Register to Ask a Question