Hi there, I am wondering if it is possible to pipe the output of a command while it is still running through grep to search for certain lines.
Here's the specifics:
I am running autopsy with remote hosts and ports specified using the command line, for example:
Code:
./autopsy -p 9001 192.168.1.100
When it activates, it ties up terminal until I use CTRL+C to terminate it. I have tried the following:
Code:
./autopsy -p 9001 192.168.1.100 | grep [search phrase] >> info.txt
to send the output to a file, but this doesn't do this until after the process is terminated, which is too late.
Any ideas?
Cheers
Ben
Bookmarks