The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
logout script common for both Mac and Linux? harsha10 UNIX for Advanced & Expert Users 0 06-27-2008 02:17 PM
run a script at logout harsha10 UNIX for Dummies Questions & Answers 0 06-22-2008 08:01 AM
set schedule to run a script at background while logout happyv Shell Programming and Scripting 1 01-24-2007 01:17 AM
Login and logout script jhansrod UNIX for Dummies Questions & Answers 1 06-06-2005 06:54 AM
logout/shutdown script ropers UNIX for Dummies Questions & Answers 1 08-02-2002 02:05 PM

 
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 3 Weeks Ago
AGGreenLinux AGGreenLinux is online now
Registered User
  
 

Join Date: Oct 2009
Posts: 5
Logout script - delete a file

Good evening you scripting guru's!

I have the following script to delete a file on logout of a Mac :
Code:
find  . –name com.apple.sidebarlists.plist –exec  rm  -f {} \;
It works fine in terminal and when logging out. However, it takes forever to run the script at logout...A minute and a half.

Is there a way to just run the command and targeting the current directory it is contained in? What would the syntax be to search the directory Library/Preferences?

Thanks,
AG

Last edited by pludi; 3 Weeks Ago at 12:47 PM.. Reason: code tags, please...
 

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 01:24 PM.


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