#12298: Running shell commands from an app fails
-------------------------+----------------------------
Reporter: humdinger | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: System | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------+----------------------------
Comment (by bbjimmy):
It appears to be an issue caused by a program writing to the standard
output device when there is no Terminal to priont to:
a yab script that demonstrates the issue:
#!yab
x=system("ls /boot/home")
open #1, "/boot/home/output", "w"
print #1 x
close #1
make the script executable then:
launch from the Terminal ... the output file contains "0", this is the no
error indication.
Launch from Tracker and the output file contains "2"m some undefined error
has occured.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12298#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.