Running Jobs from Wget or Command Line - Documentation topics on: crontab,quartz,running jobs from wget or command line,.

Running Jobs from Wget or Command Line

The search servlet may be called from crontab using the following command:

wget --no-check-certificate --wait=5 "http://${server_name}/c/portal_public/login?my_account_cmd=auth&my_account_login=${user_login}&password=${password}" "http://${server_name}/c/portal/protected" "http://${server_name}/c/portal/j_security_check?j_username=${user_id}&j_password=${encrypted_password}" "http://${server_name}/dotScheduledJobs?clazz=com.dotmarketing.quartz.job.BuildSearchThread"

Note: Make sure to replace the following variables within the command with appropriate values:

  • ${server_name}
  • ${user_login}
  • ${password}
  • ${user_id}
  • ${encrypted_password}

This command logs in and executes the dotScheduledJobs, which executes the BuildSearchThread quartz job.