[Gambas-user] using 2>redirect with Exec?
Bruce Steers
bsteers4 at gmail.com
Sun Aug 8 01:28:15 CEST 2021
I cannot get redirect working with Exec. Is it possible?
Ie..
Shell "/run/mycommand 2>&1"
works as expected and redirects error text to stdout.
Exec ["/run/mycommand", "2>&1"]
does not redirect and only sends '2>&1' as an argument to /run/mycommand.
Is there a way to redirect with Exec or will i have to Shell it?
For some reason i am under the impression it is better to use Exec over
Shell if possible?
Thanks in advance
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210808/fd56b8ca/attachment.htm>
More information about the User
mailing list