Vyacheslav - 2019-03-13

Since I can't get synchronous process execution to work( https://sourceforge.net/p/staf/discussion/104046/thread/66bfe4d234/ ) I decided to try running it asynchronously like this:
staf '{machine_name}' process start shell command 'C:\\something.exe' stderrtostdout returnstdout notify onend sameconsole
Executing this command gives me some process handle, say, for example, 77.

I can check whether its done or not by
staf '{machine_name}' process query handle 77

I checked registrations, and my current machine is there:
staf '{machine_name}' process notify list onendofhandle 77

Response
--------
Priority Machine                   Notify By Notifiee
-------- ------------------------- --------- --------
5        tcp://current-machine@6500 Handle    3385

That means that I should get it in my queue, right? But executing
staf local queue peek
returns RC 29, meaning that queue is empty.

I tried adding extra registrations with
staf '{machine_name}' process notify register onendofhandle 77
and list of registrations shows extra ones, but nothing changes.

I read the documentation, but can't find anything helpful.
How do I get process output and where should I look for it?

 

Last edit: Vyacheslav 2019-03-13