On Thu, Oct 31, 2002 at 04:57:15PM +1300, Mark Carey wrote:
Mark,
> <snip /home/me/cvs_backup>
> #! /bin/bash
> export BACKUPT=`date +%d%m%Y_%H%M`
> cvs commit -m $BACKUPT
> </snip>
You don't need to use ``export'' in the above case, unless you need the
variable passed to a subshell via it's enviroment.
You could also do:
#!/bin/sh
cvs commit -m `date +%d%m%Y_%H%M`
Unless you were intending on reusing the backup time, in which case
setting the variable once makes more sense.
--
Matthew Gregan |/
/| [EMAIL PROTECTED]