I want to start and stop an external process from R. I found the processx package for this, however, It does not seem to work if my command line argument contains pipes. In principal I want to run the following command:
top "cbd1 | egrep -v \"Tasks|Cpu|Mem|Swap|PID|top icbd|(.*0\\.0\\s*0.0.*)|^$\" | tee -a /tmp/Rtmpy2D1CZ/file26b51cf0b724"
this starts top (system ressource monitor) and logs lines that match a certain regex pattern to a temporary file.
Has anyone dealt with a similar issue before?