HP3000-L Archives

March 2000, 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:
Erik Vistica <[log in to unmask]>
Reply To:
Erik Vistica <[log in to unmask]>
Date:
Wed, 22 Mar 2000 12:20:45 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (53 lines)
I'm not quite clear on what the difficulty is. It sounds like you want
to see the '<' in the ECHO output. If so, you can escape the '<' with
'!'.
Like this:

> > #2\SYS\PUB:setvar line2 "run ftp.arpa.sys !< tmp1"
:ECHO !line2

run ftp.arpa.sys < tmp1


Mark Bixby wrote:
>
> Kevin Newman wrote:
> >
> > I'm trying to create a command file that does some re-trying when FTPing
> > a file to a host that sometimes has problems.  I have pulled out a
> > subset of the command that I am having a problem with.  It seems that I
> > should be able to get the redireciton in LINE2, but I cannot get it to
> > show.  Is there a way of doing this?
> >
> > #2\SYS\PUB:setvar retry 3
> > #2\SYS\PUB:echo exit > tmp1
> > #2\SYS\PUB:setvar line1 "while count < !retry"
> > #2\SYS\PUB:setvar line2 "run ftp.arpa.sys < tmp1"
> > #2\SYS\PUB:echo !line1
> > while count < 3
>
> This is the same as:
>
> echo while count < 3
>
> "3" is not a valid filename, so the CI apparently doesn't try to do
> redirection.
>
> > #2\SYS\PUB:echo !line2
> > run ftp.arpa.sys
>
> echo run ftp.arpa.sys < tmp1
>
> "tmp1" is a valid filename, and so if the echo command were to read any input,
> it would come from "tmp1".  So redirection is in effect here, and the "< tmp1"
> isn't echoed.
>
> I think you really meant to say:
>
> echo "!line2"
>
> But this echoes the quotes too.  It's not quickly obvious to me how to echo
> this without quotes and without redirection happening...
>
> - Mark B.

ATOM RSS1 RSS2