[WBEL-users] quick script help
Nathan Oyler
noyler at khimetrics.com
Thu Mar 31 11:57:29 CST 2005
I don't think this is the correct place for this type of email.
Localtime();
My $time = localtime();
Print localtime . "\n";
There's a piece of information. You really should figure out how to do
the if file exists on your own. It's not hard.
There are tons of perl resources. You can google/search through perldocs
for each step, and finish this without any help.
> -----Original Message-----
> From: whitebox-users-bounces at beau.org [mailto:whitebox-users-
> bounces at beau.org] On Behalf Of Erick Perez
> Sent: Thursday, March 31, 2005 10:22 AM
> To: whitebox-users at beau.org
> Subject: [WBEL-users] quick script help
>
> Hi there, i need some help with a quick script (im not very good with
> perl, still learning)
>
> i want to run a cron at certain time in the morning and that cron
should:
> 1- check for file named /var/log/mondo-archive.log
> 2- if exists move the file to /root/backuplogs/mondo-
> archive.log.TODAYSDATE
>
> how do i extract todays date(format MMDDYY), save it into a variable
> and then append it to the filename
>
> thanks,
> --
>
> -------------------------------------------
> Erick Perez
> Linux User 376588
> http://counter.li.org/ (Get counted!!!)
> Panama, Republic of Panama
> _______________________________________________
> Whitebox-users mailing list
> Whitebox-users at beau.org
> http://beau.org/mailman/listinfo/whitebox-users
More information about the Whitebox-users
mailing list