Operating System - HP-UX
1751688 Members
4390 Online
108781 Solutions
New Discussion юеВ

rc4test: Invalid number of arguments

 
SOLVED
Go to solution
Pirjo Salvos
New Member

rc4test: Invalid number of arguments

Hi! My customer got next error, when he tried to run program:
rc4test: Invalid number of arguments
usage: rc4test
He also told me that compiler works.
I have earlier installed in that server HP/MF COBOL version:B13.45. This server is HP-UX B.11.00 8000/800.
What could be wrong? Can anybody help me?
Me myself don't know cobol! I have only installed compiler and Oracle Pro*cobol.

Regards Pirjo Salvos
2 REPLIES 2
Elmar P. Kolkman
Honored Contributor
Solution

Re: rc4test: Invalid number of arguments

First thing that comes to mind: spaces in arguments, resulting in too many arguments... Or an empty argument.

I don't know what rc4test is, but you could test how it is called by renaming rc4test to rc4test.orig and creating a script called rc4test that contains this:

#!/bin/ksh
echo "cmdline: $0 $*" >>/tmp/rc4test.cmdline
echo "#args: $#" >>/tmp/rc4test.cmdline
$0.orig $*

That way you can see in /tmp/rc4test.cmdline how it is called.
You could replace the $* on the last line by "$1" "$2" "$3" "$4", but that might result in problems because you force the 4 arguments!
Every problem has at least one solution. Only some solutions are harder to find.
Pirjo Salvos
New Member

Re: rc4test: Invalid number of arguments

Thankyou very much for your ansver and I'm so sorry that this took so long time to get that answer. We got that run with rtsora and now we can go on.
Best Regards Pirjo Salvos