Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2002 02:12:09 -0400
From:      parv <parv@pair.com>
To:        Joe & Fhe Barbish <barbish@a1poweruser.com>, questions@FreeBSD.ORG
Subject:   Re: Help writing simple script
Message-ID:  <20020622061209.GA23749@moo.holy.cow>
In-Reply-To: <20020621201606.GY10684@freepuppy.bellavista.cz>
References:  <MIEPLLIBMLEEABPDBIEGMEHBCDAA.barbish@a1poweruser.com> <20020621201606.GY10684@freepuppy.bellavista.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
i lost the original message, so i am replying indirectly to the OP.


> > From: "Joe & Fhe Barbish" <barbish@a1poweruser.com>
> > 
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020622061209.GA23749>