Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Help! I have written a perl script to create a view in clearcase. The problem is, when I try to checkout a file in this "perl created" view I get the following error: 'cleartool: Unable to rename filename to filename.keep : Read-only file system.'... I am calling the mkview command via system in my script. (ie. system("cleartool mkview command ...")) When I do the EXACT same command from the command line and then try to checkout a file, it works great. I have checked all permissions for the view directories and they are identical. I get the same output from the mkview command regardless of where I issue it (shell vs. perl system call) Are there any quirks/side-effects in system() that might cause this?? Thanks.

Replies are listed 'Best First'.
(tye)Re: Clearcase View Creation Problem
by tye (Sage) on Feb 17, 2001 at 10:51 UTC

    Well, "read-only file system" makes me think that the two cases are running the command with different working directories or with different privileges (or perhaps from different computers, but I would expect you to have told us that case). For example, if the Perl script is a CGI script...

    If you are running the Perl script from a command line and the script doesn't do things like chdir() or open(STDOUT,...), then system("...") is nearly identical to running the command directly. But none of the differences make sense as causing that error (the process parent is perl instead of some shell, the process probably isn't the process group leader in one case and probably is in the other, ...).

            - tye (but my friends call me "Tye")