niralibaan
9th March 2010, 13:37
Hi,
I have a problem with log file in ERP.
We have 'D:\ssa_erp\tmp' path on server where log files are stored.
In tmp folder constantly files are being generated and count is getting increased time by time, so speed of erp is getting lesser.
In Debugging / Tracing->Debug BShell I have put the option 'no extra logging',
but still log are being generated in 'D:\ssa_erp\tmp' path.
I don't want to generate this log file.Pls help me how can I stop generating log files constantly on my erp server?
We are deleting log files from 'D:\ssa_erp\tmp' path as temperarory solution.
Kindly provide me proper solution to this problem.
Waiting for reply.
Regards,
nirali
dave_23
10th March 2010, 20:37
the tmp directory is home to a lot of temporary files.
The common solution for the maintenance of those files IS to just delete them periodically.
Do you have some specific logs that you're referring to that are outside of that range? like dbs.log or bshell.#### that's growing large?
Dave
niralibaan
11th March 2010, 13:59
Hi dave 23,
Thanks for ur reply.
In tmp directory 'tmp099440817' type of temperory files are getting generated constantly and also 'bshell.####' files are created constantly.
Pls help me out to stop generating this tmp files.
Waiting for ur reply.
Regards,
nirali
bdittmar
11th March 2010, 14:11
Hi dave 23,
Thanks for ur reply.
In tmp directory 'tmp099440817' type of temperory files are getting generated constantly and also 'bshell.####' files are created constantly.
Pls help me out to stop generating this tmp files.
Waiting for ur reply.
Regards,
nirali
Hello,
as Dave said, these files are needed by the application.
LOG files are stored by standard in $BSE/log
TMP files are handles in $BSE/tmp
Write a scheduled script to remove all tmp* older than e.g. 8 days.
Regards
niralibaan
11th March 2010, 14:20
Can u pls provide me some idea or script what to write to remove all tmp* files?
Regards,
nirali
bdittmar
11th March 2010, 14:29
Can u pls provide me some idea or script what to write to remove all tmp* files?
Regards,
nirali
Hello,
a commandline utility (25,00 $) delete.exe will do.
You're on windows ?
DELETE.EXE is a Win32 console application that deletes files. Win32Console application means that it runs in a Windows 98, ME, 2000, or XP command prompt. It is an improvment over the DEL or ERASE internal command that comes with the operating system. Delete's features include: * allows multiple file specifications on the command line; * optionally deletes Hidden, System, or Read Only files; * optionally prompts for permission to delete any file; * optionally deletes files in directories below the current one; * optionally removes empty directories below the current one; * optionally overwrites files before deleting them; and * optionally deletes only files dated before, after, or between dates. * optionally deletes only zero length files. * optionally deletes only files that are not present in a reference directory (useful for mirroring a directory structure when used with Xcopy). DEL16.exe is the old DOS version of this program that runs under pure DOS, and can't see long file names.
e.g. delete /S /D10 c:\temp\*.tmp will delete all file older than 10 days.
Have a look at : http://www.simtel.net/product/view/id/59653
On unix do it by cron like :
40 21 * * 1-6 find /daten/tmp -name "tmp*" -mtime +14 -exec rm -f {} \;
OR :
Windows powershell :
$now = get-date get-childitem . -recurse | where-object {($now - $_.LastWriteTime).Days -gt 30} | remove-item
Only examples, you have to modify to achieve your requirement.
Regards
niralibaan
12th March 2010, 07:23
'delete /S /D10 c:\temp\*.tmp'
Its working..Thanks for your support.
Regards,
nirali