ScheduleCommand

Schedule a command to run inside the war room at a future time (once or reoccurring)

javascript · Common Scripts

Details

IDScheduleCommand
Languagejavascript
From Version5.0.0
TagsUtility

README

Schedules a command to run inside the War Room at a future time. Can be once or reoccurring.

Script Data


Name Description
Script Type javascript
Tags Utility
Cortex XSOAR Version 5.0.0

Used In


This script is used in the following playbooks and scripts.

  • Schedule Task and Poll

Inputs


Argument Name Description
command The command to schedule.
cron The scheduled time to run. Uses UTC (Coordinated Universal Time).
endDate When should we end the schedule. Will be only relevant if times is not provided. Optional. Format is ‘Mon, 02 Jan 2006 15:04:05 MST’
times The number of times to run. Optional.
scheduledEntryGuid The GUID of the scheduled entry that runs the polling command.

Outputs


There are no outputs for this script.

commonfields:
  id: ScheduleCommand
  version: -1
name: ScheduleCommand
script: ''
type: javascript
tags:
- Utility
comment: "Schedule a command to run inside the war room at a future time (once or\
  \ reoccurring)"
system: true
args:
- name: command
  required: true
  default: true
  description: The command to schedule
- name: cron
  required: true
  description: The scheduled time to run
- name: endDate
  description: When should we end the schedule. Will be only relevant if times is
    not provided. Optional. Format is 'Mon, 02 Jan 2006 15:04:05 MST'
- name: times
  description: The number of times to run. Optional.
- name: scheduledEntryGuid
  description: The GUID of the scheduled entry that runs the polling command.
scripttarget: 0
dependson: {}
timeout: 0s
fromversion: 5.0.0