Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* DEC-UNIX "system" does not work on Linux?
@ 1997-11-11  5:00 Warner Bruns
  1997-11-12  5:00 ` Warner Bruns
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Warner Bruns @ 1997-11-11  5:00 UTC (permalink / raw)



 Dear Netters:

 I am porting a finite difference code written in Fortran to an Alpha
 running Linux. Since there is no good Fortran-compiler on this machine,
 i compile on a DEC-UNIX machine and transfer the executable to DEC-Linux
 (thanks to this newsgroup, i know how to do this).
 Everything works fine, the program runs.... except:
 The program wants to start another program with     system("command")
 This does not work.
 Even the following little test-program, if compiled on a DEC-UNIX system
 and transferred to the DEC-Linux does not work as expected:

#include <stdlib.h>
#include <stdio.h>

main(){
int ierr;
    ierr= system("ls -l");
    printf(" ierr: %d\n", ierr);
}

 On the DEC-UNIX, i see the directory listing, ierr is 0.
 On the DEC-Linux, i dont see the directory, ierr is 32512.

 Does anybody out there know a work around for "system()", that can be compiled
 on DEC-UNIX and executed on DEC-Linux?

 If that helps:
 According to the DEC-UNIX man pages, system makes a fork, the child process
 then exec's "/bin/sh".
 This "/bin/sh" on the target DEC-Linux is a link to "bash".

 Thanks for any suggestions.

 Warner Bruns






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-11-12  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-11  5:00 DEC-UNIX "system" does not work on Linux? Warner Bruns
1997-11-12  5:00 ` Warner Bruns
1997-11-12  5:00 ` Warner Bruns
1997-11-12  5:00 ` Greg Lindahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox