Lock or unlock a directory and its content recursively

Martin

Using ClearCase, how can I lock (or unlock) a directory and its complete content recursively?

(It seems to me that neither the GUI nor cleartool supports recursive (un)locking, so probably I would have to write a batch file recursing over all the content of a directory. Maybe I overlooked something?)

VonC

Since it does not seem possible to use cleartool unlock recursively, one solution could be to combine it to a cleartool find command:

# Windows syntax:
cleartool find adirectory -exec "cleartool unlock \"%CLEARCASE_PN%\""
# Unix syntax:
cleartool find adirectory -exec 'cleartool unlock "$CLEARCASE_PN"'

If you execute it in the path where adirectory is to be unlocked, it will do so for adirectory and all its content.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Copy recursively a directory excluding a subdirectory and ITS CONTENT

From Java

Get the size of a directory (not its content)

From Dev

puppet copy directory but not its content

From Dev

Go goroutine lock and unlock

From Dev

Mutex lock/unlock order

From Dev

Java Lock - Unlock

From Dev

How can I copy a hidden directory recursively and preserving its permissions?

From Dev

How to recursively download a web page and its linked content from a URL?

From Dev

How to remove a directory without removing its content?

From Dev

Add specific directory and its content to Universal target

From Dev

delete directory object and its content in powershell

From Dev

How to remove a directory without removing its content?

From Dev

archive a directory and its content to a zip archive

From Dev

Add specific directory and its content to Universal target

From Dev

Robocopy copy directory instead of just its content

From Dev

Getting all the filenames (not content) recursively from an http directory

From Dev

Java lock and unlock on different thread

From Dev

Python & Couchbase Lock/Unlock mechanism

From Dev

Lock screen will not unlock in Ubuntu 20.04

From Dev

DirectSoundBuffer8::Lock/Unlock

From Dev

How to lock and unlock keyboard in Ubuntu ?

From Dev

Can not unlock from and lock to Launcher

From Dev

Java unlock ReadWrite lock safely?

From Dev

Lock/unlock a variable cell(s)

From Dev

How to control mutex lock and unlock?

From Dev

Redirecting the content of a directory, but not the directory itself as well as some of its subdirectories and files

From Dev

How can I move files by type recursively from a directory and its sub-directories to another directory?

From Dev

How can I move files by type recursively from a directory and its sub-directories to another directory?

From Dev

Recursively copy file to a directory all its sub-directory in command prompt

Related Related

  1. 1

    Copy recursively a directory excluding a subdirectory and ITS CONTENT

  2. 2

    Get the size of a directory (not its content)

  3. 3

    puppet copy directory but not its content

  4. 4

    Go goroutine lock and unlock

  5. 5

    Mutex lock/unlock order

  6. 6

    Java Lock - Unlock

  7. 7

    How can I copy a hidden directory recursively and preserving its permissions?

  8. 8

    How to recursively download a web page and its linked content from a URL?

  9. 9

    How to remove a directory without removing its content?

  10. 10

    Add specific directory and its content to Universal target

  11. 11

    delete directory object and its content in powershell

  12. 12

    How to remove a directory without removing its content?

  13. 13

    archive a directory and its content to a zip archive

  14. 14

    Add specific directory and its content to Universal target

  15. 15

    Robocopy copy directory instead of just its content

  16. 16

    Getting all the filenames (not content) recursively from an http directory

  17. 17

    Java lock and unlock on different thread

  18. 18

    Python & Couchbase Lock/Unlock mechanism

  19. 19

    Lock screen will not unlock in Ubuntu 20.04

  20. 20

    DirectSoundBuffer8::Lock/Unlock

  21. 21

    How to lock and unlock keyboard in Ubuntu ?

  22. 22

    Can not unlock from and lock to Launcher

  23. 23

    Java unlock ReadWrite lock safely?

  24. 24

    Lock/unlock a variable cell(s)

  25. 25

    How to control mutex lock and unlock?

  26. 26

    Redirecting the content of a directory, but not the directory itself as well as some of its subdirectories and files

  27. 27

    How can I move files by type recursively from a directory and its sub-directories to another directory?

  28. 28

    How can I move files by type recursively from a directory and its sub-directories to another directory?

  29. 29

    Recursively copy file to a directory all its sub-directory in command prompt

HotTag

Archive