From 74451f4977ed4ab79f1ca7e2f6023f88cd9d5f49 Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 28 Dec 2019 03:49:40 +1000 Subject: Refactor the executers into an actual class type thingy. --- apt-panopticon.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index e54e553..a97a974 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -1065,8 +1065,9 @@ else local adt = fadt:read('*l') fadt:close() if (nil ~= adt) and APT.checkFile(adt) then - os.execute('{ mkdir -p ' .. adt:sub(1, 18) .. ' && ionice -c3 nice -n 19' .. - ' tar -c --xz ' .. adt .. ' -f ' .. adt:sub(1, 18) .. '/' .. adt .. '.tar.xz && rm -fr ' .. adt .. ' 2>/dev/null; } &') + APT.exe('mkdir -p ' .. adt:sub(1, 18)) + :And():Nice('tar -c --xz ' .. adt .. ' -f ' .. adt:sub(1, 18) .. '/' .. adt .. '.tar.xz') + :And('rm -fr ' .. adt):noErr():fork() end local dt = os.date('!%F-%H-%M') local fodt = io.popen('TZ="GMT" date -r results/stamp +%F-%H-%M 2>/dev/null', 'r') -- cgit v1.1