Tool

jbrunner's picture
tool
Reads:

2114

Score:
0
0
 
Comments:

0

Dateprepender

Author Info

23 October 2003 - 1:16am
Submitted by: jbrunner

license: 
Free

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.

AttachmentSize
datemove.zip1.78 KB




User Comments

Post new comment

Anonymous
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <i> <cite> <code> <img> <ul> <ol> <li> <div> <dl> <dt> <dd> <b> <strong> <h1> <h2> <h3> <pre> <table> <td> <tr> <th> <blockquote>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, pre.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
5 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

© 2012 Novell