close

Privacy guaranteed - Your email is not shared with anyone.

linux grep error

Discussion in 'Tech Talk' started by grantglock, Aug 6, 2004.


  1. grantglock

    grantglock
    Expand Collapse
    /dev/null

    Joined:
    Feb 20, 2004
    219
    0
    Location:
    Iowa
    when i try and run the command grep i get a one word error, has anyone ever seen this before?



    [root@win-4-u log]# cat messages | grep anything
    Aborted
    [root@win-4-u log]#
     

    Wanna kill these ads? We can help!
  2. HerrGlock

    HerrGlock
    Expand Collapse
    Scouts Out
    CLM

    Joined:
    Dec 28, 2000
    23,791
    179
    Try it the other way (you would have won the "useless use of cat" award with that one)

    grep anything messages

    See if it's cat or grep giving you heartburn.

    DanH
     

  3. hwyhobo

    hwyhobo
    Expand Collapse

    Joined:
    Jun 3, 2003
    1,426
    0
    Location:
    Silicon Valley
    grantglock, what is your linux ver? Did you make changes to the base distribution? "Aborted" is not an error message that comes from either 'cat' or 'grep', so it appears to be generated by the system. If you run 'cat' on some other file, what happens? What if you run 'grep' on some other file?
     
  4. HerrGlock

    HerrGlock
    Expand Collapse
    Scouts Out
    CLM

    Joined:
    Dec 28, 2000
    23,791
    179
    My guess is an updated library without updating the file management stuff or visa-versa.



    DanH
     
  5. grantglock

    grantglock
    Expand Collapse
    /dev/null

    Joined:
    Feb 20, 2004
    219
    0
    Location:
    Iowa
    cat works fine, it's grep that causes the Aborted error. The system is Red Hat 9. I have not updated anything lately. Maybe the Red Hat network messed it up. Last time i used it was over a month ago. I thought i used grep since then though.
     
  6. Tennessee Slim

    Tennessee Slim
    Expand Collapse
    Señor Member
    CLM

    Joined:
    Apr 14, 2004
    4,413
    0
    Location:
    Mucus City, USA
    If there's another copy of grep on your system, try using the absolute path to a copy isn't in your environmental path settings.
     
  7. HerrGlock

    HerrGlock
    Expand Collapse
    Scouts Out
    CLM

    Joined:
    Dec 28, 2000
    23,791
    179
    RedHat 9 has end-of-life'd. Update to Fedora Core 2. You've got a library error somewhere. As TennSlim said, see if you have another version of grep somewhere, preferably a static one and try that one.

    DanH
     
  8. grantglock

    grantglock
    Expand Collapse
    /dev/null

    Joined:
    Feb 20, 2004
    219
    0
    Location:
    Iowa
    update:

    I noticed that one of the drives had failed about a month ago (using RAID 5) so I was going to rebuild that drive, when I went to shut down the machine, errors started coming up everywhere, nothing descriptive but the same Aborted error.

    Computer won't even boot now.

    I used the Knoppix cd to mount the filesystem and copied mail spools and /home to another computer until I can rebuild the failed computer using Fedora 2. Freaking nightmare. This is a mail / DNS server that has about 2500 Internet customers on it so I've been here since 4:00AM getting us back up and running. Only 2 hours downtime, not so bad.

    I wish our company would spend the money for a backup server I can switch to when things like this happen.
     
Loading...
Similar Threads Forum Date
Error The Okie Corral Nov 15, 2015
Grub Loading Please Wait.....error 17 (Linux) Tech Talk Jan 16, 2006
LinuX?!?!? Tech Talk Jul 16, 2005
grep problems in Linux (fedora 3) Tech Talk Apr 10, 2005
Error adding package (Linux) Tech Talk Mar 18, 2005