HP3000-L Archives

February 2005, 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:
Paul Christidis <[log in to unmask]>
Reply To:
[log in to unmask][log in to unmask], 23 Feb 2005 09:01:34 -0600713_us-ascii Go back to the old firewall!!

:-)

Ray Shahan

> -----Original Message-----
> From: HP-3000 Systems Discussion [SMTP:[log in to unmask]] On Behalf Of KENT WALLACE
> Sent: Tuesday, February 22, 2005 6:11 PM
> To: [log in to unmask]
> Subject: [HP3000-L] FTP and the fire wall
>
> We recently changed our firewall server. I changed the IP address in NMMGR and cleared the old mappings in NETTOOL.NET. I had the response center check my configuration.
>
> I am getting slow transfer rate outside the new firewall.
>
> Any suggestions?
> Kent Wallace
>
> * To join/leave the list, search archives, [...]49_23Feb200509:01:[log in to unmask]
Date:
Tue, 22 Feb 2005 19:34:30 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (54 lines)
Hi Greg,

The command:
:setvar a SETVAR(b, 30+hpminute+(60*hphour))+SETVAR(newh,(b/60)mod
24)+SETVAR(newm,(b mod 60))

is equivalent to:
:setvar b 30+hpminute+(60*hphour)
:setvar newh (b/60) mod 24
:setvar newm b mod 60

I just took advantage of how CI variables are evaluated (order wise) and
combined the above three statements into a single command using the
'SETVAR' function.  So after the first 'setvar' function is evaluated,
variable 'b' is set to the number of elapsed minutes since midnight plus
30.  Then the second 'setvar' function computes the number of hours (using
variable 'b') and the third 'setvar' function computes the number of 'left
over' minutes.
.
While variable 'a' is superfluous, the reduction of the number of
statements makes the single statement execute about 20% faster.

Regards
Paul Christidis


"Greg Stigers" <[log in to unmask]> wrote on 02/22/2005 06:05:27 PM:

> Paul Christidis wrote:
> > Try the following:
> > :setvar a SETVAR(b, 30+hpminute+(60*hphour))+SETVAR(newh,(b/60)mod
> > 24)+SETVAR(newm,(b mod 60)
>
> Thanks. That's pretty much what I was looking for. Basically, we have a
job
> that reschedules itself every half hour, until it tests and detects the
hour
> at which it stops. So:
> SETVAR NEXT
"![((30+HPMINUTE+(60*HPHOUR))/60)]:![((30+HPMINUTE+(60*HPHOUR))
> MOD 60)]"
> does what I need, unless I want to just make the equation the target of
> STREAM; AT=. It occurs to me that this is little different from just
issuing
> STREAM; IN=30.
>
> Now, do you care to post an explanation of just how this works? ;-)
>
> Greg Stigers
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2