Page 1 of 1

Posted: Wed Feb 18, 2009 7:52 am
by throbinson
Here's one way;

Code: Select all

cd $dshome
bin/uvsh<<EOF
LOGTO <Project Name>
<uv stuff>
...
QUIT
EOF

Posted: Wed Feb 18, 2009 8:32 am
by chulett
Well... "uv" or "uvsh"? Not quite the same thing. What kind of actions are you trying to script?

Posted: Wed Feb 18, 2009 3:23 pm
by ray.wurlod
The uv command is safer to use than uvsh or dssh in this context, because it takes automatic care of removing defunct printer shared memory segments (and has the authority to do so (provided permissions and ownership on the executables have been set correctly), which uvsh and dssh do not).

Don't forget to execute the dsenv script before attempting to invoke any of these commands. This could be made conditional, say, on testing one of the environment variables that is set in the dsenv script and not re-executing the script if it's not necessary to do so.

Posted: Wed Feb 18, 2009 3:39 pm
by chulett
I don't believe we really know the 'context' this intends to be used in... other than from the command line, it seems. [shrug]

Posted: Wed Feb 18, 2009 3:45 pm
by ray.wurlod
"From the command line" was my intention for "this context".