From owner-freebsd-questions Thu Mar 14 8:29:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id D495237B400 for ; Thu, 14 Mar 2002 08:29:26 -0800 (PST) Received: from hades.hell.gr (patr530-a117.otenet.gr [212.205.215.117]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g2EGTE0j020168; Thu, 14 Mar 2002 18:29:15 +0200 (EET) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g2EGT63Y000471; Thu, 14 Mar 2002 18:29:13 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g2EFJ9Rd030191; Thu, 14 Mar 2002 17:19:09 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Thu, 14 Mar 2002 17:19:08 +0200 From: Giorgos Keramidas To: Joe & Fhe Barbish Cc: Radhika Sambamurti , FBSDQ Subject: Re: Script to hangup ppp? Message-ID: <20020314151908.GA28899@hades.hell.gr> References: <20020314003211.11956.qmail@web9306.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-03-13 20:10, Joe & Fhe Barbish wrote: > Radhika Sambamurti wrote: > > > > kill -HUP `cat /var/run/tun0.pid` > > > > this should do it for you. > > No that does not work. > It does not like the 'cat /var/run/tun0.pid' part. Gives a message argument > should be jobs or process id. You used the wrong type of quotes. Pay careful attention to the ones Radhika suggested. You'll notice they are "backquotes", not the usual apostrophe-like quotes you used. They're those quotes that are left of "1" on US-style keyboards. See the difference, in the example below: $ echo hello hello $ cat 'echo hello' cat: echo hello: No such file or directory $ cat `echo hello` cat: hello: No such file or directory The second time, "echo hello" is executed as a command, and its output is substituted in its place. PS: Please do not top-post (i.e. write your replies on top of everything else, quoting the entire text of the original poster). Also set your mailer to quote the original posting in a more clear manner. I had to do a bit of editing to reply to your message, since your text was separated from the original post only by an -----Original Message----- line. Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message