Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-04-2005, 04:47 PM   #1
cytex
Junior Member
ioFTPD Foundation User
 
Join Date: Mar 2004
Posts: 10
Default delete log file

Hi is there any Scheduler event who can delete all the log files every 10/20min? What type of Scheduler command will i add in ioftpd.ini file for this option?


// Cytex
cytex is offline   Reply With Quote
Old 03-04-2005, 06:45 PM   #2
esmandil
Senior Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Oct 2004
Posts: 107
Default

What do you mean by "log files"? I can think of several things that match this description.

There is no built-in solution. You need to use a script - I do not know if there is one available which does what you need.
esmandil is offline   Reply With Quote
Old 03-04-2005, 06:47 PM   #3
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

in file ..\scripts\kill_log.bat:
Code:
cd ..\logs
del xferlog
del ioFTPD.log
del Error.log
del SysOp.log
del SystemError.log
in you ioFTPD.ini under
[Scheduler]
add line:
del_logs = 0,10,20,30,40,50 * * * ..\scripts\kill_log.bat

restart your site
wait and see the results

(PS: untested)
mr_F_2 is offline   Reply With Quote
Old 03-09-2005, 12:55 PM   #4
cytex
Junior Member
ioFTPD Foundation User
 
Join Date: Mar 2004
Posts: 10
Post

that script didn't work
cytex is offline   Reply With Quote
Old 03-09-2005, 01:44 PM   #5
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Why do you want to delete log files ?
Mouton is offline   Reply With Quote
Old 04-01-2005, 04:28 PM   #6
cytex
Junior Member
ioFTPD Foundation User
 
Join Date: Mar 2004
Posts: 10
Default

Security reason If there is any way to do it? Then tell med
cytex is offline   Reply With Quote
Old 04-06-2005, 01:32 PM   #7
Grendel
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Grendel's Avatar
 
Join Date: Jul 2004
Posts: 187
Default

I cannot recommand to completely delete the log-files.
Some scripts will not work properly, if some specific log-files are missing. Try to "reset to 0" instead.

for example... resetlogs.bat

Code:
@echo off
rem.>c:\ioFTPD\logs\xferlog
rem.>c:\ioFTPD\logs\ioFTPD.log
rem.>c:\ioFTPD\logs\Error.log
rem.>c:\ioFTPD\logs\SysOp.log
rem.>c:\ioFTPD\logs\SystemError.log
this will reset all the logs to 0byte files
__________________
- FlashFXP v4.0 BETA (v3.7.9 Build 1401) registered
- Windows 7 x64
- McAfee Antivirus Enterprise 8.7i Patch 2 + Antispyware 8.7i
Grendel is offline   Reply With Quote
Old 04-06-2005, 03:23 PM   #8
cytex
Junior Member
ioFTPD Foundation User
 
Join Date: Mar 2004
Posts: 10
Default

Ok will try it out and yes i want to clean the log files so reseting them is a better choice.
cytex is offline   Reply With Quote
Old 06-10-2005, 03:14 AM   #9
jannat
Junior Member
 
Join Date: Jul 2003
Posts: 19
Default

this doesn't seem to work for me.

kill_log.bat:
@echo off
rem.>c:\programme\ioftpd2\logs\xferlog
rem.>c:\programme\ioftpd2\logs\ioFTPD.log

in ioftpd.ini
del_logs = 0 * * * c:\programme\ioftpd2\scripts\kill_log.bat

error.log:
06-10-2005 10:00:30 Scheduler event 'del_logs' returned error.

any idea ?
jannat is offline   Reply With Quote
Old 06-10-2005, 04:27 AM   #10
Phlegm
Junior Member
ioFTPD Registered User
 
Join Date: Aug 2002
Posts: 21
Default

Quote:
Originally posted by Grendel
Code:
@echo off
rem.>c:\ioFTPD\logs\xferlog
rem.>c:\ioFTPD\logs\ioFTPD.log
rem.>c:\ioFTPD\logs\Error.log
rem.>c:\ioFTPD\logs\SysOp.log
rem.>c:\ioFTPD\logs\SystemError.log
not rem. but echo. I think, so it would turn out as

@echo off
echo.>c:\ioFTPD\logs\xferlog
echo.>c:\ioFTPD\logs\ioFTPD.log
echo.>c:\ioFTPD\logs\Error.log
echo.>c:\ioFTPD\logs\SysOp.log
echo.>c:\ioFTPD\logs\SystemError.log
Phlegm is offline   Reply With Quote
Old 06-10-2005, 07:06 AM   #11
jannat
Junior Member
 
Join Date: Jul 2003
Posts: 19
Default

tried it with echo => same error message ?

btw. if I start the bat directly it works, so it must be the scheduler stting in ioftpd.ini
jannat is offline   Reply With Quote
Old 07-20-2005, 03:47 AM   #12
Grendel
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Grendel's Avatar
 
Join Date: Jul 2004
Posts: 187
Default

1)

When you start the batch manually or as a normal [FTP_Custom_Command]
the use of "REM.>" or "ECHO.>" is not relevant.
Both commands are working properly and can create a 0byte file.

2)

For unknown reason, something didn't work in scheduler-mode.
It tried batch with "echo !detach 0" too, but still the same problem.


Maybe Darkone can give us any answers and a leading hand here ?
__________________
- FlashFXP v4.0 BETA (v3.7.9 Build 1401) registered
- Windows 7 x64
- McAfee Antivirus Enterprise 8.7i Patch 2 + Antispyware 8.7i
Grendel is offline   Reply With Quote
Old 07-26-2005, 08:36 AM   #13
zeroxia
Junior Member
 
Join Date: Jul 2005
Posts: 9
Default

In the .ini file:
del_logs = 0 * * * c:\programme\ioftpd2\scripts\kill_log.bat

Is it necessary to precede the batch file with EXEC??
zeroxia is offline   Reply With Quote
Old 07-26-2005, 11:31 AM   #14
Grendel
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Grendel's Avatar
 
Join Date: Jul 2004
Posts: 187
Default

Quote:
Originally Posted by zeroxia
In the .ini file:
del_logs = 0 * * * c:\programme\ioftpd2\scripts\kill_log.bat

Is it necessary to precede the batch file with EXEC??
hehe, you're right...
better do it with EXEC INSIDE *lol*
__________________
- FlashFXP v4.0 BETA (v3.7.9 Build 1401) registered
- Windows 7 x64
- McAfee Antivirus Enterprise 8.7i Patch 2 + Antispyware 8.7i
Grendel is offline   Reply With Quote
Reply

Tags
command, delete, file, log, scheduler

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:18 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)