HP3000-L Archives

January 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Fri, 26 Jan 2001 15:03:15 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
"Simonsen, Larry" wrote:
>
> I tried this and received the error
> :xeq sh.hpbin.sys "-c 'kill 'head -n 1 /SENDMAIL/PUB/etc/sendmail.pid''"
> **** AMBIGUOUS USE OF QUOTES WITHIN INFO STRING (CERR 13)

You used the wrong quotes around the head statement.  Look closely below, and
you'll see that these are backtics:

> :xeq sh.hpbin.sys "-c 'kill `head -n 1 /SENDMAIL/PUB/etc/sendmail.pid`'"

An alternative less visually confusing syntax would be:

:xeq sh.hpbin.sys '-c "kill $(head -n 1 /SENDMAIL/PUB/etc/sendmail.pid)"'
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...

ATOM RSS1 RSS2