The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Set temp on Ubuntu to Celsius piltrafa Linux 0 02-15-2008 11:28 AM
No Password script should exit coolkid Shell Programming and Scripting 1 01-16-2008 11:04 AM
how to exit a script? filthymonk Shell Programming and Scripting 15 06-29-2007 03:27 AM
exit from script gefa Shell Programming and Scripting 1 01-23-2007 05:02 AM
rm files in a directory, looping, counting, then exit JporterFDX Shell Programming and Scripting 6 07-18-2002 05:56 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-05-2002
Registered User
 

Join Date: Apr 2002
Location: Chesterfield, UK
Posts: 124
Question Tidying up temp files on exit of script

Hi

I believe there is a method to remove all temporary files when a KSH script terminates (either expectedly or unexpectedly).

I think is some sort of subroutine you can create that runs when the script exits. Can anyone help me with this please?

Many thanks
Helen
Forum Sponsor
  #2  
Old 09-05-2002
Registered User
 

Join Date: Feb 2002
Location: Bradford, UK
Posts: 70
You need to use the trap command

see www.shelldorado.com for a good explanation of this.
  #3  
Old 09-11-2002
Registered User
 

Join Date: Apr 2002
Location: Chesterfield, UK
Posts: 124
Thumbs up

Thanks for your help Kevin
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0