sadc output file creation behaviour when run from cron
Does anybody know why sadc (a front end for sar data collection) would append a "?" to the output file when run from cron? And more particularly, how should I correct it?
I have a RHEL 5.4 system which is doing this.
/usr/lib64/sa/sadc -d 10 6 /tmp/test
produces output file /tmp/test when run from the command line but when run from cron the file produced is called "/tmp/test?"
Normal system logging with sysstat, which uses the same sadc command (with a couple of other options, and none of the options -d, -F, -L affect this behaviour), produces output files /var/log/sa/sadd where "dd" is the day of the month. There does not seem to be any control over this within the sysstat start-up scripts, other than use of option "-" to generate standard output files, so I expect that the dd is being done within the code. Is this associated with the "?" ?.
Whatever is going on, the appended query seems to get added to everything as it still happens if I make the output file /tmp/test_$(/bin/date +\%d).
Is this a bug or am I missing something fundamental about cron?