ADSM-L

Re: Include dsmadmc command in a Korn Script

2000-11-16 18:03:47
Subject: Re: Include dsmadmc command in a Korn Script
From: Daniel Swan-TM <Daniel.Swan AT TELUS DOT COM>
Date: Thu, 16 Nov 2000 15:06:20 -0800
An imperfect way is to have another file elsewhere contain the passwords,
and have your korn shell script read the file.

$pass=tail -1 /var/tmp/dsmaccess
$user=head -1 /var/tmp/dsmaccess

dsmadmc -id=$user -pa=$pass




> -----Original Message-----
> From: Ruth Robertson [SMTP:rrobert AT COXNET DOT ORG]
> Sent: Thursday, November 16, 2000 3:58 PM
> To:   ADSM-L AT VM.MARIST DOT EDU
> Subject:      Include dsmadmc command in a Korn Script
>
> All:
> I'm new to the listserv, and ADSM, but not AIX.
> Question: how do I include a dsmadmc command (a select query) in one of my
> Korn shell scripts without advertising a name & password by including it
> in
> the script, i.e., "dsmadmc -id=xxxxxx -pa=xxxxxx select ...."?
> Thanks!
> Ruth Robertson
> rrobert AT coxnet DOT org