VTCPD debug output redirection

I have been experiementing with the vtcpd options. Specifically the -r (redirect debug output)
The requirement is that I need the vtcpd in debug mode, and I need the debug to be redirected to a daily log.
I have tried something like this:
vtcpd -s 240 -n test -l 1:10.33.152.109:9003 -f 64 -i 5:5 -p 61 -h 2:9 -m d -m A -X 2a -r /opt/home/peri/CALLME/vtcpd`date +'%y%m%d'`.log
Today's log gets created and debug output is logged perfectly. However, only this log file is created; tomorrow's log with tomorrow's date is not created, it keeps adding to the first file.
I have also tried using good old unix command >> like this:
vtcpd -s 240 -n test -l 1:10.33.152.109:9003 -f 64 -F 64 -i 5:5 -p 61 -h 2:9 -m d -m A -X 2a >> /opt/home/peri/CALLME/vtcpd`date +'%y%m%d'`.log
That would sometimes work for today, and sometimes wouldn't work at all. But at the end it is the same issue, only file is created, it is not created on a daily basis.
Do you have any suggestions to do this requirement?
I appreciate your replies

Popular White Paper On This Topic

ok,it looks like there's no way to do it with vtcpd. however, you can use the following way:
1. create script which copies log file and sets it empty:
cp vtcpd.log vtcpd`date %y%m%d`.log
/dev/nul >vtcpd.log
2. set this script for each midnight in cron
3. run vtcpd -s 240 -n test -l 1:10.33.152.109:9003 -f 64 -i 5:5 -p 61 -h 2:9 -m d -m A -X 2a -r /opt/home/peri/CALLME/vtcpd.log so that log is written into vtcpd.log
ps. I may be wrong in the cp command; however idea should be clear.