$Linked

$Linked

is True if the Wolfram Language kernel is being run through WSTP.

Details

  • $Linked is True when the Wolfram System is being run with a front end.
  • $Linked is typically False when the Wolfram System is being run with a textbased interface.

Examples

Basic Examples  (1)

Test whether the Wolfram Language kernel is being run through WSTP:

In[1]:=
Click for copyable input
Out[1]=

$CommandLine shows that the kernel was called in WSTP mode:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

See Also

$CommandLine  $BatchInput  $BatchOutput  $Notebooks

Introduced in 1991
(2.0)