Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

sh, shell

sh( 
[ t_command ] 
) 
=> t / nil 

shell( 
[ t_command ] 
) 
=> t / nil

Description

Starts the UNIX Bourne shell sh as a child process to execute a command string.

If the sh function is called with no arguments, an interactive UNIX shell is invoked that prompts you for UNIX command input (available only in nongraphic applications).

Arguments

t_command

Command string.

Value Returned

t

The exit status of executing the given shell command is 0.

nil

The exit status of executing the given shell command is not 0.

Examples

Removes the junk file from the /tmp directory and returns t if it is removed successfully.

shell("rm /tmp/junk")

Related Topics

Environment Functions

setShellEnvVar


Return to top
 ⠀
X