Path: utzoo!attcan!uunet!nih-csl!lhc!adm!cmcl2!yale!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!wuarchive!udel!princeton!phoenix!subbarao From: subbarao@phoenix.Princeton.EDU (Kartik Saligrama Subbarao) Newsgroups: comp.unix.questions Subject: Re: Use the time in a script? Message-ID: <2888@idunno.Princeton.EDU> Date: 27 Sep 90 23:26:35 GMT References: <14183@hydra.gatech.EDU> Sender: news@idunno.Princeton.EDU Organization: Princeton University, Princeton, New Jersey Lines: 24 In article <14183@hydra.gatech.EDU> ce1zzes@prism.gatech.EDU (Eric Sheppard) writes: >I would like to make sure that a script or program is not executed during >a certain period of every hour. Is there an elegant method to achieve this, >short of an additional C program? > >Eric How 'bout this: #! /bin/csh -f mv filename filename.dontusenow sleep 3000 mv filename.dontusenow filename # If more is required, then perhaps a chmod 000 filename, or a message printed when the # file is executed? -Kartik (I need a new .signature -- any suggestions?) subbarao@{phoenix or gauguin}.Princeton.EDU -|Internet kartik@silvertone.Princeton.EDU (NeXT mail) -| SUBBARAO@PUCC.BITNET - Bitnet