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:
Lee Gunter <[log in to unmask]>
Reply To:
Lee Gunter <[log in to unmask]>
Date:
Wed, 22 Mar 2000 11:59:32 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (68 lines)
If you preface the "<" in the setvar statement with an exclamation mark (!), the
echo will correctly display the variable, line2.
     :setvar line2 "run ftp.arpa.sys !< tmp1"
     :echo line2
     run ftp.arpa.sys < tmp1
----
Lee Gunter                    The Regence Group
Supervisor, TRG HP/MPE Systems     503.375.4498
----
Opinions expressed are solely mine.





From: Mark Bixby <[log in to unmask]> on 03/22/2000 10:33 AM

Please respond to Mark Bixby <[log in to unmask]>


To:   [log in to unmask]
cc:    (bcc: Lee Gunter/BCBSO/TBG)

Subject:  Re: [HP3000-L] Command file woes




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