A small, affordable computer with free resources to help people learn, make things, and have fun
https://forums.raspberrypi.com/
Code: Select all
pi@raspberrypi:~ $ wolfram
Mathematica 12.1.1 Kernel for Linux ARM (32-bit)
Copyright 1988-2020 Wolfram Research, Inc.
In[1]:= Run["! echo $PWD > file.txt"]
Out[1]= 256
In[2]:= FilePrint["file.txt"]
/home/pi
In[3]:= Quit[]
pi@raspberrypi:~ $
Code: Select all
pi@raspberrypi:~ $ wolfram
Mathematica 12.1.1 Kernel for Linux ARM (32-bit)
Copyright 1988-2020 Wolfram Research, Inc.
In[1]:= Range[4] * Range[0,3]
Out[1]= {0, 2, 6, 12}
In[2]:= Run["! bash"]
pi@raspberrypi:~ $ echo -e "Now your in the bash shell...\nuntil you exit it."
Now your in the bash shell...
until you exit it.
pi@raspberrypi:~ $ echo "You're still in the shell."
You're still in the shell.
pi@raspberrypi:~ $ echo "Now exit the shell."; exit
Now exit the shell.
exit
Out[2]= 256
In[3]:= Range[4] * Range[2,5]
Out[3]= {2, 6, 12, 20}
In[4]:= Quit[]
pi@raspberrypi:~ $