It exists, but I only use one argument and miss the second necessary argument, to get sure that it returns a returncode (20).
Because you said that Execute() only doesn't return a returncode, if the command doesn't exists.
Search found 163 matches
- Sun Sep 20, 2026 4:52 pm
- Forum: Newbie questions
- Topic: Execute with CaptureOutput set to true doesn't returns rc
- Replies: 9
- Views: 1373
- Mon Sep 14, 2026 7:57 pm
- Forum: Newbie questions
- Topic: EscapeQuit(FALSE) doesn't work
- Replies: 4
- Views: 894
Re: EscapeQuit(FALSE) doesn't work
Sorry, this is no bug, my fault;)
I'm using RapaGUI I didn't know what I was doing before, everything is working how it should be!
I'm using RapaGUI I didn't know what I was doing before, everything is working how it should be!
- Mon Sep 14, 2026 7:45 pm
- Forum: Newbie questions
- Topic: Execute with CaptureOutput set to true doesn't returns rc
- Replies: 9
- Views: 1373
Re: Execute with CaptureOutput set to true doesn't returns rc
Your code is correct. But I'm not sure if it's a bug or a feature. I mean you're trying to execute a non-existing program here and technically non-existing programs can't return a return code so one could also say that it's correct for Execute() to behave that way. I need to check how this behaves ...
- Thu Sep 10, 2026 9:10 pm
- Forum: Newbie questions
- Topic: EscapeQuit(FALSE) doesn't work
- Replies: 4
- Views: 894
EscapeQuit(FALSE) doesn't work
Hi
I wanted to intercept the ESC key to do some stuff before quit, but the EscapeQuit(False) command doesn't work in my ytSearch app.
A small test script works though.
Is there a special case when I can't deactivate the ESC key to immediately quit an app?
I wanted to intercept the ESC key to do some stuff before quit, but the EscapeQuit(False) command doesn't work in my ytSearch app.
A small test script works though.
Is there a special case when I can't deactivate the ESC key to immediately quit an app?
- Tue Sep 08, 2026 9:50 pm
- Forum: Newbie questions
- Topic: Execute with CaptureOutput set to true doesn't returns rc
- Replies: 9
- Views: 1373
Re: Execute with CaptureOutput set to true doesn't returns rc
I wanted to use Execute (), because it didn't have to run asynchronously.
And it should work according to the docs.
And it should work according to the docs.
- Tue Sep 08, 2026 4:30 pm
- Forum: Newbie questions
- Topic: Execute with CaptureOutput set to true doesn't returns rc
- Replies: 9
- Views: 1373
Re: Execute with CaptureOutput set to true doesn't returns rc
Yes v11 here on MorphOS
- Tue Sep 08, 2026 3:18 pm
- Forum: Newbie questions
- Topic: Execute with CaptureOutput set to true doesn't returns rc
- Replies: 9
- Views: 1373
Execute with CaptureOutput set to true doesn't returns rc
Execute() should return the rc of the program which gets executed if CaptureOutput is set to true, but it doesn't work here on MorphOS. It always returns 0. Did I something wrong? Here is an example with tries to execute an unknown command "Echo2". @VERSION 11,0 rc, out = Execute("Ech...
- Tue Sep 01, 2026 7:33 pm
- Forum: Newbie questions
- Topic: How to capture stderr with RunOutput ?
- Replies: 4
- Views: 3983
- Sun Aug 23, 2026 9:54 pm
- Forum: Newbie questions
- Topic: How to capture stderr with RunOutput ?
- Replies: 4
- Views: 3983
Re: How to capture stderr with RunOutput ?
I'm on MorphOS and have added support for yt-dlp in ytSearch. The error output of yt-dlp is not captured. It's always outputted to a window. I have workaround it by redirecting stderr (with *>) to a file. But the (not sooo big) problem is that I only can read from the error output file after yt-dlp ...
- Mon Aug 17, 2026 4:34 pm
- Forum: Newbie questions
- Topic: How to capture stderr with RunOutput ?
- Replies: 4
- Views: 3983
How to capture stderr with RunOutput ?
Hi, I can capture normal output of command line programs, but the error output is not captured. This is only possible when redirecting the " *> " output to a file and then read it manually to check if there is new output. Is there a better way to also capture the stderr output of programs?...