root@feng-pc:~# mydan supervisor
SYNOPSIS
$0 --cmd ./myserver --log /tmp/mylog/path [--size 10000000 ] [--keep 5] [--name myprocname]
$0 --cmd ./myserver --log /tmp/mylog/path --http http://127.0.0.1:8080
$0 --cmd ./myserver --log /tmp/mylog/path --http http://127.0.0.1:8080 --check OK
--count 10
root@feng-pc:/opt/mydan/dan/tools# mydan supervisor --cmd ./foo.pl --log /tmp/log/foo
root@feng-pc:/opt/mydan/dan/tools# tail /tmp/log/foo/current
@400000005c21c83400000000 [START:1]
@400000005c21c83400000000 [STDOUT] 1545717802
@400000005c21c83500000000 [STDOUT] 1545717803
@400000005c21c83600000000 [STDOUT] 1545717804
@400000005c21c83700000000 [STDOUT] 1545717805
@400000005c21c83800000000 [STDOUT] 1545717806
root@feng-pc:~# tail /tmp/log/foo/current |mydan tai64nlocal
2018-12-23 14:04:51.000000000 [STDOUT] 1545717891
2018-12-23 14:04:52.000000000 [STDOUT] 1545717892
2018-12-23 14:04:53.000000000 [STDOUT] 1545717893
2018-12-23 14:04:54.000000000 [STDOUT] 1545717894
2018-12-23 14:04:55.000000000 [STDOUT] 1545717895
2018-12-23 14:04:56.000000000 [STDOUT] 1545717896
2018-12-23 14:04:57.000000000 [STDOUT] 1545717897