Error is ..when i run it manually
I din't get your mean about shell.........
 [EMAIL PROTECTED] cvs_bkp]# mv /home/manish/cvs_bkp/cvs_bkp.tar
/home/manish/cvs_bkp/cvs_bkp$date.tar
mv: `/home/manish/cvs_bkp/cvs_bkp.tar' and
`/home/manish/cvs_bkp/cvs_bkp.tar' are the same file

[EMAIL PROTECTED] cvs_bkp]# date=`date -I` mv /home/manish/cvs_bkp/cvs_bkp.tar
/home/manish/cvs_bkp/cvs_bkp$date.tar

mv: `/home/manish/cvs_bkp/cvs_bkp.tar' and
`/home/manish/cvs_bkp/cvs_bkp.tar' are the same file



 On 10/15/05, Gora Mohanty <[EMAIL PROTECTED]> wrote:
>
> --- Manish Popli <[EMAIL PROTECTED]> wrote:
> [...]
> > tar -cvf /home/manish/cvs_bkp/cvs_bkp.tar /home/cvs/
> >
> > # Rename the backup file by date
> >
> > date=`date -I`
> > mv /home/manish/cvs_bkp/cvs_bkp.tar
> > /home/manish/cvs_bkp/cvs_bkp$date.tar
>
> What error message do you get if you try manually
> running this script (change "date" to "echo" if you do
> not want to mess with your backups)? The script looks
> fine for bash, but if you have changed shells, you
> might need to use ${date} instead of $date in the mv
> line. It is usually best to do this for shell
> variables not at the end.
>
> Regards,
> Gora
>
>
>
>
> __________________________________________________________
> Yahoo! India Matrimony: Find your partner now. Go to
> http://yahoo.shaadi.com
>
> _______________________________________________
> ilugd mailinglist -- ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
>
>


--
Manish Popli
_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to