GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing reference.wolfram.com — wolfram—Wolfram Documentation wolfram
NAME
SYNOPSIS
DESCRIPTION
OPTIONSLicensing Options
Startup Options
Execution Mode Options
Utility Options
DETAILSWolfram Language ScriptsIf the -script command-line option is given, the kernel evaluates commands from the In script mode, the kernel prints no banner and no In[] or Out[] labels, and generates all output in InputForm, with the PageWidth option effectively set to Infinity. In script mode, the standard input and output are not redirected, so that the input and output can be used in a pipe with other processes. In script mode, the kernel ignores the first line of the file if it starts with the characters "#!". Licensing OptionsIf a password file is specified using In The option Startup and ShutdownThe kernel will read the value of the environment variable Unless the Wolfram Language variable $IgnoreEOF is set to True, the kernel will exit when it receives an end-of-file character sequence. The kernel will always exit when given the command Quit. When The kernel will return a nonzero exit code if it cannot be started due to licensing or other problems. It will typically return a zero exit code upon termination, unless Exit[n] is used to return another value. When EXAMPLESInteractive OperationRun the Wolfram Language in an interactive REPL:
Exit an interactive kernel with a custom exit code:
Verify the exit code in a Unix-style shell:
Verify the exit code in Windows'
Code from a FileEvaluate Wolfram Language code from a file, with only explicitly printed expressions visible:
file.wls
Evaluate Wolfram Language code from a file, printing each output:
Omit the banner and in/out prompts, and format the results in InputForm:
Initialization on the Command LineUse the
By adding an explicit Exit[], the
Initialization from a FileAppend
Avoid loading any initialization files:
Use
ActivationPerform automatic activation using an activation key:
Verify the license, maximum number of processes and available processes (tab-separated):
Perform offline activation with an activation key and password:
Additional ExamplesCheck the version of the installation:
Check the value of $MachineID:
Print $MachineName and $MachineID, separated by tabs, as would go in a password file entry:
Allow the kernel to run using a different password file:
Start a kernel and create a WSTP link:
From another session, connect to the link, activate it and clear the input: link = LinkConnect["mvg8t_shm"];
LinkActivate[link];
LinkRead[link]Send an evaluation to the linked kernel and compare the result to the current kernel: LinkWrite[link, Unevaluated[$ProcessID]];
{$ProcessID, LinkRead[link]}Close the link: LinkClose[link]FILESUser initialization file locations:
Password file locations:
WOLFRAM LANGUAGE VARIABLES
ENVIRONMENT VARIABLES
See Also$Epilog $CommandLine $IgnoreEOF $BatchOutput $PasswordFile Programs: WolframScript WolframKernel WolframNB mathlm System Files: init.m Related GuidesHistoryIntroduced in 1988 (1.0) | Updated in 1991 (2.0) ▪ 1996 (3.0) ▪ 2003 (5.0) ▪ 2004 (5.1) ▪ 2010 (8.0) ▪ 2012 (9.0) ▪ 2014 (10.0) ▪ 2019 (12.0) ▪ 2020 (12.1) ▪ 2024 (14.1) | ||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |