View Full Version : linux grep error
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
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.
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?
My guess is an updated library without updating the file management stuff or visa-versa.
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.
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.
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.
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.
vBulletin® v3.8.7, Copyright ©2000-2015, vBulletin Solutions, Inc.