Added a compilation of tricks.
authorlbatlle@npdl268.bpo.hp.com
Wed, 28 Mar 2007 18:57:54 +0200
changeset 57 ab48625beecb
parent 56 fe3e02c74b63
child 60 30283ac8f452
Added a compilation of tricks.
TRICKS
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TRICKS	Wed Mar 28 18:57:54 2007 +0200
@@ -0,0 +1,20 @@
+System wide queue
+-------------------------
+You can set the $USER variable to the same name in all 'ts' processes, and then
+they'll use the same socket for intercommunication. This means - single queue.
+You should be certain that any 'ts' can read/write to that socket, using
+chmod. The current socket naming is:
+  /tmp/socket-ts.$USER
+
+
+Be notified of a task finished
+-------------------------
+In X windows, inside bash, after submitting the task, I use:
+$ ( ts -w ; xmessage Finished! ) &
+
+
+Add a task to the queue, and receive its output by email (by Raul)
+-------------------------
+It only works if 'ts' outputs the jobid.
+$ id=$(ts sleep 10) && ts -w $id && ts -c $id | mail -s taskend $USER &
+