Shell command dosent work

Hello,
I have a python script which uploads a .txt file from my sd.
when I log in with ssh and run the command

python /mnt/sda1/Data/upload.py

it is uploading the file and I can see it in my server,

but when I try to run this command with arduino it doesn’t work.
This is my code.
Any ideas?

#include <FileIO.h>
#include <Process.h>
#include <Bridge.h>

void setup() {
  // Initialize the Bridge and the Serial
  Bridge.begin();
  Serial.begin(9600);
  FileSystem.begin();

  while (!Serial); // wait for Serial port to connect.
  Serial.println("Filesystem datalogger\n");
}


void loop () {
  // make a string that start with a timestamp for assembling the data to log:
  String dataString;
  Process p;
  // read three sensors and append to the string:
  for (int analogPin = 0; analogPin < 2; analogPin++) {
    int sensor = analogRead(analogPin);
    dataString += String(sensor);
    if (analogPin < 2) {
      dataString += ",";  // separate the values with a comma
    }
  }

  // open the file.
  File dataFile = FileSystem.open("/mnt/sda1/Data/data.txt", FILE_APPEND);

  // if the file is available, write to it:
  if (dataFile) {
    
    dataFile.println(dataString);
    dataFile.close(); //close the file
    p.runShellCommand("python /mnt/sda1/Data/upload.py"); //use the upload script to upload it
    while (p.running()); //wait until upload done

    // print to the serial port too:
    Serial.println(dataString);
  }
  // if the file isn't open, pop up an error:
  else {
    Serial.println("error opening datalog.txt");
  }
  delay(2500);
}

Can you share upload.py too?

yes this is the code nothing hard.

import ftplib

    session = ftplib.FTP('MyServer','username,'pass')
    f = open('data.txt','rb')                  
    session.storbinary('STOR data.txt', f)     
    f.close()                                   
    session.quit()

for today I made a python script and use it at the server.

But running scripts with bridge is important for me I tried other commands like 'rm file.txt' ' mkdir test' etc and they worked.

    f = open('data.txt','rb')

This is it: use absolute paths

[quote author=Federico Fissore link=topic=242430.msg1739077#msg1739077 date=1401087775]

    f = open('data.txt','rb')

This is it: use absolute paths [/quote]

And yes, that was the problem, thank you one more time XD