projects
/
cloudstore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dea23b
)
test Gearman API
author
Dobrica Pavlinusic
<dpavlin@rsync1>
Tue, 29 Nov 2011 22:58:37 +0000
(23:58 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rsync1>
Tue, 29 Nov 2011 22:58:37 +0000
(23:58 +0100)
test-gearman.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/test-gearman.sh
b/test-gearman.sh
new file mode 100755
(executable)
index 0000000..
01eee6e
--- /dev/null
+++ b/
test-gearman.sh
@@ -0,0
+1,13
@@
+#!/bin/sh -xe
+
+#echo 'dpavlin@gmail.com password 100M' | gearman -f create_user -n
+
+sudo -u u2001 sh -cx "ps ax > ~u2001/foo.txt"
+
+echo '~u2001/foo.txt#~u2002/dir with space/file with space' | gearman -f send_file -n
+
+echo '~u2002/dir with space/file with space' | gearman -f delete -n
+
+echo u2001 | gearman -f zfs_userquota -n
+echo u2001 | gearman -f zfs_userused -n
+echo u2001 | gearman -f zfs_userspace -n