> >> I could not find any definitive answer in the manual and couldn't > >> find it right away when looking at the source. > >> > >> Also is there any timeframe of when (or even if) the format of the > >> timestamp will be user configurable? I saw some comments in lib/ > >> btime.c about it and I for one would find this very handy. > > > > This is an ISO output, so, if you are using perl, you can convert > > this very > > easily (you can try Date::ParseDate) > > The issue I was having was with perl's Getopt::Long. The current > format has a space in it and getopt was only seeing the date portion > of the timestamp (and leaving the time in ARGV. I have worked around > it but it lead to quite a bit of head scratching. (my workaround was > to manually pop the time out of ARGV and append it to the value given > by getopt. I tried putting quotes around the %s in the command but > that didn't work.
It works at home... RunBeforeJob = "/usr/bin/test '%s' = '2007-02-20 09:37:42'" BeforeJob: run command "/usr/bin/test '2007-02-20 09:37:42' = '2007-02-20 09:37:42'" => ok If i try this in the shell (without quote) /usr/bin/test 2007-02-20 09:37:42 = '2007-02-20 09:37:42' /usr/bin/test: argument surnuméraire `09:37:42' Bye ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
