Difference between revisions of "CRON task setup on VPS"

From TITAN Wiki
Jump to: navigation, search
m
m
Line 6: Line 6:
 
* While configuring set:
 
* While configuring set:
 
*# Name - '''TITAN_CRON'''
 
*# Name - '''TITAN_CRON'''
*# Trigger - '''Daily'''
+
*# Trigger - '''One time'''
*# Trigger Time - ''''11:30:00  PM'''<nowiki/>'
+
*# Trigger Time - '''5 minutes from now'''
 
*# Action - Start a Program
 
*# Action - Start a Program
 
*# Paste into Program/script command below modified by provided in installation CRON handler link:
 
*# Paste into Program/script command below modified by provided in installation CRON handler link:
Line 14: Line 14:
 
*# set ''''Run whether user is logged on or not'''<nowiki/>'  
 
*# set ''''Run whether user is logged on or not'''<nowiki/>'  
 
*# check ''''Run with highest privileges'''<nowiki/>'
 
*# check ''''Run with highest privileges'''<nowiki/>'
 +
* In '''Triggers Tab'''
 +
*# edit your '''One time''' Trigger
 +
*# in '''Advanced settings''' check '''Repeat that task every''' and set it to '''5 minutes''' and for duration of '''Indefinitely'''
 
*Select '''TITAN_CRON''' task and '''Run,''' refresh after 20 seconds.
 
*Select '''TITAN_CRON''' task and '''Run,''' refresh after 20 seconds.
  

Revision as of 16:27, 13 June 2019

Task Scheduler Library
Advenced configuration
  • Run Task Scheduler
  • Create New Basic Task
  • While configuring set:
    1. Name - TITAN_CRON
    2. Trigger - One time
    3. Trigger Time - 5 minutes from now
    4. Action - Start a Program
    5. Paste into Program/script command below modified by provided in installation CRON handler link:
powershell -ExecutionPolicy unrestricted -Command "(New-Object Net.WebClient).DownloadString(\"Paste_CRON_Link_Here\")"
  • In Task Scheduler Library get into TITAN_CRON properties and General Tab
    1. set 'Run whether user is logged on or not'
    2. check 'Run with highest privileges'
  • In Triggers Tab
    1. edit your One time Trigger
    2. in Advanced settings check Repeat that task every and set it to 5 minutes and for duration of Indefinitely
  • Select TITAN_CRON task and Run, refresh after 20 seconds.

In 'Last Run Result' of TITAN_CRON should be message "The operation completed successfully. (0x0)".

After that you will be able to pass CRON checker and proceed installation process.