How can we handle file operation in scripts. I have written a script that run ok otherwise however the "Cat" operation leaves a process open on the box. Command is like
1) what ever out put you need to append to file you can redirect also
as
print $0 >> "${LASTFILENAME}"
2)otherwise i think you can add some lines to kill the file writting process by grep for the process id for the filename and kill the process at the end of all process...
But this need to after checking all process which gave during the ps -ef
i think after execting the script it will automatically end up....