Colleagues,
I am trying to embed dsmadmc commands in a korn shell running on AIX.
The example below is an illustration of what I am attempting to acheive.
Future scripts using the select command warrent the use of a line continuation capability for readability purposes.
filename = t1.ksh
-----------------------------------------------------------------------
#!/bin/ksh
#
#set -x
#
pw=cat `/usr/local/bin/tsm/.passwd`
/usr/bin/dsmadmc -id=admin -password=$pw query volume=A00002L3 -
format=detailed
-----------------------------------------------------------------------
When executing this simple script (./t1.ksh) the (-) line continuation causes the script to abend.
When executing this script without the (-), the script runs successfully however the second line (format=detailed) is ignored.
A suggestion made in an existing question within this forum said to subtitute a new line in place of the (-) character. This did not work either.
Can you shed some light on how to use line continuation for tsm commands within a korn shell?
If the use of korn shell programs is not the recommended way to handle scripting tsm commands, please suggest alternate solutions.
Thank-you ..... DeanY
I am trying to embed dsmadmc commands in a korn shell running on AIX.
The example below is an illustration of what I am attempting to acheive.
Future scripts using the select command warrent the use of a line continuation capability for readability purposes.
filename = t1.ksh
-----------------------------------------------------------------------
#!/bin/ksh
#
#set -x
#
pw=cat `/usr/local/bin/tsm/.passwd`
/usr/bin/dsmadmc -id=admin -password=$pw query volume=A00002L3 -
format=detailed
-----------------------------------------------------------------------
When executing this simple script (./t1.ksh) the (-) line continuation causes the script to abend.
When executing this script without the (-), the script runs successfully however the second line (format=detailed) is ignored.
A suggestion made in an existing question within this forum said to subtitute a new line in place of the (-) character. This did not work either.
Can you shed some light on how to use line continuation for tsm commands within a korn shell?
If the use of korn shell programs is not the recommended way to handle scripting tsm commands, please suggest alternate solutions.
Thank-you ..... DeanY