Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
code:laravel:scheduler [2020/04/24 16:32] – [Cronjob command] gerardorourkecode:laravel:scheduler [2020/04/24 16:36] (current) – [App/Console/Kernel.php] gerardorourke
Line 11: Line 11:
         $schedule->command('ldap:import ldap', [         $schedule->command('ldap:import ldap', [
             '--no-interaction',             '--no-interaction',
-            '--restore', +            '--restore', // This will restore users which were soft deleted and LDAP now says they are enabled 
-            '--delete', +            '--delete', //This will soft delete any LDAP Users who are now disabled. 
-            '--filter' => '(objectclass=user)',+            '--delete-missing', //This will soft delete any records NOT found 
 +            '--filter' => '(objectclass=user)', //This is the LDAP filter - be care if using delete-missing to include a filter for ALL your records
         ])->hourly();         ])->hourly();
  
Line 25: Line 26:
  
 ==== Windows Task Manager - Actions Tab ==== ==== Windows Task Manager - Actions Tab ====
-Program Script: "C:\Program Files\PHP\v7.3\php.exe"\\ +**Program Script:** "C:\Program Files\PHP\v7.3\php.exe"\\ 
-Arguments: C:\inetpub\laravel\demo1\artisan schedule:run\\+**Arguments:** C:\inetpub\laravel\demo1\artisan schedule:run\\
  
 {{:code:laravel:sheduledtask.png?400|}} {{:code:laravel:sheduledtask.png?400|}}
  
  
  • code/laravel/scheduler.1587742356.txt.gz
  • Last modified: 2020/04/24 16:32
  • by gerardorourke