Sponsored Content
Top Forums Shell Programming and Scripting perl script to check read/write/execute permission for 'others' Post 302690393 by itkamaraj on Thursday 23rd of August 2012 02:49:07 AM
Old 08-23-2012
you can check with stat

Code:
 
perldoc -f stat

stat - perldoc.perl.org
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Default read/write/execute permissions

I am perplexed that my script execution is not always consistent in creating new files. Specifically, my group read/write/execute permissions. For instance, take a look at the following: -rw-rw---- 1 jg dp 18648 Aug 22 10:06 nx081508.txt -rw-rw---- 1 jg dp 22422 Aug 22 10:06... (1 Reply)
Discussion started by: joeyg
1 Replies

2. UNIX for Advanced & Expert Users

Script without read permission but execute the script

I have a script, except me no one can read the script but they can execute the script. Is it possible? (14 Replies)
Discussion started by: kingganesh04
14 Replies

3. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

I need to find all the files that have group Read or Write permission or files that have user write permission. This is what I have so far: find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}' It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies

4. UNIX for Dummies Questions & Answers

About read,write & execute permissons of a directory

Hi all, I want to know differences between read,write & execute permissons given to directory. Thanx in advance. (6 Replies)
Discussion started by: vishwasrao
6 Replies

5. Ubuntu

how to make others have read/write permission when the aotu mounted usb flash disk pluge in ?

hi all: as we know , when usb flash disk plug in and aotu mounted , the default permission of the usb flash disk is 700. that means others have no permission . the question: how to make others have read/write permission when the aotu mounted usb flash disk pluge in ? thanks !! (0 Replies)
Discussion started by: arnold.king
0 Replies

6. Shell Programming and Scripting

Need a perl script to read and write the data

Hi, I have on Designdocument in that information is stored with in tabular format.I need Perlscript to read and write the datausing perl script? Regards, Ravi (0 Replies)
Discussion started by: toravi.pentaho
0 Replies

7. Shell Programming and Scripting

Need a UNIX/perl script to read and write the data

Hi, I have on Designdocument in that information is stored with in tabular format.I need Perl/unix script to read and write the data using perl script? Regards, Ravi (4 Replies)
Discussion started by: toravi.pentaho
4 Replies

8. UNIX for Advanced & Expert Users

Allow user without dir write permission to execute a script that creates files

In our project we have several unix scripts that trigger different processes. These scripts write logs to a particular folder 'sesslogs', create output data files in a separate directory called 'datafiles' etc. Usually L1 support team re-run these scripts . We donot want L1 support team to have... (14 Replies)
Discussion started by: waavman
14 Replies

9. Shell Programming and Scripting

Find list of files missing read & execute permission

Hi, I'm writing a post-upgrade script and I want to find which files don't have read and execute to everyone. I can run a find . ! -perm, but then I have to use a list of the possible permissions (777,775, 755 etc). Is there a more elegant solution? Thanks (2 Replies)
Discussion started by: Catullus
2 Replies

10. UNIX for Beginners Questions & Answers

Checking if the directory has read and write permission

logMsg='Started by '${USER} LOG_MESSAGE "${logMsg}" resultCode=$? if ]; then return ${resultCode} fi touch ${FILELISTPATH} resultCode=$? if ]; then logMsg='failed to create file list:'${FILELISTPATH} LOG_ERROR "${logMsg}" CUSTOM_PREPROCESS ${FATAL} ... (2 Replies)
Discussion started by: raka123
2 Replies
SVN::Class::Info(3pm)					User Contributed Perl Documentation				     SVN::Class::Info(3pm)

NAME
SVN::Class::Info - Subversion workspace info SYNOPSIS
use SVN::Class; my $file = svn_file( 'path/to/file' ); my $info = $file->info; printf "repository URL = %s ", $info->url; DESCRIPTION
SVN::Class::Info represents the output of the "svn info" command. METHODS
SVN::Class::Info does not inherit from SVN::Class, but only Class::Accessor::Fast. new( $dir->stdout ) Creates new SVN::Class::Info instance. The lone argument should be an array ref of output from a call to the SVN::Class object's info() method. You normally do not need to use this method directly. See the SVN::Class info() method. dump Returns dump() of the object, just like SVN::Class->dump(). url Get the URL value. Returns a SVN::Class::Repos object. path wc_root Working Copy Root Path name root rev node schedule author last_rev date updated checksum uuid Get/set the info params. These are really only useful as accessors (getters). AUTHOR
Peter Karman, "<karman at cpan.org>" BUGS
Please report any bugs or feature requests to "bug-svn-class at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SVN-Class <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SVN-Class>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc SVN::Class You can also look for information at: o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/SVN-Class <http://annocpan.org/dist/SVN-Class> o CPAN Ratings http://cpanratings.perl.org/d/SVN-Class <http://cpanratings.perl.org/d/SVN-Class> o RT: CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=SVN-Class <http://rt.cpan.org/NoAuth/Bugs.html?Dist=SVN-Class> o Search CPAN http://search.cpan.org/dist/SVN-Class <http://search.cpan.org/dist/SVN-Class> ACKNOWLEDGEMENTS
I looked at SVN::Agent before starting this project. It has a different API, more like SVN::Client in the SVN::Core, but I cribbed some of the ideas. The Minnesota Supercomputing Institute "http://www.msi.umn.edu/" sponsored the development of this software. COPYRIGHT
Copyright 2008 by the Regents of the University of Minnesota. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
Path::Class, Class::Accessor::Fast, SVN::Agent, IPC::Cmd perl v5.14.2 2012-01-31 SVN::Class::Info(3pm)
All times are GMT -4. The time now is 02:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy