Function

SMJobSubmit(_:_:_:_:)

Submits the given job to the specified domain.

Declaration

macOS
func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: AuthorizationRef!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool
Mac Catalyst
func SMJobSubmit(_ domain: CFString!, _ job: CFDictionary, _ auth: UnsafeMutableRawPointer!, _ outError: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

domain

The job's domain (e.g. kSMDomainSystemLaunchd).

job

A dictionary describing a job.

auth

An AuthorizationRef containing the kSMRightModifySystemDaemons right if the given domain is kSMDomainSystemLaunchd.

outError

An output reference to a CFErrorRef describing the specific error encountered while submitting the job dictionary, or NULL if no error occurred. It is the responsibility of the application to release the error reference. This argument may be NULL.

Return Value

true if the job was submitted successfully, otherwise false.

Discussion

SMJobSubmit submits the given job to the specified domain.

See Also

Examining Jobs

func SMCopyAllJobDictionaries(CFString!) -> Unmanaged<CFArray>!

Copy the job description dictionaries for all jobs in the given domain.

Deprecated
func SMJobCopyDictionary(CFString!, CFString) -> Unmanaged<CFDictionary>!

Copy the job description dictionary for the given job label.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software