From owner-freebsd-questions Tue May 29 10:20: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by hub.freebsd.org (Postfix) with SMTP id 933B037B647 for ; Tue, 29 May 2001 10:19:51 -0700 (PDT) (envelope-from sky_tracker@yahoo.com) Received: from hse-toronto-ppp3488477.sympatico.ca (HELO d.tracker) (65.92.112.44) by smtp.mail.vip.sc5.yahoo.com with SMTP; 29 May 2001 17:19:51 -0000 X-Apparently-From: Received: (from david@localhost) by d.tracker (8.11.3/8.11.3) id f4TIJZ103775 for questions@freebsd.org; Tue, 29 May 2001 18:19:35 GMT (envelope-from david) Date: Tue, 29 May 2001 13:19:35 -0500 From: David Banning To: questions@freebsd.org Subject: Bad system call - workaround help needed Message-ID: <20010529131934.A3725@yahoo.com> Reply-To: David Banning Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i 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 This SCO program I am running allows me to pipe my reports out to any program. I have to compile it into the database code, which is not open. I am piping to a printer but the program crashes. It works fine if I just pipe it to a shell script like this one; cat $1 > ~/printfile Then I can go "cat ~/printfile | lp -dlj -s" and it prints fine. But for some strange reason, if I expand the program to cat $1 > ~/printfile cat ~/printfile | lp -dlj -s the program crashes, with bad system call - signal 12 If I try and pipe it directly to the print it crashes also. It doesn't _always_ crash either. The only work around I can think of, it running a cron that is looking for files to print every 5 seconds. I've tried a number of nohups and background type & which doesn't seem to help. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message