rolfa / calendar-search

read/search entries in Jolla calendar db (Sailfish OS)
MIT License
3 stars 0 forks source link

Execute python script. #1

Closed ghost closed 7 years ago

ghost commented 7 years ago

In the sailfish OS terminal i activate sudo, install sudo and install nano, then created a calendar-search.py file and copied it into the root directory.

When i enter:

List all entries: sudo calendar-search.py "%"

it says bash: List: command not found.

Can you briefly describe how to run the python script in the terminal? Am i required to install a linux python distro on the sailfish phone? Which one?

smyru commented 7 years ago

Try: sudo python calendar-search.py "%"

rolfa commented 7 years ago
ghost commented 7 years ago

@rolfa @smyru thanks for the feedback, i had to copy the .py file into /home/nemo , i didnt know what my python home directory was and with the error below i figured it out. [root@localhost nemo]# chmod +x calendar-search.py chmod: cannot access `calendar-search.py': No such file or directory

ghost commented 7 years ago

now when running it returns hits properly! thanks