WORKFLOW
Work with Files and Data on the Command Line Using the Wolfram Cloud
WolframScript can operate on files without a local kernel present using the Wolfram Cloud
Make a data file using a cloud kernel
Make a data file of 20 random coordinate pairs using a kernel that runs in the Wolfram Cloud:
![](Files/WorkWithFilesAndDataOnTheCommandLineUsingTheWolframCloud.en/1.png)
The resulting file looks like this:
![](Files/WorkWithFilesAndDataOnTheCommandLineUsingTheWolframCloud.en/2.png)
Make a WolframScript script to process the data
Create a script file called FindPath.wls that uses a cloud kernel to plot the shortest tour through the points:
![](Files/WorkWithFilesAndDataOnTheCommandLineUsingTheWolframCloud.en/3.png)
On Mac and Linux, set the script permissions to make it executable:
![](Files/WorkWithFilesAndDataOnTheCommandLineUsingTheWolframCloud.en/4.png)
Process the data using a cloud kernel
Run the script from the command line, giving the data file as input:
![](Files/WorkWithFilesAndDataOnTheCommandLineUsingTheWolframCloud.en/5.png)
View the result
Open the output file tour.png in a browser or other graphics program:
![](Files/WorkWithFilesAndDataOnTheCommandLineUsingTheWolframCloud.en/6.png)