add pathchecker script
This commit is contained in:
parent
7dcbd2b27b
commit
9f9b986ebd
1 changed files with 11 additions and 0 deletions
11
scripts/zabbix/pathchecker.py
Normal file
11
scripts/zabbix/pathchecker.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import os,sys
|
||||
|
||||
files = sys.argv[1:]
|
||||
if not files:
|
||||
print "you must specify a file"
|
||||
sys.exit(1)
|
||||
for file in files:
|
||||
if os.access(file, os.R_OK):
|
||||
print 1
|
||||
else:
|
||||
print 0
|
Loading…
Add table
Add a link
Reference in a new issue