[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Fetchnews and Shell Script



Why do you think there will be any network traffic?  fetchnews -P
shouldn't generate any network traffic unless there are articles in
out.going that it needs to post.

On Sat, Mar 25, 2000 at 11:22:47AM -0800, Jeff Grossman wrote:
> I do not want network traffic if it is not needed.  I would prefer to check
> and see if there are any contents before I create any unnecessary network
> traffic.
> 
> Jeff
> -----
> Jeff Grossman (jeff@xxxxxxxxxxx)
> 
> 
> ----- Original Message -----
> From: "Walt Mankowski" <waltman@xxxxxxxxxx>
> To: <leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Sent: Saturday, March 25, 2000 11:11 AM
> Subject: Re: [leafnode-list] Fetchnews and Shell Script
> 
> 
> > Why bother with all that?  Just set up a cron job to run fetchnews -P
> > periodically.  It will just exit if there's nothing in out.going.
> >
> > Walt
> >
> > On Sat, Mar 25, 2000 at 10:06:25AM -0800, Jeff Grossman wrote:
> > > Hello,
> > >
> > > I would like to create a shell script, which will look into out.going
> every
> > > so often and see if there are any contents, and if there are, to run
> > > fetchnews -P.  I am not very knowledgable with shell scripts, and not
> sure
> > > how I would go about seeing if there are any contents in out.going.
> Could
> > > somebody help me?  I was thinking something like the following, but I
> think
> > > I am missing something:
> > >
> > > cd /var/spool/news/out.going
> > > if == ? then fetchnews -P
> > > fi
> > >
> > > Thanks,
> > > Jeff
> > >
> > > -----
> > > Jeff Grossman (jeff@xxxxxxxxxxx)
> > >
> > >
> > > --
> > > leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
> > > To unsubscribe, send mail with "unsubscribe" in the subject to the list
> >
> > --
> > leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
> > To unsubscribe, send mail with "unsubscribe" in the subject to the list
> >
> 
> 
> -- 
> leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
> To unsubscribe, send mail with "unsubscribe" in the subject to the list

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list