punkyep 0 Denunciar post Postado Janeiro 6, 2015 não consigo pensar em uma área melhor do que essa pra tirar uma duvida sobre o cron, porem é o cron usado pelo windows, eu atualmente estou usando o UniserverZ 11.5.3, e utilizo seu cron pra windows, só estou tento um problema.. oque eu quero fazer e fechar e abrir um arquivo jar, porem ele deleta o evento, simplesmente deleta, sem executar o evento, porem ele executa todos os outros eventos. me ajudem pls .-. cron config: ;############################################################################## ;# Name: cron.ini ;# Developed By: The Uniform Server Development Team ;# Web: http://www.uniformserver.com ;# Uniform Server Zero Cron Configuration cron.ini ;# V1.0 22-7-2013 ;# ---------------------------------------------------------------------------- ;# 1) Web applications that require periodically running such as a PHP script. ;# Specify its URL path (what you would type into a browser) to run that script. ;# 2) Comand-line scripts (.bat,.php and .vbs) require either an absolute or ;# relative path (including scripts file name) to be specified. ;# Note: For portability a relative path is specified. This path is relative ;# to folder UniServerZ. e.g. \home\us_cron\test\test_cron_1.bat ;# Note: Scripts with a .vbs extension are run using the Cscript.exe engine ;# these scripts shall not use any GUI interfaces. ;# 3) Each script to run is defined in a separate block with the following format: ;# [dtdns] – Each block starts with a unique name enclosed in square brackets ;# note no spaces allowed. ;# start = - Initial start time. With the following format: ;# Y-M-D H:M:S - Note: 24 hour clock ;# period = - How often to run script from the above reference start time ;# Values: hourly, daily, weekly, monthly or numeric in seconds ;# path = - a) For a web applications full URL of the script. ;# e.g. http://localhost/drupal/cron.php ;# b) Command-line (CLI) option 1: Use an absolute path with back-slashes ;# e.g. C:\UniServerZ\home\us_cron\test_cron_1.bat ;# c) Command-line (CLI) option 2: Use a relative path with back-slashes ;# e.g. \home\us_cron\test_cron_1.bat ;# ref = - A timestamp updated by the cron application. ;# Set initial value to blank. ;# ;# Note 1 Cron automatically updates (ref). Initially adds start-time set above ;# to period. Subsequent runs, set ref to current time + period. ;# Note 2 To change start time first set a new value for start and delete the ;# ref number, save file. The script will run at the new date and time ;# set and there after at a rate you defined for period. ;# 4) To use pre-configured web blocks drupal and moodle uncomment to enable. ;# Note: Command-line paths starting with \ followed by sub-folders bellow ;# UniServerZ are portable. Paths outside UniServerZ are not portable ;# and require manually changing after relocating Uniform Server Zero. ;############################################################################## ;[moodle] ;start = 2012-09-21 2:10:00 ;period = hourly ;path = http://localhost/moodle/admin/cron.php ;ref = ;[drupal] ;start = 2012-09-21 2:30:00 ;period = hourly ;path = http://localhost/drupal/cron.php ;ref = ;[Test_cron_1] ;start = 2012-4-1 23:35:00 ;period = 10 ;path = C:\UniServerZ\home\us_cron\test\test_cron_1.bat ;ref = [db_backup_php] start = 2015-01-02 10:00:00 period = hourly path = http://localhost/backup_cron_x_1_2_3_zuko_homem.php ref = [aqw_restart] start = 2015-01-06 01:00:00 period = 3030 path = C:\UniServerZ\home\us_cron\aqw\restart.bat ref = [aqw_events] start = 2015-01-02 10:00:00 period = daily path = C:\UniServerZ\home\us_cron\aqw\events.bat ref = ;=== END Config =============================================================== arquivo restart.bat CLS COLOR B CLS cd C:\UniServerZ\dist taskkill /im javaw.exe taskkill /im java.exe CLS java -jar eX_Emulator.jar Compartilhar este post Link para o post Compartilhar em outros sites
punkyep 0 Denunciar post Postado Janeiro 6, 2015 fechei todos os processos relacionados ao uniserver e crontab, editei o arquivo, e reiniciei o pc, ficou tudo normal .. Compartilhar este post Link para o post Compartilhar em outros sites