Limit an evaluation using timeout: $ wolframscript -code "Do Pause, Reverse the string on each line of an input file, writing the result to another file using cmd.exe on Windows: > wolframscript -code StringReverse -linewise file2 Reverse the string on each line of an input file, writing the result to another file in a Unix-style shell: $ wolframscript -code 'StringReverse' -linewise file2 Saving connection data.ĭisconnect from the cloud, clearing connection information: $ wolframscript -disconnect Provide credentials without using a prompt: $ wolframscript -username -password XXXXXX Success. Sign in to a different cloud account: $ wolframscript -authenticate Enter WolframID: Saving connection data. Get the code for an API from the cloud, but run the API locally: $ wolframscript -api -local -args x=1 y=2 3 Additional Examples Run a cloud API: $ wolframscript -api -args x=1 y=2 3 Run the Wolfram Language in an interactive REPL using a running WSTPServer: $ wolframscript -wstpserver Run the Wolfram Language in an interactive REPL: $ wolframscript Wolfram Language 13.3.0 for Microsoft Windows (64-bit)Ĭopyright 1988-2023 Wolfram Research, Inc. file.wls "New York" London Quantity Interactive Operation Take code from a local file, but run it in the cloud: $ wolframscript -cloud -file test.wl 12345 Script FilesĪ file set up to execute Wolfram Language code locally:įile.wls #!/usr/bin/env wolframscript -function -signature City City If a running WSTPServer is available on the network, evaluate the Wolfram Language code 2+2 in that WSTPServer: $ wolframscript -wstpserver -code 2+2 4Įvaluate Wolfram Language code locally, escaping input for a Unix-style shell: $ wolframscript -code 'StringReverse' ollehĮvaluate Wolfram Language code locally, escaping input for the Windows cmd.exe shell: > wolframscript -code StringReverse ollehĮvaluate code and put the results in a file: $ wolframscript -code "Graphics3D]" -format PNG > file.png Code from FileĮvaluate Wolfram Language code from a file, returning the last result generated: $ wolframscript -file test.wl 12345 Evaluate the Wolfram Language code 2+2 on a local Wolfram Engine: $ wolframscript -code 2+2 4Įvaluate the Wolfram Language code 2+2 in the Wolfram Cloud, prompting for authentication as needed: $ wolframscript -cloud -code 2+2 4
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |