From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199706051612.SAA07689@luchs.ttm.maschinenbau.th-darmstadt.de> Date: Thu, 5 Jun 1997 18:12:11 +0200 (MET DST) From: D. Unger Subject: Problem porting a f77-exec. to alpha/linux I have a f77 program which contains the following non-standard (but usable on AIX, Solaris, Intel/linux, DU) lines of code: ... call system('hostname > temp123456') call system('whoami >> temp123456') call system('pwd >> temp123456') call system('date >> temp123456') open(unit=11,file='temp123456',status='old') rewind(unit=11) read(11,'(a80)') host ... After compiling/linking statically (so that all run-time libs are bound into the executable) on a Digital Unix Alpha, this code runs fine on the DU Alpha, but when PORTING THE EXECUTABLE to an Alpha running Linux, I get the error message forrtl: severe (29): file not found, unit 11, file temp123456 Command exited with non-zero status 29 and the program stops. Apparently the file temp123456 hasn't been created and the system call didn't work, but why? Any ideas are greatly appreciated, Ditmar. -- \\\|/// \\ ~ ~ // (/ @ @ /) ----------------------------oOOo-(_)-oOOo------------------------------- | | | Ditmar Unger E-mail: | | Fachgebiet Turbomaschinen unger@tfa.th-darmstadt.de | | und Fluidantriebstechnik | | TH Darmstadt Tel. +49 (0) 6151 16-2603 | | Petersenstr. 30 Fax. 16-5559 | | D - 64287 Darmstadt | | | | WWW: http://www.th-darmstadt.de/fb/mb/tfa/Welcome.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