Cron CSV output - same name wanted rather than time stamp

Moderator: crythias

Locked
kmdot
Znuny newbie
Posts: 68
Joined: 16 Dec 2010, 18:46
Znuny Version: 3

Cron CSV output - same name wanted rather than time stamp

Post by kmdot »

Title says it all

I have a cron job that produces a CSV each and every hour, I want the name of the CSV to stay the same. Any ideas how?

Thanks
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Cron CSV output - same name wanted rather than time stam

Post by jojo »

you need to change bin/otrs.GenerateStats.pl assuming that the file is generated is a statistic and you are using 3.0.x
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
kmdot
Znuny newbie
Posts: 68
Joined: 16 Dec 2010, 18:46
Znuny Version: 3

Re: Cron CSV output - same name wanted rather than time stam

Post by kmdot »

Hi

you assume right.

What do i need to change in that files?

thanks
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Cron CSV output - same name wanted rather than time stam

Post by jojo »

search for the place where the name of the file is generated in bin/otrs.GenerateStats.pl and change it to your needs.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked