Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9032109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:53:58+00:00 2026-06-16T07:53:58+00:00

Question The cleartool documentation mentions a Single command mode and an Interactive mode. Single

  • 0

Question

The cleartool documentation mentions a “Single command mode” and an “Interactive mode”. Single command mode lets you run a single command non-interactively. Interactive mode lets you run multiple commands within an interactive session?

I need to run multiple commands from a script using the same session. More specifically, I need to run a cd command to switch to a view directory so I can run find -avobs. I can’t use the single command mode, because the working directory is lost between each invocation of cleartool.

Is it possible to write a script to interact using using the interactive mode, or otherwise run multiple commands in the same session from a script?


Note – I have considered running cd from within the batch script, instead of from within cleartool. However, I want to use the syntax cd \\view\<view-tag>, but when I try to run this from cmd.exe, I get an error:

CMD does not support UNC paths as current directories.

And even if I do find a way to solve this without multiple commands in a single session, I’m still interested in whether it is possible in general.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:53:59+00:00Added an answer on June 16, 2026 at 7:53 am

    You can use cd in a bash script with cleartool command (Single command mode).

    In Windows, a dynamic view would be accessed with

    cd m:\MyDynamicView
    

    After that, any cleartool command would be executed in the context of that directory (dynamic view)

    Same for a snapshot view.

    cd c:\path\to\root\snapshotview
    

    The UNC path is reserved for the view storage (which must be accessible for any client).
    It is not for the view root directory.

    See this answer as an example of cleartool commands used after a cd: they can be used in a script without problem.

    Note that you have to start the view first (if it is a dynamic view): see this answer to see a concrete example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Question What is the most efficient way of calling multiple commands from a Java
Question: What PowerShell regex pattern will return an output like Bash's string command? I
Question I would like to be able to use a single regex (if possible)
question : can we made groupby to multiple fields in LINQ Currently - i
Question Is it possible to stop a Message Driven Bean (programmatically), so that it
Question context: let say that there is some really important row in config/locales/en.yml that
Question from Object-Oriented JavaScript book: Imagine Array() doesn't exist and the array literal notation
QUESTION: What am I missing or doing wrong? I'm trying to migrate fully functional
Question is already been asked in title. Here is a code: (function($){ var filter
Question in title pretty much sums it up. I have some resource object defined

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.