Why Ubuntu 16.04 C++ program cannot programatically stop mono-service?
Tom H
tomh0665 at gmail.com
Wed May 18 15:49:49 UTC 2016
On Wed, May 18, 2016 at 5:24 PM, Oliver Grawert <ogra at ubuntu.com> wrote:
> Am Dienstag, den 17.05.2016, 10:26 -0400 schrieb Frank Chang:
>>
>> I tried char *argv[] = {"/bin/sh", "mono-service.exe",
>> "Audio_Recorder.exe", "--debug", ">&", "log.txt",0) followed by
>> execve(argv[0], &argv[0], envp) with no success.
>
> ">&" is a "bashism" ... use proper POSIX shell for the redirect or
> call /bin/bash instead of /bin/sh ...
Are you sure?
>From "man dash":
[n1]>&n2 Duplicate standard output (or n1) to n2
I'm pretty sure that "man sh" on NetBSD has the same line, so it's not
a dash "enhancement."
Maybe it's not posix-ally correct.
More information about the ubuntu-users
mailing list