Name: Anonymous 2012-05-30 11:55
Hello /prog/
Im currently trying to write a little script which lets me log the status of my server, but grep poses some problems.
when i use service --status-aöö | egrep "(ssh|networking)"
it not only shows me the lines with ssh or networking in them, but also every line with a ? in it. this also happens if i simply use grep ssh or grep betworking.
does anyboedy have an idea why this happens?
Im currently trying to write a little script which lets me log the status of my server, but grep poses some problems.
when i use service --status-aöö | egrep "(ssh|networking)"
it not only shows me the lines with ssh or networking in them, but also every line with a ? in it. this also happens if i simply use grep ssh or grep betworking.
does anyboedy have an idea why this happens?