Search code examples
clearcaseparamiko

Findmerge graphical using paramiko


I have a script on a remote clearcase server which I execute using paramiko invoke_shell.The script contains a cleartool findmerge command graphical but the graphical window never opens though I used x11 forwarding. It waits forever.I even added the checkout comments for the merge. I want the graphical window to be opened.


Solution

  • It depends how you did setup your X-forwarding: see this thread for example:

    1. Launch Exceed
    2. Launch Putty
      • In the putty configuration window, select Connection, then SSH, and then X11 from the left side menus.
      • On the right side, select the checkbox for Enable X11 forwarding and set the X display location to "localhost:0" .
      • In the putty configuration window, select Session from the left side.
        Enter the hostname of a system to connect to Select the SSH protocol
        Save settings by selecting the Save button on the right.
      • Invoke session by double-clicking on hostname
    3. from the server, run "export DISPLAY=windows ip:0"
    4. You should be able to run any X-based tool or application
      e.g. clearprojexp &

    The OP Srikar Veeramallu mentions in the comments:

    I am in a dynamic view set using cleartool setview

    That explains why it "waits forever". A setview will create a sub-shell, which might not benefit from the same X11 forwarding as the main shell.
    See "Python and ClearCase setview" for more details.

    The workaround is to use the full path of the view.