Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

perl chmod tells me file does not exist (but it does)

by davidfilmer (Sexton)
on May 17, 2013 at 22:00 UTC ( [id://1034026]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       my $mode = (stat( $original_file ))[2];
       my $perms = sprintf "%04o", $mode & 07777;
       chmod( $target_file, oct($perms) ) or warn "Could not chmod '$targe
    +t_file' to $perms: $!\n";
    
  2. or download this
    Could not chmod '/data/dmu/share/Product/PMprofile' to 0644: A file or
    + directory in the path name does not exist.
    
  3. or download this
    > ll /data/dmu/share/Product/PMprofile
    -rw-rw-rw-   1 dfilmer   wheel         1015 Jun 19 2012  /data/dmu/sha
    +re/Product/PMprofile
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1034026]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-19 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found