Getting 'Killed' msg


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Getting 'Killed' msg
# 15  
Old 12-01-2008
Quote:
Originally Posted by Perderabo
from tcsh, try:
/bin/echo /TEST/bin/*

I thinking that your tcsh may have a bug where it manages to kill itself if it builds too large of a command line.
When I execute this
/bin/echo /TEST/bin/*
I still get .... Killed.
if I exit tcsh and back at the $ prompt in K shell I type:
/bin/echo /TEST/bin/* | wc
these are the counts I get :
1 786 22273
Maybe this is it, ~22K is this too big for tcsh command line?

Can you also advice of a way to only return and process files in a particular directory i.e. /TEST/bin, with a command in this format?
find /TEST/bin -name "*" -type f| xargs grep -l "search string"
I am trying to use find to avoid the Arg list too long which would get generated by ls
I tried putting -prune in the command with no success, the complexity might resides in the fact that I want to execute the find command without regard of where I am (my pwd value) at the time of execution.
Let me know if you have suggestions.

Thanks.

Last edited by gio001; 12-01-2008 at 05:12 PM..
# 16  
Old 12-01-2008
Since the shell is your problem, switch to a better shell linke bash or ksh. Mark my words, if you stay with tcsh/csh you will be fighting problem after problem. Maybe:
ls /TEST/bin | xargs grep -l "test"
or
find /TEST/bin ! -name bin -type d -prune -o -type f -print | xargs grep -l "test"
will work with your shell. It's hard to tell you what commands to use when your shell is known to be broken.
# 17  
Old 12-02-2008
Sounds like xargs is your ticket. But if you're stubborn, try this:

Split up the parameter space into n different invocations. For instance:
Code:
/bin/echo /TEST/bin/[A-Ma-m]*
/bin/echo /TEST/bin/[N-Zn-z]*
/bin/echo /TEST/bin/[^A-Za-z]*

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Displaying certain text in a msg.

I have a requirement to display a part of an html response that my application gets. The response looks like this: <html><a href='com.aprisma.spectrum.app.sd.client.SDHyperlinkHandler' sdTicketHandle='cr:419900' ocAlarmId='506618ea-f013-102d-02a7-0050569d7aa8'... (3 Replies)
Discussion started by: dlundwall
3 Replies

2. AIX

Error msg

When i run errpt -a, the output was below: --------------------------------------------------------------------------- LABEL: DMPCHK_NOSPACE IDENTIFIER: F89FB899 Date/Time: Tue Jan 17 15:00:02 BEIS Sequence Number: 28998 Machine Id: 0058C0CE4C00 Node Id: ... (2 Replies)
Discussion started by: Ivanku
2 Replies

3. Shell Programming and Scripting

My script is working but why do I get this msg?

Hi, I have a script to determine the max memory to set a worker to start up at. The variable will need to end up being "-Xmx512m" or "-Xmx256m" or "-Xmx768m." Everything works fine BUT when I set the "MEMORY" variable I get the "Cmmand not foundine 40: -Xmx512m" msg though the variable is the... (5 Replies)
Discussion started by: vsekvsek
5 Replies

4. UNIX for Dummies Questions & Answers

viewing the *.msg files

Is there any way we can view the *.msg files in unix / linux ? Example cat aa.msg Or Do we need to do any decryption ? Kindly provide the solution? (0 Replies)
Discussion started by: kingganesh04
0 Replies

5. Shell Programming and Scripting

msg??

I want to display a message when the script is done running, but I do not want to use echo. Is there another command I can use besides echo? If so, show me how it is done. (1 Reply)
Discussion started by: dshea0001
1 Replies

6. Programming

msg q

hi... i posted the code earlier but it wasnt quite readbale... ive added a few comments and made the indentation problem right... the problem is that it doent seem to be working... ive almost pulled out my hair tryin to fix the prob another wierd thing is that it worksthe 1st time when i... (0 Replies)
Discussion started by: strider
0 Replies

7. Programming

msg q again!

is it possible to use a msg queue with multiple threads spawned from the same app? (1 Reply)
Discussion started by: strider
1 Replies

8. UNIX for Dummies Questions & Answers

sendmail alert msg- How to

Sorry for such a simple question, but being new cannot find any info.. I am trying to ftp a file and checking if the ftp was successful or not. Either way I want to send an e-mail to myself to left me know if good ftp or ftp was not sent. I have the code in the program to do this and am going... (1 Reply)
Discussion started by: roncayenne
1 Replies

9. Linux

Pop error msg

mit@mydomain.com here is the latest error message: There was a problem logging onto your mail server. Your Password was rejected. Account: 'mit@mydomain.com', Server: 'mail.mit.com', Protocol: POP3, Server Response: '-ERR Logon failure: unknown user name or bad password.', Port: 110,... (2 Replies)
Discussion started by: naik_mit
2 Replies

10. IP Networking

Netstat msg

What do you think of the netstat msg about : udp 2320 0 *:xdmcp *:* The 2320? Does that mean an error? I used netstat -l | grep 'xdmcp' to get that, but does the 2320 indicate an error? I'm trying to figure out why, after i've enabled xdmcp to true, it is still not showing up... (2 Replies)
Discussion started by: kymberm
2 Replies
Login or Register to Ask a Question