btherl, thank you for replying.
Using your idea, I executed the following script:
error_reporting(E_ALL);
$command = exec('c:\fontes\web\sisbalance\lib\plink -serial COM6 -sercfg 4800,7,n,1,n');
With that, PHP hangs forever, just like the other script, because he waits for serial response. So I tried to send the output to a txt file, like this:
error_reporting(E_ALL);
$command = exec('c:\fontes\web\sisbalance\lib\plink -serial COM6 -sercfg 4800,7,n,1,n >> c:\fontes\web\sisbalance\lib\log.txt 2>&1 &');
PHP still hangs forever. However, the serial port data is sent correctly to log.txt.
My question is: Is there a way to execute the script using plink.exe without hanging forever?
Thanks in advance!