Skip to content
Advertisement

Tag: python

Get source file path of a running python script from process id

I have a process running in the background, a python one, with ps -ef I can see filename from running command : UID PID PPID … python ./filename.py How can I know where the file is located Answer pwdx < PID > gives full directory the process is running from. So, the full script would be Though, you can simplify

pyinstaller ImportError error – how to solve it?

I have installed pyinstaller in my Linux in order to create an executable to my Python script, which runs normaly with the command: However when I execute bellow command: I get the following error: What is wrong? I tried to install dis3: But I still get the same error. I uninstalled it … Installed again as recommended. I have set

crontab tee command doesn’t write stdout into txt file, instead clears it [python script] [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Cannot Install SRC – Linux

I am failing to install SRC in Linux Mint 19 via PIP. I have attempted to paste the output and failed horribly, I have had to double space everything, otherwise, it comes out as one long run-on sentence. Not sure how to paste a readable output of my Linux terminal here. Sorry….. Answer tries to install src from PyPI —

Obtaining IP from command ‘host’ executed inside python

I have this function to show me the 1st ip of a domain: But this only shows me the first ip. I’d like to show only the ip’s. The marker is for not having “has address” as shown below (imagine I input “reddit.com”: I want to show only the ips, not reddit.com has addressnor once the ip’s end, mail is

Advertisement