Skip to main content

Thread: Python running as a process in Ubuntu?


hi, apologize if ridiculous question, but:

when running:

ps ax | grep "python", see....

1632 ? s 0:00 python /usr/share/system-config-printer/applet.py
1873 ? s 0:00 /usr/bin/python /usr/sbin/aptd
---------------------------------------------------------------

simple question, not problem, why python running process in background? essential os? appears if printer dependent on it? link cups? know looks obvious, little enlightenment help. process runs after reboot. in advance.

the python interpreter running programs listed after name python, in first case it's applet related printer configuration, , in second case, it's aptd (a part of package management system, apt http://en.wikipedia.org/wiki/advanced_packaging_tool).

critical thing python language, , python interpreter program executes code written in python. many linux programs , system tools written in python , executed using command: "python [insert path program]", or, if programmer had reason so, may specify exact location of python interpreter using "/usr/bin/python [program path]". in ubuntu these equivalent. show in ps "python [program path]" or "/usr/bin/python [program path]". putting "python" or "/usr/bin/python" in command tells os interpreter use. there lots of interpreted languages, bash, ksh, tcl, , more. run tcl code may use command "tcl [program name]" or "/usr/bin/tcl [program name]".

in case of 2 programs seeing, not think malicious , restarted system after reboot.

if see program don't can terminate using pid (process identification) along command "kill". example, if have firefox running , freezes, search using ps , issue command "kill [insert firefox pid]" end process. type "man kill" terminal more information. useful 1 "killall", watch out 1 terminates processes based on name (eg "killall firefox") , can terminate stuff make have hard reboot (or issue reisub command...google it).


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Python running as a process in Ubuntu?


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues