1834345 Members
2202 Online
110066 Solutions
New Discussion

Kernel parameter

 
SOLVED
Go to solution
Francois Bariselle_3
Regular Advisor

Kernel parameter

When I launch my c-shell script, I have this error on my console :

Too many words from ``.

What kernel parameter is in relation with this error.

Fais la ...
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: Kernel parameter

If you do a strings /usr/bin/csh, you will find your exact error message text indicating that this is an internal csh error message. I rather doubt a kernel tunable is at fault. I suspect (this is a guess) that you are exceeding csh's internal buffer size of 1K?. I would invoke your csh with -x to echo the line to stderr immediately before executing it.
If it ain't broke, I can fix that.
Francois Bariselle_3
Regular Advisor

Re: Kernel parameter

Hi,

This is my c-shell script :

#!/bin/csh
foreach line (`cat liste-comp-conn.new`)
echo $line
end

(tbmgr@quebec) /home/tbmgr/new% csh 1.dat
Too many words from ``.
(tbmgr@quebec) /home/tbmgr/new%

The file liste-comp-conn.new contain 18195 lines.

Frank.

Fais la ...
Steve Steel
Honored Contributor
Solution

Re: Kernel parameter

Hi

It tries to read it as 1 line and overflows

/etc/group works fine
csh is old fashioned.

Use a posix format

#!/bin/sh

cat file|while read line
do
echo $line
done

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)