mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-22 12:35:13 +00:00
wrap the cats
This commit is contained in:
parent
f6457090af
commit
c537676e92
8
tomb
8
tomb
@ -2720,8 +2720,8 @@ list_processes() {
|
|||||||
for pnum in ${(f)"$(_sudo lsof -t +D $tombmount)"}; do
|
for pnum in ${(f)"$(_sudo lsof -t +D $tombmount)"}; do
|
||||||
found=$(($found + 1))
|
found=$(($found + 1))
|
||||||
_verbose "process found: $pnum"
|
_verbose "process found: $pnum"
|
||||||
puid=`cat /proc/${pnum}/loginuid`
|
puid=$(_cat /proc/${pnum}/loginuid)
|
||||||
pcmd=`cat /proc/${pnum}/cmdline`
|
pcmd=$(_cat /proc/${pnum}/cmdline)
|
||||||
powner=$(getent passwd $puid)
|
powner=$(getent passwd $puid)
|
||||||
powner=${powner[(ws@:@)1]}
|
powner=${powner[(ws@:@)1]}
|
||||||
_verbose "process found: $pnum $pcmd ($powner)"
|
_verbose "process found: $pnum $pcmd ($powner)"
|
||||||
@ -2762,8 +2762,8 @@ slam_tomb() {
|
|||||||
${tombname} ${tombmount}
|
${tombname} ${tombmount}
|
||||||
# iterate through all processes running in mounted tombs
|
# iterate through all processes running in mounted tombs
|
||||||
for pnum in ${(f)"$(_sudo lsof -t +D $tombmount)"}; do
|
for pnum in ${(f)"$(_sudo lsof -t +D $tombmount)"}; do
|
||||||
puid=`cat /proc/${pnum}/loginuid`
|
puid=$(_cat /proc/${pnum}/loginuid)
|
||||||
pcmd=`cat /proc/${pnum}/cmdline`
|
pcmd=$(_cat /proc/${pnum}/cmdline)
|
||||||
powner=$(getent passwd $puid)
|
powner=$(getent passwd $puid)
|
||||||
powner=${powner[(ws@:@)1]}
|
powner=${powner[(ws@:@)1]}
|
||||||
_verbose "process found: $pnum $pcmd ($powner)"
|
_verbose "process found: $pnum $pcmd ($powner)"
|
||||||
|
Loading…
Reference in New Issue
Block a user