[comp.sys.next] uucp

cs4ed3ap@maccs.dcss.mcmaster.ca (Tyldesley A) (03/01/91)

Okay, I have worked my way through getting UUCP up and running and everything
is working fine. I have it configured to originate only (no call in). It polls
the server when I boot the machine and whenever a user sends mail.

The problem is with what should be the simplest part of the set up: having
cron poll the remote server ever hour on the half our. This is what I have
entered in my crontab file.

	30 * * * *  uucp uupoll maccs

I also have tried 

	43 * * * * uucp /usr/bin/uupoll maccs
	
	43 0-23 * * * root /usr/bin/uupoll maccs
	
None of the above seem to executed by cron. Everything else in my setup works fine. Uupoll maccs can be used from the command line no problem. Does anyone
see a problem with the above? 

Also, anyone know where to ftp nntp from (need it for News I ftped)? Preferably
compiled or edited for a next. Thanks for any help

Andrew
Nextmail: andrew%otter@maccs.dcss.mcmaster.ca
email: cs4ed3@maccs.dcss.mcmaster.ca

sparkie@picard.cs.wisc.edu (Mark J. Horn) (03/04/91)

In article <27CD8F65.29032@maccs.dcss.mcmaster.ca> cs4ed3ap@maccs.dcss.mcmaster.ca (Tyldesley     A) writes:

[ ... ]

>The problem is with what should be the simplest part of the set up: having
>cron poll the remote server ever hour on the half our. This is what I have
>entered in my crontab file.
>
>	30 * * * *  uucp uupoll maccs
>
>I also have tried 
>
>	43 * * * * uucp /usr/bin/uupoll maccs
>	
>	43 0-23 * * * root /usr/bin/uupoll maccs
>	
>None of the above seem to executed by cron. Everything else in my setup works fine. Uupoll maccs can be used from the command line no problem. Does anyone
>see a problem with the above? 

I do not own a NeXT (yet) but I think I know enough about crontabs to answer
this question.  All the crontab entries that I've ever used/examined generally
contains information of the form 
	<min> <hour> <day> <month> <weekday> <command>
(NeXT may have changed this, but I seriously doubt it)

You seem to have the first five fields correct, but your command is confusing.
Try running the command "uucp uupoll maccs" from the shell.  It won't work.
It will come back with "uucp: command not found"  If you check the cron error
file (which on my system is /usr/adm/cron), I'll bet a dime to a dollar that
you have a bunch of "command not found" errors in there.  What you probably
wanted was to run the command "uupoll maccs" as the user uucp.  Right?  If that
is the case, then you have to modify your command so that it uses su(1).

On my unix system (AT&T 3B1) the following crontab entries would do what you
wanted:
	30 * * * * su uucp -c "uupoll maccs"
	43 * * * * su uucp -c "/usr/bin/uupoll maccs"
	43 0-23 * * * su root -c "/usr/bin/uupoll maccs"

WARNING: Check your man pages for the proper use of su(1).

>Andrew
>Nextmail: andrew%otter@maccs.dcss.mcmaster.ca
>email: cs4ed3@maccs.dcss.mcmaster.ca

Hope I've been of some help.
- sparkie
-- 
 ___  ___  ___  ___  _  _  _  ___
