Cool Solutions

Dateprepender



By:

October 23, 2003 9:42 am

Reads:2,839

Comments:0

Score:Unrated

License:
Free

Download datemove

If you want to store automatically some logfiles on a netware server (e.g. via cron) in chronological order (e.g. you have some log utilities which have no roll-over support), this tool is very useful.

The tool moves (or copies) a file within a NetWare server and prepends the current time and date to the filename. If the resulting filename is too long (max 255 chars) the original filename is truncated.

Usage:
datemove.nlm -Ssourcefile -Ddestinationdir [-C]
The paths must be fully qualified. No blanks after the switches!

Example:
datemove.nlm -Ssys:etc\console.log -Dsys:logfiles
Move the console.log file to the sys:logfiles directory and rename it to (assume local time on server is 23 October 2003 16.33.12) ’16 33_23-10-2003_console.log’.
If you want to copy and rename the file use the -c switch.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading ... Loading ...


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS