RFE: Please place execute and wait's return code into the log

Questions about Cobian Reflector
Post Reply
Todd
Posts: 183
Joined: 01 Nov 2021, 23:30

RFE: Please place execute and wait's return code into the log

Post by Todd »

Request for Enhancement:

Please place "execute" scripts return codes and the full run string in the log:

Old way:
Executing the program C:\Program Files\Rakudo\bin\raku.exe and waiting for it to exit.
The program C:\Program Files\Rakudo\bin\raku.exe has been successfully executed and has terminated.

New way:
Executing the program C:\Program Files\Rakudo\bin\raku.exe C:\NtUtil\TestServer.pl6 and waiting for it to exit.
The program C:\Program Files\Rakudo\bin\raku.exe has been successfully executed and has terminated with a return code of 1.
User avatar
cobian
Site Admin
Posts: 4611
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: RFE: Please place execute and wait's return code into the log

Post by cobian »

:OK
--
Luis Cobian
Cobian Backup's creator
User avatar
cobian
Site Admin
Posts: 4611
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: RFE: Please place execute and wait's return code into the log

Post by cobian »

Revisiting the code, tes, the exit code IS logged.
--
Luis Cobian
Cobian Backup's creator
Todd
Posts: 183
Joined: 01 Nov 2021, 23:30

Re: RFE: Please place execute and wait's return code into the log

Post by Todd »

cobian wrote: 23 Jan 2024, 19:32 Revisiting the code, tes, the exit code IS logged.
N0t seeing it in 2.5.10
2024-01-24 22:21:19 The program C:\Program Files\Rakudo\bin\raku.exe has been successfully executed and has terminated.
It is
1) missing the rest of the run string, and
2) missing the return exit code
User avatar
cobian
Site Admin
Posts: 4611
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: RFE: Please place execute and wait's return code into the log

Post by cobian »

I think it is logged if the result is not zero.
--
Luis Cobian
Cobian Backup's creator
Todd
Posts: 183
Joined: 01 Nov 2021, 23:30

Re: RFE: Please place execute and wait's return code into the log

Post by Todd »

cobian wrote: 25 Jan 2024, 10:32 I think it is logged if the result is not zero.
This is a sample:
2024-01-24 14:52:08 The program C:\Program Files\Rakudo\bin\raku.exe has been successfully executed and has terminated.
ERR 2024-01-24 14:52:08 The exit code of the program "C:\Program Files\Rakudo\bin\raku.exe" is not zero. Exit code: 1
So it does only show if not zero. If it is not too much trouble, I would like to see the code no matter what it is.

And, I'd also like to see the rest of the run string too, not just the first parameter.
Post Reply