ILCattivo
ADSM.ORG Senior Member
I am trying to find a way to output some 'SHOW' commands to files on a regular basis to diagnose a problem?
I thought this would be easy using an admin scheduled script, but not so..
If, for example, I attempt to update a script line with the following..
update script <script_name> "SHOW DEADLOCK > /home/proinst1/show_deadlock.out w=y" line=10
.. in order to pipe the output to a file it expects to have a closed quote directly after the SHOW DEADLOCK cmd, thus by doing that it omits the rest of the cmd within the script line for the schedule to run daily..??
so it end up looking like..
Name Line Number Command
<script_name> 10 SHOW DEADLOCK
No good for the nest time it runs..??
Manually entering the whole cmd within dsmadmc doesn't require such quoting!
Have I missed something here ? Or is there another way of achieving this maybe?
Thanks
I thought this would be easy using an admin scheduled script, but not so..
If, for example, I attempt to update a script line with the following..
update script <script_name> "SHOW DEADLOCK > /home/proinst1/show_deadlock.out w=y" line=10
.. in order to pipe the output to a file it expects to have a closed quote directly after the SHOW DEADLOCK cmd, thus by doing that it omits the rest of the cmd within the script line for the schedule to run daily..??
so it end up looking like..
Name Line Number Command
<script_name> 10 SHOW DEADLOCK
No good for the nest time it runs..??
Manually entering the whole cmd within dsmadmc doesn't require such quoting!
Have I missed something here ? Or is there another way of achieving this maybe?
Thanks