Date: Wed, 30 May 2001 09:36:13 +1200 From: Jonathan Chen <jonathan.chen@itouch.co.nz> To: David Banning <david@banning.com> Cc: questions@FreeBSD.ORG Subject: Re: Bad system call - workaround help needed Message-ID: <20010530093613.B93515@itouchnz.itouch> In-Reply-To: <20010529131934.A3725@yahoo.com>; from sky_tracker@yahoo.com on Tue, May 29, 2001 at 01:19:35PM -0500 References: <20010529131934.A3725@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 29, 2001 at 01:19:35PM -0500, David Banning wrote: > 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 you're using "~/printfile", it appears you're using the csh, how about seeing whether it works with /bin/sh? ie: #!/bin/sh cat $1 > /tmp/printfile cat /tmp/printfile | lp -dlj -s or even shorten it to: #!/bin/sh lp -dlj -s -- Jonathan Chen <jonathan.chen@itouch.co.nz> ---------------------------------------------------------------------- "If everything's under control, you're going too slow" - Mario Andretti To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010530093613.B93515>