Running Jobs from Wget or Command Line

Last Updated: Jan 30, 2020
documentation for the dotCMS Content Management System
Deprecated

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.

On this page

×

We Dig Feedback

Selected excerpt:

×