I am calling rsync from my perl script.  When it runs it creates a dir
where I want the backups to go.  I need this dir to be the current
date-time.

I can get the format I want like this.
        my $date = `date +%m-%d-%Y_%H-%M-%S`;
Which gives me  
        01-22-2004_20-04-14

But rsync does not know how to handle this string, I think when its
passed to rsync its not text as I see it on the screen.  It cant make
the dir and pukes.

I have seen a bunch of stuff out there for sprintf, etc  but no clear
small little script to do this.

Thanks



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to