Previous Topic: setProcExitCode--Set AutoShell Exit Code (Function)Next Topic: typeName--Get the Type Name of an Expression (Function)


shellType--Query AutoShell Type (Function)

This function is used to determine if a script is currently being executed inside a manager AutoShell or a client AutoShell. The client AutoShell does not provide all the functionality of the manager AutoShell (for example, no remote execution). shellType() can be used to verify that a script is being executed inside the intended AutoShell version.

The function has the following syntax:

shellType()

The function returns a string indicating the type of AutoShell which is currently active:

Example

Verify AutoShell type and quit when running inside a client shell:

if(shellType()!="manager")
{
    ? "This script requires AutoShell manager!"
    quit
}

See also:

platform--Query Operating System Type (Function)