[SOLVED]Problem with a Process writing on uSD

Hello
First of all, I would like to apologize for my english, I hope it's understandable.

I'm having some troubles trying to execute a python script on Linino called by a Process object in the arduino.
The process executes fine, completes all its commands, exit value = 0, but it doesn't write on the file in the uSD.
But when I execute the same script over ssh with the root user, it does write on the uSD.
I thought I had some permission issue, so I change the permissions to +r+w, and the owner from root to 1000 (the user that the DataLogger example wrote the test file).

The part of the script I use to write the file is:

f = open('errors.txt','a')
f.write(data_rcv)
f.write('\n')
f.close()

The uSD is 4Gb, with a Ext4.

What have I been doing wrong?

Thanks in advance for your time :slight_smile:

f = open('/mnt/sda1/errors.txt','a')

make sure errors.txt is exist.

ls /mnt/sda1/errors.txt

create if not exist.

touch /mnt/sda1/errors.txt

Thank you sonnyyu.

My problem was that I didn't write the whole direction to the file, so it was created in another folder.