PDA

View Full Version : Python script file (*.py) on USB drive



Resistent
December 9th, 2013, 06:25 PM
I have a Python script program on the harddrive. Executing works, program starts. OK


http://loerincz.eu/ubuntu/Screenshot from 2013-12-09 18:15:52.png


Copying the same program to an USB stick, Execution don't work. --> Why ?
(but I also did
chmod +x keryx



.. That's in the LXTerminal 0.1.11 of Lubuntu. I don't know yet why colors are different handled...
must not because keryx is not executeable.. the AUTHORS and COPYING for example are also not green on the USB drive)


http://loerincz.eu/ubuntu/Screenshot from 2013-12-09 18:17:44.png


thx for your answers

steeldriver
December 9th, 2013, 06:30 PM
Probably because the USB drive is formated with a filesystem (FAT / NTFS etc.) that doesn't support Unix-style permission bits. You should still be able to execute it by specifying the python interpreter on the command line i.e.


python keryx