Skip to content
Advertisement

Tag: python-3.x

Crontab Entry Causing Unknown Command

The entry Is causing the following error: My script has the shebang at the top: I think the python3 path is correct: As suggested, I looked for a CR but none found: What should I try? Thanks Answer Make sure the end-of-line does not contains Carriage return, but only new line. If there’s carriage return, the characters is also considered

Root autentication on a Python program

I have the root password saved in a variable. How I can give the root authorization at my program? This can be an example: Answer It is impossible to do it in the way you try. Your program is already started under some non-root user and you cannot change it inside this program. You can spawn other process which will

How to run python 3 on Synology NAS

I’m a little new to linux and I’m having trouble running Python scripts on Synology NAS running on DSM 5.1 I installed a Python 3 module, but when I call I get How can I run python 3 ? Thanks Answer As suggested by Geotob the solution is simply calling python3

Infinite while not working with os.execvp

I am programming in python which involves me implementing a shell in Python in Linux. I am trying to run standard unix commands by using os.execvp(). I need to keep asking the user for commands so I have used an infinite while loop. However, the infinite while loop doesn’t work. I have tried searching online but they’re isn’t much available

Advertisement