From owner-freebsd-questions Fri Jun 21 23: 9:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 40FFF37B400 for ; Fri, 21 Jun 2002 23:09:38 -0700 (PDT) Received: from sdn-ar-003dcwashp193.dialsprint.net ([206.133.21.105] helo=moo.holy.cow) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17Le5Z-0001ng-00; Fri, 21 Jun 2002 23:09:37 -0700 Received: by moo.holy.cow (Postfix, from userid 1001) id B021D50BB2; Sat, 22 Jun 2002 02:12:09 -0400 (EDT) Date: Sat, 22 Jun 2002 02:12:09 -0400 From: parv To: Joe & Fhe Barbish , questions@FreeBSD.ORG Subject: Re: Help writing simple script Message-ID: <20020622061209.GA23749@moo.holy.cow> Reply-To: f-q Mail-Followup-To: parv , Joe & Fhe Barbish , questions@FreeBSD.ORG References: <20020621201606.GY10684@freepuppy.bellavista.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020621201606.GY10684@freepuppy.bellavista.cz> 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 lost the original message, so i am replying indirectly to the OP. > > From: "Joe & Fhe Barbish" > > > > I'm trying to build a temp file inside this script and pass it to > > the cvsup command... ... > > > > cvsupfile=<< EOD [ would-be-file content ] > > EOD if problem hasn't resolved yet try... ---- partial script ---- # set $file to some file name as you see fit file=/some/file # remove old $file if exists [ -e "$file" ] && rm -f "$file" # create new $file cat >> "$file" <<_CONFIG_ blah blah blah blah _CONFIG_ # if everything is ok, pass $file to cvsup.... [ $? -eq 0 ] && cvsup -L 2 "$file" >/cvsup/log 2>&1 ---- partial script ---- -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message