I've installed Grep and added the following to my Path variables, both system and user, and restarted to no avail.
Algumas coisas para lembrar:
-
Como @barlop comments, o caminho deve ser, por exemplo,
C:\Program Files (x86)\GnuWin32\bin
. -
É perfeitamente adequado especificar o caminho completo para
grep
, por exemplo:curl -k --silent "http://192.168.1.135:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=USERNAME&pwd=PASSWORD" | "C:\Program Files (x86)\GnuWin32\bin\grep.exe" -oP "(?<=motionDetectAlarm>).*?(?=</motionDetectAlarm>)"