Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close Procomm LogFile gracefully

Status
Not open for further replies.

TheeFalcon

Technical User
Nov 30, 2007
3
US
I am trying to get the APC software to force ProComm to close the logfile gracefully. When the APC Software starts the shutdown, ProComm asks if you want to stop the script.
But alas! There was no writing of the screen data.
Is there a way besides to have frequent saving through the script to try to save it? Right now the script saves at 23:59.
Thanks
TheeFalcon
 
I believe you can add a when userexit command to your script to call a cleanup procedure that close your capture file before exiting. It would look something like this:

when userexist call my_procedure

(have this near the beginning of your script)

At the end of your script, you would want this procedure:

proc my_procedure
capture OFF (or replace with the appropriate command if not using a capture file)
exit
endproc

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top