Flux rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Monitor Log file useing DOC BATCH

tonyclark231, on Sunday 25 May 2008 à 13:43:00
Hello,


I want to monitor a log file of a service.

If service is running normal then this get update in every 15min. So I want to monitor if the log file is getting updated in every 15min or not. If its not updating then it means service is not running. and hence it must send some echo statement.
Could you please help me on this?
I tried " %~tI - expands %I to date/time of file" but this returns the file creation time.
So please suggest me if we have any other way out for this.
Configuration: Windows XP
Internet Explorer 6.0
Reply to tonyclark231  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
 yuyuman, on Sunday 25 May 2008 à 14:13:28
Hai



First of all your operating system is not DOS as you are talking about services and variable modifiers, I suppose you are running a NT based environment like XP or 2000 where there is no DOS at all.

About your problem you have to parse the output of Dir command with the /TW switch that takes into account the most recent access to write the file. Something as

for /F "tokens=2" %%a in ('dir /TW log.txt') do (
echo Log.txt updated at %%~b)
Reply to yuyuman

Résultats pour Monitor Log file useing DOC BATCH

Deleting a File/Document Deleting a File/Document Deleting an unused file or document from your computer is a method to free some space on your local disk (C: for windows). This process enables your computer to be quick when starting windows. In order to delete... en.kioskea.net/faq/sujet-220-deleting-a-file-document
How do you delete system files? Hello, 1. How do you delete a system file with BATCH??? i wanted to know how to render a pc useless after running a batch file and can you please give the codes??? plsss...??? en.kioskea.net/forum/affich-1674-how-do-you-delete-system-files
Keeping different versions of a Word document in the same file Microsoft Word calls this operation "versioning". The principle is very simple: one file will contain all the versions and will increase the file size. You can also extract any version and save it as a separate file/document. To use the version... en.kioskea.net/faq/sujet-12-keeping-different-versions-of-a-word-document-in-the-same-file

Résultats pour Monitor Log file useing DOC BATCH

Creating an Autorun.inf fileCreating an Autorun file Allowing autorun Creating an Autorun.inf file Variations Customizing the icon Customizing the icon text Customizing the icon menu Allowing autorun Windows provide users with simple utility that runs... en.kioskea.net/faq/sujet-641-creating-an-autorun-inf-file
How to read a .DOCX documentHow to read a .DOCX document Download Microsoft Compatibility Pack Download XML Translator Making use of online Tools For MAC users The new Office 2007 includes a new format for the word documents that bears the .docx extension.... en.kioskea.net/faq/sujet-317-how-to-read-a-docx-document
How to read and create a BIN and CUE file?How to read and create a BIN and CUE file? What is a BIN file? How to create BIN and CUE files How to burn BIN and CUE files How to read/convert BIN and CUE files What is a BIN file? A BIN and CUE file together create a binary... en.kioskea.net/faq/sujet-264-how-to-read-and-create-a-bin-and-cue-file

Résultats pour Monitor Log file useing DOC BATCH

Xp crashHello, My xp professional has crashed. It will not let me go into safe mode or anything. It just keeps rebooting itself over and over. F8 doesn't work either. Whether I have the xp recovery disc in or not, it comes up "Cannot find log file... en.kioskea.net/forum/affich-20995-xp-crash
Computer shuts off at random, the restarts.Hello, My computer suddenly started shutting off, then, after a second or two, restarting -- as if I turned it off and on. There are no error messages in the log files. In the BIOS, I set it not to restart, but it does. The only thing that shows up in... en.kioskea.net/forum/affich-27438-computer-shuts-off-at-random-the-restarts

Résultats pour Monitor Log file useing DOC BATCH

Download Shadow CopyNormally, the administrators of files as the explorer Windows do not allow the copy of opened or blocked files. For instance if you are treating a document Word, you have no possibility of copying it in another file during its edition. Shadow Copy is... en.kioskea.net/telecharger/telecharger-712-shadow-copy
Download Remote Shutdown Daemon When to manage you several computer on the same network, it is not very easy to have to put out all posts, therefore move. Remote Shutdown Daemon and customer is a method allowing to put out one or computers across LAN or via Internet. To be... en.kioskea.net/telecharger/telecharger-150-remote-shutdown-daemon
Download PHP Edit PHPEdit is an environment of inserted development (IDE) under Windows for language PHP. It gives a big number of functions allowing to develop more efficiently: Syntactic coloring Auto-complete of functions integrated Debugger PHP en.kioskea.net/telecharger/telecharger-140-php-edit

Résultats pour Monitor Log file useing DOC BATCH

Processes - mad - mad.exe mad.exe (mad stands for Microsoft System Attendant) is a Microsoft Exchange generic process which writes log files and manages address books. The process mad.exe is not in any way a virus, a worm, a Trojan horse, spyware, or adware. It is a process... en.kioskea.net/processus/mad-exe.php3
Attack detection - Monitoring event logs One of the best ways to detect intrusions is to monitor event logs (sometimes called logs for short). In general, servers store logs of their activity, and in particular any errors encountered, in files. Therefore, after a computer attack, it is rare... en.kioskea.net/detection/surveillance-journaux-logs.php3
Attack detection - Analysing logs One of the best ways to detect intrusions is to monitor event logs (sometimes called logs for short). In general, servers store logs of their activity, and in particular any errors encountered, in files. Therefore, after a computer attack, it is rare... en.kioskea.net/detection/detection-attaques-reseau.php3