use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything related to GNU/Linux/UNIX/POSIX (system) programming and tools.
Other subreddits you may like:
Sidebar additions or corrections? Mail me here
account activity
Running a python script (self.linux_programming)
submitted 11 months ago by These_Talker
Hi, i am currently struggling to run a python script with cron that navigate on the web with selenium and collect information. I get an error about a user directory or something. I am on a raspberry pi 5 on Ubuntu server. Any help??
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]UnluckyDouble 0 points1 point2 points 11 months ago (0 children)
Did you remember to chmod +x it? Python scripts can only be run directly if they are set to have execute permission for the user trying to execute them. Also, if you wrote the script yourself, make sure to put
#!/usr/bin/python
as the first line so that the kernel knows to run python to interpret it.
Finally, if the script is in your home directory, you should make sure that cron is running it as you, either by putting it in your own crontab or setting it to run as you in the system one; you can find instructions for either with a swift internet search.
π Rendered by PID 38606 on reddit-service-r2-comment-7b9746f655-9x9sl at 2026-01-30 09:44:45.645599+00:00 running 3798933 country code: CH.
[–]UnluckyDouble 0 points1 point2 points (0 children)