Quote:
Originally Posted by
Perderabo
tcsh may be lowering your allowable memory. Try running tcsh and then type sh to get get a new copy sh. This new sh will be an offspring of tcsh and will inherit any new memory limitations from it. Try the command with this copy of sh.
How do you invoke tcsh? What shell do you start with? If you start with sh and then just do either "tcsh" or "exec tcsh" to switch to tcsh, a file called $HOME/.cshrc will be run and it could contain ulimit commands to lower your memory parameters. If you login as a user with a shell of tcsh, then you also need to review .login for ulimit commands.
I start from the k shell, at that level the grep cmd
grep -l "test" /TEST/bin/*
works fine, if I then get into tcsh there the grep cmd
grep -l "test" /TEST/bin/*
gives me the Killed response.
There is no ulimit in my .cshrc maybe it is in the /etc/security/limits file (to which I do not have permission).
I can execute this cmd from a spawned ksh shell from inside the C shell with no problem
for j in /TEST/bin/*; do grep -l "test" $j; done
This just walks through the files one at a time and executes grep on each.
So there is no 'funny' characters in any of them, I suppose.
Is there any way I can actually see what mem I have left before executing the cmds in UNIX.
Thanks!