Skip to Content Skip to Menu

Execute CB Auto Action command from operating system shell

  • llinty
  • llinty
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
9 years 6 months ago #262317 by llinty
Hi,

is it possible to execute a specific Auto Action (without any trigger) by using its ID from a shell script? I would lie to start it on a scheduled basis from the linux crontab as an example.
Thanks in advance for your help!

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 6 months ago - 9 years 6 months ago #262396 by krileon
Yes, you can fire a CB Auto Actions from CRON. Edit your CB Auto Actions and under the Global tab at the bottom will be its direct URL. Internal General and Internal Users URLs can be found in CB > Plugin Management > CB Auto Actions > Parameters. They are formatted as follows.

Action:
index.php?option=com_comprofiler&view=pluginclass&plugin=cbautoactions&action=action&actions=ACTION_ID&format=raw

General:
index.php?option=com_comprofiler&view=pluginclass&plugin=cbautoactions&action=general&token=ACCESS_TOKEN&format=raw

Users:
index.php?option=com_comprofiler&view=pluginclass&plugin=cbautoactions&action=users&token=ACCESS_TOKEN&format=raw

The Action URL can also be supplied &users=COMMA_LIST_OF_USER_IDS to fire the action for specific users.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 9 years 6 months ago by krileon.
The following user(s) said Thank You: llinty

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum