On Thu, Jun 07, 2001 at 11:43:36PM -0700, Adahma wrote: > On Fri, Jun 08, 2001 at 01:29:42AM +0100, Colin Watson wrote: > > > > The shell will do nicely: > > > > #! /bin/sh -e > > cat >"$1" <<EOF > > DBUSER=$1/$2 > > export DBUSER > > EOF > > > > Error detection is left as an exercise for the reader. :) ('sh -e' is a > > good start, though - the script will terminate if any command in it > > Worked like a charm. Thanks tons.
don't forget there are security issues with putting username/password into an environment variable. $ ps ewwwww for example. -- DEBIAN NEWBIE TIP #15 from Will Trillich <[EMAIL PROTECTED]> : Is there a good place to learn snarky PERL TECHNIQUES? One of my favorites is http://webtechniques.com, where Randall Schwartz contributes a monthly sample, explaining line-by-line what his code does, and why. (Look under "Programming with Perl" in the archives.) Also see http://newbieDoc.sourceForge.net/ ...