blob: 78829a412f64a5bd5bdcb7f255126fd09f9f3893 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env ruby
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
require 'dtas/unix_client'
c = DTAS::UNIXClient.new
ARGV.each do |path|
# Unix paths are encoding agnostic
path = File.expand_path(path.b)
res = c.req_ok(%W(enq #{path}))
puts "#{path} #{res}"
end
|