How can I access files in ClearCase?

Advertisement

Guest

How can I access files in ClearCase?

Hi,

I want to access the files in ClearCase on Linux platform by WinSCP.

I tried to use command line "cleartool setview my_viewname", but it doesn't work.

Is there any resolvent?

thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: How can I access files in ClearCase?

I tried to use command line "cleartool setview my_viewname", but it doesn't work.
Any error message? Or what does not work? What protocol are you using? I guess you would have to switch to SCP to make this work.
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: How can I access files in ClearCase?

Retry: Any error message? Or what does not work?
_________________
Martin Prikryl

Reply with quote

Guest

Re: How can I access files in ClearCase?

martin wrote:

Retry: Any error message? Or what does not work?

Invoking the clearcase in the script as "call cleartool setview my_viewname", when this line is executed; after opening a new session following error is encountered:
"Host has not answered for more than 15 seconds. Still waiting..."

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: How can I access files in ClearCase?

That's probably because the command start new shell and WinSCP waits for it to complete. What never happens.
You may try following command, which may fool WinSCP to think that the command has finished. But it would work, only if your command does not output anything.
echo "WinSCP: this is end-of-file:0"; call cleartool setview my_viewname    
Also you need to use SCP, otherwise the command will have no effect.

Last edited by martin on 2017-03-06; edited 1 time in total

Reply with quote

Chandra
Guest

Re: How can I access files in ClearCase?

I Tried as you suggested. i still get the timeout kind of error.

Can you please expand what you meant by "Also your need to use SCP"?

martin wrote:

That's probably because the command start new shell and WinSCP waits for it to complete. What never happens.
You may try following command, which may fool WinSCP to think that the command has finished. But it would work, only if your command does not output anything.
echo "WinSCP: this is end-of-file:0"; call cleartool setview my_viewname    
Also your need to use SCP, otherwise the command will have no effect.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: How can I access files in ClearCase?

You need to use the SCP protocol, not the SFTP.

Though it won't help you the timeout. Post a log file.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum