I think it might work better with >> /log_file.
I suspect with > /log_file each line of output will overwrite the last.
I think you'll also need to touch (create) the log_file before you begin.
You might want to add to your script to touch the file and include the date and time in the filename.
Give it a try and see what works.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.