qwkout
repin
nncp_handler
-]]
+
+Each command accepts different command-line arguments.]]
qb = {}
local function load_config ()
-- Create archive in outgoing
- os.execute(qb.zip .. " -rj " ..
- qb.path .. "/" .. qwk_filename ..
- " " .. work_dir)
+ os.execute(qb.zip .. " -rj " .. qwk_filename .. " " .. work_dir)
fs.rmdir(work_dir, true)
end
-- Ensure these point to zip and unzip on your system
qb.zip = "/usr/bin/zip"
qb.unzip = "/usr/bin/unzip"
+qb.nncp_file = "/usr/bin/nncp-file"
]])
cf:close()
-- Construct QWK packet
local out_file_name = os.tmpname()
+ fs.rmfile(out_file_name)
+ local out_file_name = out_file_name .. ".qwk"
+
qwk.build_qwk(user_name, out_file_name)
- os.execute(qb.nncp-file .. " " .. out_file_name ..
+ print(qb.nncp_file .. " " .. out_file_name .. " " ..
+ user_name .. ":" .. qb.bbsid .. ".QWK")
+ os.execute(qb.nncp_file .. " " .. out_file_name .. " " ..
user_name .. ":" .. qb.bbsid .. ".QWK")
fs.rmfile(out_file_name)