Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: bruns@tetibm2.ee.TU-Berlin.DE (Warner Bruns)
Subject: DEC-UNIX "system" does not work on Linux?
Date: 1997/11/11	[thread overview]
Message-ID: <64al82$5m5$1@news.cs.tu-berlin.de> (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






             reply	other threads:[~1997-11-11  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-11  5:00 Warner Bruns [this message]
1997-11-12  5:00 ` DEC-UNIX "system" does not work on Linux? Warner Bruns
1997-11-12  5:00 ` Greg Lindahl
1997-11-12  5:00 ` Warner Bruns
read-only archive

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