Use the time in a script?

Kartik Saligrama Subbarao subbarao at phoenix.Princeton.EDU
Fri Sep 28 09:26:35 AEST 1990


In article <14183 at hydra.gatech.EDU> ce1zzes at 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 at silvertone.Princeton.EDU (NeXT mail)       -|	
SUBBARAO at PUCC.BITNET			          - Bitnet



More information about the Comp.unix.questions mailing list