%SCRIPT var res=system("c:\\cygwin\\bin\\bash.exe -c '/bin/date +%%s'"); var timestamp=res.readAllStandardOutputStr(); res.waitForFinished(); editor.write(timestamp);
I can see the correct result (a long number indicating seconds) appear on the messages screen in TeXStudio:
Prozess gestartet: c:\cygwin\bin\bash.exe -c '/bin/date +%s' 1392656846 Prozess endete normal
Nothing spectacular. I tested the exit code, which was OK as well. But it seems not to gather stdout using
readAllStandardOutputStr() as I see nothing to appear in my file.
editor.write seems to work according to tests I tried. Putting
waitForFinished() didn't help either.
Help ot hint appreciated.