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:

Qt Code:
  1. void MainWindow::view()
  2. {
  3. textEdit_2->clear();
  4. // Setting the Environment for Seismic Unix
  5. QStringList env = QProcess::systemEnvironment();
  6. env << "CWPROOT=" + environment;
  7. suxwigb.setEnvironment(env);
  8.  
  9.  
  10. args << "clip=1.0"
  11. ;
  12.  
  13. suxwigb.setStandardInputFile("hseis.out");
  14. suxwigb.setWorkingDirectory( QDir::current().currentPath() );
  15. suxwigb.start("suxwigb", args);
  16. }
To copy to clipboard, switch view to plain text mode 

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.