Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2002 17:19:08 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Joe & Fhe Barbish <barbish@a1poweruser.com>
Cc:        Radhika Sambamurti <radhika_narendran@yahoo.com>, FBSDQ <questions@freebsd.org>
Subject:   Re: Script to hangup ppp?
Message-ID:  <20020314151908.GA28899@hades.hell.gr>
In-Reply-To: <LPBBIGIAAKKEOEJOLEGOEELFCKAA.barbish@a1poweruser.com>
References:  <20020314003211.11956.qmail@web9306.mail.yahoo.com> <LPBBIGIAAKKEOEJOLEGOEELFCKAA.barbish@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020314151908.GA28899>