wrap the cats

This commit is contained in:
Jaromil 2017-12-11 13:41:52 +01:00
parent f6457090af
commit c537676e92

8
tomb
View File

@ -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)"