/ __\| . \/ . \| . \| |/ /|_|| _ |	sparkie@picard.cs.wisc.edu
\__ \| __/|   || _ /|   < | || _[		 - or -
\___/|_|  |_|_||_|\\|_|\_\|_||___|	harier!sparkie@cs.wisc.edu

lacsap@plethora.media.mit.edu (Pascal Chesnais) (03/04/91)

In article <1991Mar3.235225.26205@daffy.cs.wisc.edu> sparkie@picard.cs.wisc.edu  
(Mark J. Horn) writes:
> In article <27CD8F65.29032@maccs.dcss.mcmaster.ca>  
cs4ed3ap@maccs.dcss.mcmaster.ca (Tyldesley     A) writes:
> 
> [ ... ]
> 
> >The problem is with what should be the simplest part of the set up: having
> >cron poll the remote server ever hour on the half our. This is what I have
> >entered in my crontab file.
> >
> >	30 * * * *  uucp uupoll maccs
> >
> >I also have tried 
> >
> >	43 * * * * uucp /usr/bin/uupoll maccs
> >	
> >	43 0-23 * * * root /usr/bin/uupoll maccs
> >	
> >None of the above seem to executed by cron. Everything else in my setup  
works fine. Uupoll maccs can be used from the command line no problem. Does  
anyone
> >see a problem with the above? 
> contains information of the form 
> 	<min> <hour> <day> <month> <weekday> <command>
> (NeXT may have changed this, but I seriously doubt it)

The crontab entries are different on a NeXT...  The above is wrong for
NeXT 2.0...

pasc

From the cron(8) man page
     The crontab files consist of lines of seven fields each.
     The fields are separated by spaces or tabs.  The first five
     are integer patterns to specify:

     + minute (0-59)
     + hour (0-23)
     + day of the month (1-31)
     + month of the year (1-12)
     + day of the week (1-7 with 1 = Monday)
             
     Each of these patterns may contain:
             
     + a number in the range above
     + two numbers separated by a minus meaning a range inclusive
     + a list of numbers separated by commas meaning any of the
       numbers
     + an asterisk meaning all legal values
             
     The sixth field is a user name: the command will be run with
     that user's uid and permissions.  The seventh field consists
     of all the text on a line following the sixth field, includ-
     ing spaces and tabs; this text is treated as a command which
     is executed by the Shell at the specified times.  A percent
     character (``%'') in this field is translated to a new-line
     character.
Pascal Chesnais, Research Specialist, Electronic Publishing Group
Media Laboratory, E15-351, 20 Ames Street, Cambridge, Ma, 02139 (617) 253-0311
email: lacsap@plethora.media.mit.edu (NeXT)

bennett@mp.cs.niu.edu (Scott Bennett) (03/05/91)

In article <1991Mar3.235225.26205@daffy.cs.wisc.edu> sparkie@picard.cs.wisc.edu (Mark J. Horn) writes:
>In article <27CD8F65.29032@maccs.dcss.mcmaster.ca> cs4ed3ap@maccs.dcss.mcmaster.ca (Tyldesley     A) writes:
>
>[ ... ]
>
>>The problem is with what should be the simplest part of the set up: having
>>cron poll the remote server ever hour on the half our. This is what I have
>>entered in my crontab file.
>>
>>	30 * * * *  uucp uupoll maccs
>>
>>I also have tried 
>>
>>	43 * * * * uucp /usr/bin/uupoll maccs
>>	
>>	43 0-23 * * * root /usr/bin/uupoll maccs
>>	
>>None of the above seem to executed by cron. Everything else in my setup works fine. Uupoll maccs can be used from the command line no problem. Does anyone
>>see a problem with the above? 
>
>I do not own a NeXT (yet) but I think I know enough about crontabs to answer
>this question.  All the crontab entries that I've ever used/examined generally
>contains information of the form 
>	<min> <hour> <day> <month> <weekday> <command>
>(NeXT may have changed this, but I seriously doubt it)

     That is correct.  NeXT did not change it.  Your misunderstanding is
due to your familiarity with the SysV cron and not the BSD cron.  The BSD
cron uses the form he showed.  It uses a loginid field preceding the
command.  The loginid field obviates the use of su(1) before the command.
Note also that the BSD su(1) differs substantially from the SysV su(1).
>
>  [text deleted  --SJB]
>
>>Andrew
>>Nextmail: andrew%otter@maccs.dcss.mcmaster.ca
>>email: cs4ed3@maccs.dcss.mcmaster.ca
>
>Hope I've been of some help.
>- sparkie
>-- 
> ___  ___  ___  ___  _  _  _  ___
>/ __\| . \/ . \| . \| |/ /|_|| _ |	sparkie@picard.cs.wisc.edu
>\__ \| __/|   || _ /|   < | || _[		 - or -
>\___/|_|  |_|_||_|\\|_|\_\|_||___|	harier!sparkie@cs.wisc.edu


                                  Scott Bennett, Comm. ASMELG, CFIAG
                                  Systems Programming
                                  Northern Illinois University
                                  DeKalb, Illinois 60115
**********************************************************************
* Internet:       bennett@cs.niu.edu                                 *
* BITNET:         A01SJB1@NIU                                        *
*--------------------------------------------------------------------*
*  "I, however, place economy among the first and most important     *
*  of republican virtues, and public debt as the greatest of the     *
*  dangers to be feared."  --Thomas Jefferson                        *
**********************************************************************

wjs@milton.u.washington.edu (William Jon Shipley) (03/05/91)

To possibly answer the original poster's question, it looks like your crontab
is ok (yours looks a lot like mine, which works).

However, I'm guessing you put that in /private/etc/crontab.local.  This
file previously didn't exist.  After you do this, you should do an

ln /private/etc/crontab.local /usr/lib/crontab.local

(check the man page, under FILES.)

I don't know if this will solve your problem, but it works for zog and me.

-william shipley

drin@nro.cs.athabascau.ca (Adrian Smith) (03/09/91)

I'd like to get uucp up on my slab, but there are a couple of
things holding me back:
 
      1) I've never used uucp before.
      2) I have no idea how to go about doing so.
      3) The documentation seems to be a bit lacking in the installation
         of uucp.
 
