07-19-2011
Kamaraj,
Could you please help me on this problem....
Please advice.
Thanks,
Siew Fong
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
Currently I have a Samba shared configured as follows:
comment = Public fileshare
path = /u02/pub
guest ok = Yes
writeable = Yes
There is a subfolder under /u02/pub called /u02/pub/expenses/hardware that I need to make read only. How do I do this? I am new to using Samba.
... (2 Replies)
Discussion started by: sparcman
2 Replies
2. UNIX and Linux Applications
Hi,
I need to make a folder read only under a fileshare that has full permissions granted to it. The fileshare with full permissions is /u02/prodfileshare. The folder I need to make read only for everyone except the owner of the folder is called /u02/prodfileshare/EFT/purchases. ... (0 Replies)
Discussion started by: sparcman
0 Replies
3. UNIX for Dummies Questions & Answers
Hi
is there a command to get the count of files inside each sub directory in a directory.
example:
in a directory like this
/opt/:> ls
subdir1
subdir2
subdir3
I need to see the count of files in sub directories like this:
/opt/subdir1: 3 files
/opt/subdir2: 5 files
/opt/subdir3: 10... (1 Reply)
Discussion started by: sanjangr
1 Replies
4. UNIX for Dummies Questions & Answers
I have a zip file (somezipfile.zip) with the following contents in it:
dir1/subdir1/somefile1.txt
dir1/subdir2/somefile2.txt
dir1/subdir2/somefile3.txt
dir1/somefile3.txt
dir1/somefile4.txt
dir2/somefile5.txt
dir2/somefile6.txt
Lets say I unzip this to my home directory so now I have:
... (0 Replies)
Discussion started by: mrwatkin
0 Replies
5. Shell Programming and Scripting
suppose if i am checking folder g as shown below path
a/b/c/d/e/f/g ,and some directory c,d,e,f,g not present then is there anyway to create directory in one command
or i need to use mkdir for everyfolder (3 Replies)
Discussion started by: lalitpct
3 Replies
6. UNIX for Dummies Questions & Answers
Hello,
im new to this forum and directly start with a problem... :)
I have a folder structure like :
/folder/01/1/oldfiles
/folder/01/2/oldfiles
/folder/02/1/oldfiles
/folder/0x/y/oldfiles
Every Month a new folder adds automaticly from the system.
Now i need an idea how to search... (6 Replies)
Discussion started by: Hugi
6 Replies
7. Shell Programming and Scripting
Hi,
I need to list the names of existing files in a specific folder. I have written a script for that, but the problem is, it is also picking up name of a subfolder that is there in that folder. I need only the list of files and not that subfolder. How to go about that ? Can anyone plz help... (2 Replies)
Discussion started by: Subhasis
2 Replies
8. Shell Programming and Scripting
Hello.
For a given folder, I want to select any files find $PATH1 -f \( -name "*" but omit any files like pattern name ! -iname "*.jpg" ! -iname "*.xsession*" ..... \) and also omit any subfolder like pattern name -type d \( -name "/etc/gconf/gconf.*" -o -name "*cache*" -o -name "*Cache*" -o... (2 Replies)
Discussion started by: jcdole
2 Replies
9. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
10. Shell Programming and Scripting
The bash executes but returns no results and the set -xv showed while the $run variable in blue, was extracted correctly, the $match value in green, was not, rather both values in home/cmccabe/Desktop/f1 were extracted not just the matching.
There will always be an exact match from the $run to... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
aspect::advice::around
Aspect::Advice::Around(3pm) User Contributed Perl Documentation Aspect::Advice::Around(3pm)
NAME
Aspect::Advice::Around - Execute code both before and after a function
SYNOPSIS
use Aspect;
around {
# Trace all calls to your module
print STDERR "Called my function " . $_->sub_name . "
";
# Lexically alter a global for this function
local $MyModule::MAXSIZE = 1000;
# Continue and execute the function
$_->run_original;
# Suppress exceptions for the call
$_->return_value(1) if $_->exception;
} call qr/^ MyModule::w+ $/;
DESCRIPTION
The "around" advice type is used to execute code on either side of a function, allowing deep and precise control of how the function will
be called when none of the other advice types are good enough.
Using "around" advice is also critical if you want to lexically alter the environment in which the call will be made (as in the example
above where a global variable is temporarily changed).
This advice type is also the most computationally expensive to run, so if your problem can be solved with the use of a different advice
type, particularly "before", you should use that instead.
Please note that unlike the other advice types, your code in "around" is required to trigger the execution of the target function yourself
with the "proceed" method. If you do not "proceed" and also do not set either a "return_value" or "exception", the function call will
return "undef" in scalar context or the null list "()" in list context.
AUTHORS
Adam Kennedy <adamk@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2010 Adam Kennedy.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-01 Aspect::Advice::Around(3pm)