From owner-freebsd-questions Fri Apr 5 17: 3:42 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fac13.ds.psu.edu (fac13.ds.psu.edu [146.186.61.98]) by hub.freebsd.org (Postfix) with ESMTP id 80A7E37B41C for ; Fri, 5 Apr 2002 17:03:14 -0800 (PST) Received: from fac13.ds.psu.edu (localhost.ds.psu.edu [127.0.0.1]) by fac13.ds.psu.edu (8.11.6/8.11.3) with ESMTP id g36135812757 for ; Fri, 5 Apr 2002 20:03:05 -0500 (EST) (envelope-from hawk@fac13.ds.psu.edu) Message-Id: <200204060103.g36135812757@fac13.ds.psu.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-questions@FreeBSD.ORG Subject: batch erroneously reports open text file and aborts From: "Richard E. Hawkins" Date: Fri, 05 Apr 2002 20:03:05 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am using (well, trying to use) batch to run a series of models. I compile the model: fac13ttyp3:pm7>lf95 --tpp pm7.f90 -o veryrandon.1000.10000.29 Encountered 0 errors, 0 warnings in file pm7.f90. fac13ttyp3:pm7>batch ./veryrandon.1000.10000.29 Job 16 will be executed using /bin/sh But invariably I get back mail to the effect, Text file busy (open, errno=26, unit= 8). pm7 beggining run. There are 100 merchants and 20000 consumers Daily allocation of 20000 with target price of 100 Starting price is 120 THe output after the first line is stdout output from the compiled program. THe first line is referring to the file number I use to create the output file, which generally didn't even exist before. THe message that it is busy is plain and simply wrong. The program line is open(courtReportUnit,file=courtOutputFile,action='write') which has the default status='unkwnown' which will kill any existing file. The executables work just fine when run directly from an xterm. While I was typing, one started from the queue--but I turned off it's standard output to achieve that. hawk -- Richard E. Hawkins, Asst. Prof. of Economics /"\ ASCII ribbon campaign dochawk@psu.edu Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of X and postings. Penn State until it pays my retainer. / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message