Overwrite file by scheduler task
Posted: 06 Feb 2018, 14:42
Hi,
I have an issue with a scheduler task here:
I am using the scheduler task 'product export', which works fine now.
I get a file, which contains the expected data. Unfortunately the data is being appended to the existing file.
Is there any way to force the script to overwrite the file?
My secondbest idea would be to delete the file a few minutes before it is being written. That'd be okay in my workflow but it is not really clean and beautyful.
Thank you, regards
Christian
I have an issue with a scheduler task here:
I am using the scheduler task 'product export', which works fine now.
I get a file, which contains the expected data. Unfortunately the data is being appended to the existing file.
Is there any way to force the script to overwrite the file?
My secondbest idea would be to delete the file a few minutes before it is being written. That'd be okay in my workflow but it is not really clean and beautyful.
Thank you, regards
Christian