$k. ExternalCommandJob

new ExternalCommandJob()

Represents ae external command job

Extends

Methods

(static) cancelSchedule(name)

Cancel a job schedule

Parameters:
NameTypeDescription
namestring

The schedule name

Version
  • Experimental feature, might be removed at any time
Since
  • 5.5.0

(static) schedule(name, interval, user, command, jobArgumentsopt, timeoutopt)

Add a job schedule

Parameters:
NameTypeAttributesDescription
namestring

The schedule name

intervalnumber

The interval in minutes

usernil

The user

commandstring

The command

jobArgumentsstring<optional>

The arguments

timeoutnumber<optional>

The timeout

Version
  • Experimental feature, might be removed at any time
Since
  • 5.5.0

insert()

Add the job to the job queue

Overrides

setCommand(commandString)

Set the external command line to be executed.

Parameters:
NameTypeDescription
commandStringstring

Name of the command to call

setPriority(priorityNumber)

Sets the priority of the job. Default priority is 100. The lower the number the higher the priority.

Parameters:
NameTypeDescription
priorityNumberinteger

Priority

Inherited From

setTimeout(seconds)

Set the timeout [seconds] for external command execution. Default value is 60 seconds.

Parameters:
NameTypeDescription
secondsinteger