Passing password to cvs [Was:Re: Bash Scripting Help]

Bryce C plug-discuss@lists.plug.phoenix.az.us
09 Jan 2003 19:46:11 -0700


--=-kgEokq2pkcxQrvpTzJqc
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Thank you.  That gave me an idea to use the length of the string of
differences and if >0,  then it does stuff.

Now, part two.
Can someone please tell me how to pass a password to cvs for logging
into a pserver?


On Thu, 2003-01-09 at 19:01, Kevin Brown wrote:
> Bryce C wrote:
> > Hello all. I was wondering if anyone knew how to do an if statement in
> > bash to see if results were returned?  I want to write a bash script to
> > run hourly that will grep my mailbox for a certain text if the results
> > are different than the contents of another, previous output, then runn
> > another command.  Somethinng like:
> >=20
> > cat file|grep Text>/tmp/NewText.grep
> > diff /tmp/NewText.grep /tmp/Text.grep
> > if( diff returned anything ) ./runme
> > mv /tmp/NewText.grep /tmp/Text.grep
> >=20
> > I just don't know what if switches are available (to use) in bash.
> > Thank you.
> >=20
> Here's a sample bash script I wrote:
>=20
> SIZE=3D`ls -l $HOME | grep tvguide.all.html | awk '{ print $5 }'`
> GT=3D`expr $SIZE \> $MINSIZE`
> if [ "$GT" -eq 1 ]
> then
>    mv -f ./tvguide.all.html $DEST/tvguide.all.html
> fi
>=20
>=20
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--=20
Bryce C <Plug@BryceCo.Net>
CoBryce Communications

--=-kgEokq2pkcxQrvpTzJqc
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA+HjPy/wbq/C6yyPcRAgjlAJ44VTffdjh4kNo4/MkRni7l9wS2SQCeINh5
udayZfiu2XiRcxWumiV0p8o=
=9mvl
-----END PGP SIGNATURE-----

--=-kgEokq2pkcxQrvpTzJqc--