in reply to ClearCase Programming

The problem is not that the setview command hasn't completed, it's that it is running in a child process, and is not affecting the calling process at all. You need to arrange to have your perl script called from an environment where setview has already been done.

Replies are listed 'Best First'.
Re^2: ClearCase Programming
by Anonymous Monk on Jul 01, 2008 at 11:32 UTC
    I accept your view. But what i want is wait till the child process ends and then continue running the calling (parent process).
      Then you'll either want to use fork and waitpid or one of the many Fork modules on cpan that do that for you, such as Parallel::ForkManager.

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
      Using system() to execute the command does make the script wait until it's finished. Read it in the docs: system