I'm using a Windows command file:
@Echo Off MODE con:cols=5000 lines=80 cmd /k "title & x:\dir\Putty\PLINK.EXE -ssh name@connection tail -f /opt/dir1/dir2/Blabla_Debug.log"
This works like a charm. It's executable from my client and gives me a tail on the logfile and a decent header in the cmd-box (so I know what I'm looking at).
But now I want to execute a grep on the logfile.
I've tried to add '| grep text' (without the quotes) but that results in an error (in the command box): 'grep' is not recognized as an internal or external command.
So what I've tried is:
cmd /k "title & x:\dir\Putty\PLINK.EXE -ssh name@connection tail -f /opt/dir1/dir2/Blabla_Debug.log | grep text"