Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!rochester!cornell!batcomputer!pyramid!csg From: csg@pyramid.pyramid.com (Carl S. Gutekunst) Newsgroups: comp.unix.questions Subject: Re: How to prevent low-grade uucp work during daytime? Message-ID: <4780@pyramid.pyramid.com> Date: Wed, 12-Aug-87 16:46:23 EDT Article-I.D.: pyramid.4780 Posted: Wed Aug 12 16:46:23 1987 Date-Received: Sat, 15-Aug-87 02:00:19 EDT References: <3572@cit-vax.Caltech.Edu> Reply-To: csg@pyramid.UUCP (Carl S. Gutekunst) Organization: Pyramid Technology Corp., Mountain View, CA Lines: 29 Keywords: uucico grade time-to-call restrictions In article <3572@cit-vax.Caltech.Edu> mangler@cit-vax.Caltech.Edu (System Mangler) writes: >How can I tell slave-mode uucico to defer low-grade work during >those hours? The intention of grading in 4.3BSD was to keep phone bills down, not to reduce machine load. Hence, if a machine calls you and isn't picky about grade, then everything goes. But you can do what you want: run the slave uucico from a shell script with the appropriate options. We do this for news all the time. Something like: nuucp:xyzzyxyzzyxyz:6:1:UUCP Login:/usr/lib/uucp:/usr/lib/uucp/uugraded where the file /usr/lib/uucp/uugraded contains #!/bin/sh exec /usr/lib/uucp/uucico -gc Of course, the script can be as ellaborate as you like, checking the time and so on. One DANGEROUS security hole: if you run a shell script like this, then make sure that the home directory for the login is *NOT* uucppublic. Otherwise you will have a world-writable directory from which the shell may look for a login startup script. (Actually, I believe 4.3BSD /bin/sh will not run .profile if it is invoked non-interactively as it is here. But /bin/csh definitely runs its .login and .cshrc scripts. And why take unnecessary chances?)