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 > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Scheduling bi-weekly through cron LPT UNIX for Advanced & Expert Users 5 02-20-2009 11:45 AM
cron scheduling? megh HP-UX 1 08-19-2008 02:27 PM
Problem with scheduling a shell script on cygwin using cron shash UNIX for Dummies Questions & Answers 4 08-09-2007 06:08 PM
scheduling tasks with cron alikun UNIX for Dummies Questions & Answers 4 03-21-2007 04:32 PM
cron job scheduling shihabvk UNIX for Advanced & Expert Users 1 08-22-2005 10:36 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #8 (permalink)  
Old 09-30-2008
wempy's Avatar
wempy wempy is offline
Registered User
  
 

Join Date: Jun 2006
Location: Harpenden, UK
Posts: 205
try running something like this every thursday (you'll have to have a seperate entry for monday, I don't think the default Bourne shell that cron uses has a case/esac statement):

Code:
* * * * 4 FLAGFILE=/var/tmp/FlagFileNameThatIsUnique; [ -f $FLAGFILE ] && rm $FLAGFILE || (/path/to/script/to/be/run; touch $FLAGFILE)
ensure that that is all on one line in the crontab file. You may want to test it's logic using the shell that cron uses which is usually /bin/sh.
Sponsored Links
Closed Thread

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 05:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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