root/trunk/curo/s/activity/prepare.sh

Revision 272, 329 bytes (checked in by depesz, 3 years ago)

sh on solaris doesn't handle ~ in exec calls

  • Property svn:executable set to *
Line 
1 #!/usr/bin/env bash
2 fifo=~/.curo/s/activity/fifo
3 rm -f "$fifo"
4
5 mkfifo "$fifo"
6
7 display_sh="$HOME/.curo/s/activity/display.sh"
8
9 while true
10 do
11     echo "\\o ~/.curo/s/activity/query.1.out"
12     echo "\\i ~/.curo/s/activity/query.1.sql"
13     echo "\\o"
14     echo "\\! $display_sh"
15     sleep 1
16 done > "$fifo" 2>/dev/null < /dev/null &
Note: See TracBrowser for help on using the browser.