Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: provost@iap.fr <provost@iap.fr>
Subject: Pb with C system call system()
Date: Mon, 07 Apr 97 15:44:35 +0200	[thread overview]
Message-ID: <9704071344.AA19006@romanee> (raw)

Hello,

When I compile a C program on a DEC machine (for exemple DEC 3000/300LX) in
which I use the system call "system()" and I run the program on my Alpha 500
with Linux 2.0.23 (Redhat 4.0), I have an error (err = 32512) whereas it runs
very well on the other DEC machine.

The source of my program is very simple : 

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>

main()
{
int err;
extern int errno;

err=system("/bin/ls > toto");
fprintf(stdout,"err = %d\n",err);

}

Have you got an idea ?

Thank you for your help.

+++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Lionel Provost 
+ Ingenieur Systemes & Reseaux, Base de donnees,
+ et Webmaster
+
+ C.N.R.S / Institut d'Astrophysique de Paris
+ 98 Bis Bd Arago
+ 75014 PARIS
+
+ Tel : +33 1 44 32 81 14   e-mail : provost@iap.fr
+ http://www-denis.iap.fr/provost.html
+++++++++++++++++++++++++++++++++++++++++++++++++++++ 

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-04-07 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-07 13:44 provost [this message]
1997-04-07 17:11 ` Pb with C system call system() Michal Jaegermann
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