The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Remove contents of directory, but not directory pdc Shell Programming and Scripting 9 04-09-2009 03:02 PM
Script to remove all empty files within the directory structure? cat123 Shell Programming and Scripting 5 06-05-2008 10:01 AM
wait for 5 seconds in shell script gopsman Shell Programming and Scripting 2 08-30-2007 06:47 AM
is there any way to excute script every N seconds? umen Shell Programming and Scripting 7 03-30-2006 05:06 AM
smitty, remove user, remove directory as well.. yls177 UNIX for Dummies Questions & Answers 2 11-11-2002 02:43 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-27-2008
tret tret is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 29
remove directory x seconds after script completes

Hi guys,

I am working with a script within a Mac OS X package installer. The package installer will run the bash script once the files have been copied/installed. I have a little trouble with the last line of my script causing the package installer to crash once in a while and I have narrowed it down to the installer looking for the folder that I am deleting.

What I would like to do is to have the last line run a sleep/rm -rf combo and have it disassociate itself from the script. This way the script completes, the installer completes and then x number of seconds later the actual rm command takes place and the package installer isn't any the wiser.

Is this possible?

Thanks,
Rob
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0