From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9706051734.AA05044@alf2.mrc-lmb.cam.ac.uk> Date: Thu, 5 Jun 1997 18:34:25 +0100 (BST) From: T. S. Horsnell Subject: Re: Problem porting a f77-exec. to alpha/linux In-Reply-To: <199706051612.SAA07689@luchs.ttm.maschinenbau.th-darmstadt.de> [Charset ISO-8859-1 unsupported, filtering to ASCII...] >I have a f77 program which contains the following non-standard (but >usable on AIX, Solaris, Intel/linux, DU) lines of code: > > ... The 'system' routine on DUNIX expects to have /sbin/sh available. make a link thus: ln -s /bin/bsh /sbin/sh and it should work. Terry. > 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? > -- 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