When running Mathematica (v10) on my Raspberry Pi, I'd like to output an image file to a directory other than
/home/pi. I understand that letting Mathematica write files anywhere arbitrarily is a bad idea, but I'd like to be able to send it somewhere other than
Typically, if I want to write/move/copy a file somewhere I need the
sudo command, but that does not appear to be an option with
I assume the code should look like the following (to be sent to /dir1/dir2/dir3):
Export["/dir1/dir2/dir3/example.jpg", output, "jpg"]
but this returns an error:
Export::nodir: Directory /home/pi/dir1/dir2/dir3/ does not exist
Export:noopen: Cannot open /dir1/dir2/dir3/example.jpg.
What do I need to do to export my file to an arbitrary directory?