HP3000-L Archives

August 2000, Week 1

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:
Barry Lake <[log in to unmask]>
Reply To:
Barry Lake <[log in to unmask]>
Date:
Wed, 2 Aug 2000 13:30:57 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
At 4:00 PM -0400 8/2/00, [log in to unmask] wrote:
>Is it possible to share variables between a shell script and a CI command
>file called from the shell script using callci? If so how? I have spent
>the past couple of hours looking for the answer to this.


Try something like this...


  :deletevar ci_@, shell_@
  :sh
  ######################################################################

                 MPE/iX Shell and Utilities (A.50.02)
      COPYRIGHT (c) Hewlett-Packard Company 1992, All Rights Reserved.

  ######################################################################


  /BARRY/PUB $ shell_var="some text"
  /BARRY/PUB $ echo $shell_var
  some text
  /BARRY/PUB $ callci setvar ci_var \"$shell_var\"
  /BARRY/PUB $ callci showvar ci_var
  CI_VAR = some text
  /BARRY/PUB $ exit
  :showvar ci_@
  CI_VAR = some text
  :


Barry Lake                                 [log in to unmask]
Allegro Consultants, Inc.                  www.allegro.com
(408)252-2330

ATOM RSS1 RSS2