Problem executing python script placed in ~/bin folder
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Topics in this forum are automatically closed 6 months after creation.
Problem executing python script placed in ~/bin folder
I have a python script. i have changed it's permission by "chmod +x py_mem.py" . then i have symlinked it to ~/bin/pymem. Now though if i try "which pymem" i get "/home/user/bin/pymem", i can't run the script without absolute path "~/bin/pymem".
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Problem executing python script placed in ~/bin folder
What does
If it doesn't include
Finally where are you trying to launch the script from? If cron then that's a special case as cron runs in a barebones environment and you generally need to globally specify $PATH in the crontab or launch command via the full path.
$PATH
input into the terminal return?If it doesn't include
/home/<user>/bin
what does cat .profile
returnFinally where are you trying to launch the script from? If cron then that's a special case as cron runs in a barebones environment and you generally need to globally specify $PATH in the crontab or launch command via the full path.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.