Re: Can you help with "kill"?

From: Jeff Halper <squid@dont-contact.us>
Date: Sun, 15 Jun 1997 13:31:37 -0700 (PDT)

I solved this silly problem! I needed to use the BACKQUOTE character
(ASCII 096) and I used the regular quote character!

Jeff Halper
Internet Hotline
408/881-1000
http://www.ihot.com
mailto:jeff@ihot.com
On Sun, 15 Jun 1997, Jeff Halper wrote:

>
>
> >
> > From the command line,
> > /bin/kill -USR1 `/bin/cat /usr/local/squid/logs/squid.pid`
> > works perfectly.
> >
> > I cannot get it to work from cron.
> >
> >
> > I tried a simple experiment to troubleshoot - I used a text editor - (I
> > use joe) and mada a 1-line file with the line above. I made the file
> > executable.
> >
> > when I run it, I get this:
> >
> > [root@proxy /bin]# squidlog
> > kill: can't find process "/bin/cat /usr/local/squid/logs/squid.pid"
> >
> > Which is the same message I get from cron
> >
> > I obviously am making a real simple error, but do not see it.
> >
> > Got any ideas? Thanks!
> >
> >
> > Jeff Halper
> > Internet Hotline
> > 408/881-1000
> > http://www.ihot.com
> > mailto:jeff@ihot.com
> > On Sun, 15 Jun 1997, A.R. Cache Op wrote:
> >
> > > On Sat, 14 Jun 1997, Jeff Halper wrote:
> > >
> > > > I'm not sure how to manage these logs - I expected them to "rotate" but I
> > > > obviously have missed a step somewhere cause these logs are ever
> > > > increasing.
> > >
> > > You need to term the squid process with USR1 as the paramater,
> > > I do this at 0 UTC each day via a cronjob
> > >
> > > /bin/kill -USR1 `/bin/cat /usr/local/squid/logs/squid.pid`
> > >
> > > It will move the log file to one named with .0, next time you do
> > > it, .1, etc...
> > >
> > > 'C' ya ...
> > >
> > > A.R. Internet, Sydney, Australia. Modem : (02) 9809 0999 Voice 9809-3148
> > > Internet - SLIP/PPP Accounts $25/$35 a Month or $1.88/$2.50 per hour.
> > > FULL Internet connection. (ftp, irc, telnet, www). No Setup Fee.
> > > Web Page http://www.ar.com.au Telnet to the BBS telnet://bbs.ar.com.au
> > >
> > >
> >
>
Received on Sun Jun 15 1997 - 13:35:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:32 MST