How can I progromatically clear the log files (.log2) ?
I want to keep the logs until the project completes, then I want to get rid of them, if it fails then export the log to HTML then clear it.
Thanks
Gary H
How can I progromatically clear the log files (.log2) ?
I want to keep the logs until the project completes, then I want to get rid of them, if it fails then export the log to HTML then clear it.
Thanks
Gary H
Hi Gary
if you use the /TL option on atcmd then it will log to a temporary log file, which will be deleted once the process is done.
Thanks Vincent - i will give this a go today.
Gary H
Thanks - it worked a treat, I really should sit down and read the manual.
Gary H
Vincent,
still have an issue with this...
If I use the temp log files, the number of files builds up. I have one script running every 10 minutes to ftp data files to a WEB server, the log files are named FB316A - FB316B etc... It managed to fill the drive over night.
Is there a way to identify which log files belong to which process and the kill them? IE if I could get the process number I could get that process to kill its log files on a successfull completion, or export to html then kill the log files.
Thanks
Gary H
Hi Gary
Automise should be deleting it’s temporary log files, if it’s not then that’s a bug, I’ll look into it.
Thanks Vincent, in the mean time I have disabled logging (/s) but it does mean that i cant track failures.
Gary H