going back to your original question. when exec'ing new processes there
are various flavors of exec, including one that uses your environment.
Which made me wonder which flavor is PV using? I wrote a little pvsc to
test this out(attached). Apparently PV does use the exec that includes
your environment. So if you want to use the ssh that's in your path,
don't give the path in your pvsc, in the example you gave change it to
<File default="ssh"/>
duh! (directed at myself)
I hope this discovery doesn't derail our discussion because the other
features about being able to get information back from the server side
we are discussing would be useful.
On 04/10/2015 01:09 PM, Angelini, Richard C (Rick) CIV USARMY ARL (US)
wrote:
Question about the default_servers.pvsc file…..
I have this in my host profile:
<Server name=“My System" resource="csrc://127.0.0.1">
<CommandStartup>
<Options>
<Option name="SSHLOC" label="Local SSH Command" save="true">
<File default="/usr/local/bin/ssh"/>
</Option>
So, when the GUI pops up, the user has an opportunity to change the
path to ssh. But, rather than hard-coding the default value, or
presenting blank field and have the user put in the correct path, is
it possible to query the user’s environment and find `which ssh` and
substitute in that value??
________________________________
Rick Angelini
USArmy Research Laboratory
CISD/HPC Architectures Team
Phone: 410-278-6266
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
<Servers>
<Server name="unix_test_my_paths" resource="csrc://localhost:11111">
<CommandStartup>
<Command exec="xterm" timeout="0" delay="0">
<Arguments>
<Argument value="-T"/>
<Argument value=""test"/>
<Argument value="paths""/>
<Argument value="-e"/>
<Argument value="bash"/>
<Argument value="-c"/>
<Argument value=""echo"/>
<Argument value="PATH=$PATH"/>
<Argument value="&&"/>
<Argument value="echo"/>
<Argument value="&&"/>
<Argument value="echo"/>
<Argument value="which"/>
<Argument value="ssh=`which"/>
<Argument value="ssh`"/>
<Argument value="&&"/>
<Argument value="echo"/>
<Argument value="which"/>
<Argument value="xterm=`which"/>
<Argument value="xterm`"/>
<Argument value="&&"/>
<Argument value="sleep"/>
<Argument value="3000""/>
</Arguments>
</Command>
</CommandStartup>
</Server>
</Servers>
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview