ADSM-L

UNIX Shell for archives

1995-09-15 11:49:32
Subject: UNIX Shell for archives
From: Johanna Steper <jks02 AT HEALTH.STATE.NY DOT US>
Date: Fri, 15 Sep 1995 11:49:32 EDT
I am forwarding this question from a user who is trying to use UNIX bourne
shells to do archives.


For example, the following script:

!#/bin/sh
echo "dsmc query archive -password=$PWORD \"\/tmp\/\*\" "
dsmc query archive -password=$PWORD \"\/tmp\/\*\"
exit 0

# Yields this output:

dsmc query archive -password=xxxxxxx "/tmp/*"
ANS4095I No files matching search criteria were found

If I cut and paste the output of the echo, which should be identical
to what was passed to adstar, the command runs correctly:
         Size  Archive Date - Time   File - Expires on - Description
         ----  -------------------   -------------------------------
   85,473,727  08/15/1995 10:16:53   /tmp/bcsd.dump.Z 12/31/2022
  580,971,816  08/15/1995 12:51:52   /tmp/bhe.dump.Z 12/31/2022
  109,836,140  08/14/1995 15:27:41   /tmp/export.dump.Z 08/13/1996
  109,831,843  08/16/1995 14:36:12   /tmp/export.dump.Z 08/15/1996

Furthermore, the script does run successfully if no wild cards are in the file
 description.

What is the trick to getting wildcards passed to adstar from a script?

* Johanna Steper
* Data Communications Specialist, BHNSM
* New York State Department of Health
<Prev in Thread] Current Thread [Next in Thread>