Can anyone point me in the direction of a good document explaining how to
correctly install and maintain uucp on a Station?
 
Thanks.

-drin

lacsap@plethora.media.mit.edu (Pascal Chesnais) (03/09/91)

In article <iPaiy1w163w@ersys.uucp> ersys!drin@nro.cs.athabascau.ca (Adrian  
Smith) writes:
> I'd like to get uucp up on my slab, but there are a couple of
> things holding me back:
> Can anyone point me in the direction of a good document explaining how to
> correctly install and maintain uucp on a Station?
The Network and System Administration manual covers this quite thoroughly
including sample chat script and modem conifgurations.  There are other
books that you can find to explain UUCP, probably as clear as NeXT's.

Every new Slab and Cube is shipped with this documentation in hardcopy
form.

pasc
Pascal Chesnais, Research Specialist, Electronic Publishing Group
Media Laboratory, E15-351, 20 Ames Street, Cambridge, Ma, 02139 (617) 253-0311
email: lacsap@plethora.media.mit.edu (NeXT)

ice@wang.com (Fredrik Nyman) (03/12/91)

lacsap@plethora.media.mit.edu (Pascal Chesnais) writes:

>In article <iPaiy1w163w@ersys.uucp> ersys!drin@nro.cs.athabascau.ca (Adrian  
>Smith) writes:
>> I'd like to get uucp up on my slab, but there are a couple of
>> things holding me back:
>> Can anyone point me in the direction of a good document explaining how to
>> correctly install and maintain uucp on a Station?
>The Network and System Administration manual covers this quite thoroughly
>including sample chat script and modem conifgurations.  There are other
>books that you can find to explain UUCP, probably as clear as NeXT's.

Also worth checking out: UUCP.tar.Z, available at several archive
sites (purdue, orst).

-- 
Fredrik Nyman		   <ice@wang.COM> [NeXT: ice@red-zinger.wang.COM]
Global Adaptation Center   BITNET:   <ice@drycas>, <ice@searn>
Wang Laboratories, Inc., M/S 019-490, One Industrial Ave., Lowell MA 01851, USA

drin@nro.cs.athabascau.ca (Adrian Smith) (03/14/91)

I've managed to get uucp set up following the directions in SysAdmin, but 
strange things are happening. My slab will call the remote site, grab 
packets, hang up, call back, do *SOME* kind of communicating (debug 
with uucico doesn't show anything), and then hang up again, The second 
time it hangs up, the files it grabbed are GONE!! They no longer exist 
anywhere on my drive. During the transfer, I can look in 
/private/spool/uucp/D. and they're there, but afterwards they seem to 
vanish. Anybody have any idea what's going on?
 
On the same tack, I'm presuming the files I end up with are uuencoded. 
When I finally get them to stay on my hd, I'm guessing I'll need some 
form of readnews-like program to view them. Can anyone tell me if this is 
correct, and if so, where I can ftp (hopefully binaries) from?
 
These questions may have been asked before, but I'm a absolute amateur 
with unix and NeXT... :-)
 
Thanks,

-drin