From owner-freebsd-current Fri Jun 16 19:47:22 2000 Delivered-To: freebsd-current@freebsd.org Received: from overcee.netplex.com.au (peter1.corp.yahoo.com [208.48.107.4]) by hub.freebsd.org (Postfix) with ESMTP id 5CFE737C1EF for ; Fri, 16 Jun 2000 19:47:19 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 8BD3D1CE2; Fri, 16 Jun 2000 19:47:18 -0700 (PDT) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: chris@calldei.com Cc: "Jordan K. Hubbard" , van.woerkom@netcologne.de, current@FreeBSD.ORG Subject: Re: GENERIC from today does not detect system console on my box In-Reply-To: Message from Chris Costello of "Fri, 16 Jun 2000 20:29:22 CDT." <20000616202921.D98160@holly.calldei.com> Date: Fri, 16 Jun 2000 19:47:18 -0700 From: Peter Wemm Message-Id: <20000617024718.8BD3D1CE2@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris Costello wrote: > On Friday, June 16, 2000, Peter Wemm wrote: > > Err.. how did you run it? 'perl < MYKERNEL'? If you run 'perl MYKERNEL' > > it will generate nothing because I was kinda lame and didn't know how to do > > argument parsing. :-] > > Couldn't have hurt to ask. > > while (defined($ARGV[0])) { > # ... parse ... > shift; > } > > It'd work as perl script.pl arg1 arg2 ... or as ./script.pl > arg1 arg2 ... (if +x). How about that and as a stdin pipe as well if no args are specified? Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message