ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/clcommon/
Upload File :
Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/clcommon/cllog.pyo

�
b=0Yc@sGddlZddlZddlZddlZddd��YZdS(i����Nt
ClAuditLogcBs,eZd�Zdd�Zed��ZRS(cCs
||_dS(N(t_log_file_name(tselft
log_file_name((s2/usr/lib/python2.7/site-packages/clcommon/cllog.pyt__init__stcCs�tjj�}tj�}|j|�}y�t|jd�}tj|tj	tj
B�|j|jd�d|dt
|�dt
tjd�d|d�|j�Wnttfk
r�nXdS(	Ntas%Y.%m.%d %H:%M:%Ss: Parent process: s (PID: s	): Args: it s
(tdatetimetnowtostgetppidt_get_process_nametopenRtfcntltlockftLOCK_EXtLOCK_NBtwritetstrftimetstrtsystargvtclosetIOErrortOSError(Rtmsgtdt_nowtparent_proc_idt	proc_nametaudit_log_file((s2/usr/lib/python2.7/site-packages/clcommon/cllog.pytinfo_log_writesGcCsfd}yRtd|d�}|j�jd�djdd�jdd�}|j�WnnX|S(	s\
		Get process name by pid
		:param pid: PID for get process name
		:return: process name
		s	<Unknown>s
/proc/%s/stattrRit(Rt)(R
treadtsplittreplaceR(tpidtnametf((s2/usr/lib/python2.7/site-packages/clcommon/cllog.pyRs1(t__name__t
__module__RRtstaticmethodR(((s2/usr/lib/python2.7/site-packages/clcommon/cllog.pyRs	((RR
RRR(((s2/usr/lib/python2.7/site-packages/clcommon/cllog.pyt<module>s

Zerion Mini Shell 1.0