From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9704071344.AA19006@romanee> Date: Mon, 07 Apr 97 15:44:35 +0200 From: provost@iap.fr Subject: Pb with C system call system() 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 #include #include #include #include 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