Bug 7472 - grep with conjunction to ps does not give any output
Summary: grep with conjunction to ps does not give any output
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 12:34 UTC by x.para
Modified: 2014-09-27 17:28 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description x.para 2014-09-26 12:34:13 UTC
ps needs to be used with ps -w argument to be able to work with GREP or multiple GREPs

1. ps | grep xxx | grep -q yyyy > testfile.txt; Writes nothing to file
2. ps -w | grep xxx | grep -q yyyy > testfile.txt; Writes expected output to file

I do see empty file instead expected output if -w argument is NOT used

Platform: Linux asus 2.6.22.19 #2
BusyBox v1.22.1 (2014-05-29 02:51:54 MSK) multi-call binary.