#!/bin/csh -f # pastelog_every_10_secs # ----------------------------------------------------------------------------- # Shell script to call pastelog every 10 seconds since cron only calls # things once per minute. Call this from cron once per minute, instead of # calling pastelog directly from cron. # ----------------------------------------------------------------------------- # Usage: No arguments # Assumptions: # Effects: # - Appends current contents of paste buffer to paste buffer log file # Notes: # Implementation Notes: # Portability Issues: # Revision History: # $Log$ # ------------------------------------------------------------------------------ # Call it 5 times, every 10 secs or so. Crom will call it once per minute. # Don't call the 6th time, since there may be some drift. Better to allow # up to 20 secs than to to get it running concurrently with itself, and # maybe accumulate lots of such processes from cron. # Note: Have to specify explicit "pastelog" path, or cron doesn't find it. $0:h/pastelog sleep 10 $0:h/pastelog sleep 10 $0:h/pastelog sleep 10 $0:h/pastelog sleep 10 $0:h/pastelog