HP3000-L Archives

July 2003, Week 2

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:
John Clogg <[log in to unmask]>
Reply To:
John Clogg <[log in to unmask]>
Date:
Wed, 9 Jul 2003 09:57:36 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (53 lines)
Rather than using STDIN redirection to "answer" the password prompt, eliminate the prompt by imbedding the password in the jobstream and saving it to a temporary file:

 !ECHO T JOB2.G2.ACCT2   >EDTCMD
 !ECHO C "UNAME" TO "UNAME/!USERPWD" IN 1  >>EDTCMD
 !ECHO K $NEWPASS,UNN   >>EDTCMD
 !ECHO E   >>EDTCMD
 !RUN EDITOR.PUB.SYS  <EDTCMD
 !STREAM $OLDPASS

Note that this is unnecessary if you own Security/3000; it already has this functionality built into it.  

-----Original Message-----
From: Friedrich Harasleben [mailto:[log in to unmask]]
Sent: Tuesday, July 08, 2003 11:47 PM
To: [log in to unmask]
Subject: stream job across ACCOUNT bounderies


 Hi

I once more need the wisdom of the list.

I need to stream a job about account bounderies, but I do not want to
specify the PWDs in the jobs.

SO lets say:
job1.g1.acct1
  stream job2.g2.acct2

As there is no PWD in job2, job1 is prompted for the PWD. I do have
access to the correct PWD within a database in acct1 and I do have a
program wich read this PWD and set a variable USERPWD, within the job.

But whatever I tried led to an "incorrect PWD" error.

like
!QUICK INFO="AUTO=GETPWD.QKPROG LINEREAD TERM=HP700/92-48"
CPL
!SHOWVAR
!echo !USERPWD > tmp
!STREAM JOB2.G2.ACCOUNT2 < tmp
!EOJ

How can I do this?
TIA
Friedrich

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

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

ATOM RSS1 RSS2