Script only runs partially when run as cron -


I wrote a script that uses a program to create a CSV from an iCOBOL flat file. Unfortunately, the program only adds to the end of the file and does not overwrite it. So I added a line in script to delete the first file. When I run it manually, everything works fine when I run a cron, so it seems that just delete the file and then stop, did I forget something? Please see your code below.

  #! / Bin / bash cd / home / directory rm -f file.csv icreorg- o flatfile file.csv  

is an ICROO program that is generating CSV.

Thank you!


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -