<?xml version="1.0" encoding="windows-1252"?>
<node id="995504" title="Re^3: How to execute windows dos command using perl and how to login to another windows machine and execute dos command in that" created="2012-09-25 04:02:25" updated="2012-09-25 04:02:25">
<type id="11">
note</type>
<author id="936121">
Divakar</author>
<data>
<field name="doctext">
thanks for the help. now i can able to execute. but i face some issues. any idea.

&lt;code&gt;
C:\&gt;psexec \\vm-ntdivakar2 cleartool mount -all
&lt;/code&gt;

it returned error code.

&lt;code&gt;
\ui is already mounted.
\wpg is already mounted.
cleartool exited on vm-ntdivakar2 with error code 1.
&lt;/code&gt;

So i got full pathname from the remote machine.

&lt;code&gt;
C:\&gt;psexec \\vm-ntdivakar2 which cleartool

PsExec v1.98 - Execute processes remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com


C:\Program Files (x86)\Rational\ClearCase\Bin/cleartool.exe
which exited on vm-ntdivakar2 with error code 0.
&lt;/code&gt;

Then executed. but still it is returning error code. 

&lt;code&gt;
C:\&gt;psexec \\vm-ntdivakar2 "C:\Program Files (x86)\Rational\ClearCase\Bin/cleartool.exe" mount -all

\ui is already mounted.
\wpg is already mounted.
C:\Program Files (x86)\Rational\ClearCase\Bin/cleartool.exe exited on vm-ntdivakar2 with error code 1.
&lt;/code&gt;</field>
<field name="root_node">
994251</field>
<field name="parent_node">
994267</field>
</data>
</node>
