We have several unix scripts that move and/or ftp files. Sometimes the ftp fails. These scripts run in background. We would like to log what is happening during the script.
I know we could create logs by starting the script with > or >>. However, these scripts are being called by a program and we wouldn't like to change the program. Also with parameters, we may be close to the command line maximum size.
I tried the unix command 'SCRIPT filename', but it seems to cause the script to hang.
I also know that I could put an > or >> on each command line of the script. However, I was hoping for an easier and more elegant way to create the logs.
Any suggestions?
Thanks in advace.
I know we could create logs by starting the script with > or >>. However, these scripts are being called by a program and we wouldn't like to change the program. Also with parameters, we may be close to the command line maximum size.
I tried the unix command 'SCRIPT filename', but it seems to cause the script to hang.
I also know that I could put an > or >> on each command line of the script. However, I was hoping for an easier and more elegant way to create the logs.
Any suggestions?
Thanks in advace.