Hi everyone,
I've been working with this problem a while now :\.
Somehow I'm trying to do this that I would in a command line like this: "suxwigb < hseis.out clip=1.0"
In the program the code I use to achieve this looks like this:
Code:
void MainWindow::view() { textEdit_2->clear(); // Setting the Environment for Seismic Unix env << "CWPROOT=" + environment; suxwigb.setEnvironment(env); QStringList args; args << "clip=1.0" ; suxwigb.setStandardInputFile("hseis.out"); suxwigb.start("suxwigb", args); }
The funny thing is that.. this works on linux works on Linux and and inside Contents of the MacOS application Prog.app/Contents/MacOS/Prog
but when I try calling that action when I open the program through "open Prog.app", it will not work !!!
and I get this error:
xwigb: subcalls.c: efopen: fopen failed /dev/tty, w
suxwigb process crashed
Any ideas what's happening???
Thanks in advance,
Ed.