08-28-2009
logrotate is the thing which you are searching for.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Trying to alias rm to move files to a hidden trash directory in the bash shell. I've tried to create this alias numberous ways and it's just not working. Here's what I've tried, anyone have any suggestions.
alias rm='mv $* ~/.trash'
alias rm= 'mv$* ~/.trash'
things like that... I've also... (2 Replies)
Discussion started by: strmy_ngts
2 Replies
2. Shell Programming and Scripting
Hi All,
I am using a perl module Win32::AdminMisc in my perl script.
When i running in activestate perl v5.10.0 it shows folling error ---
Can't locate loadable object for module Win32::AdminMisc in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at example.pl
Please reply.
... (7 Replies)
Discussion started by: suprcool
7 Replies
3. Linux
Hi all,
I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/.
I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
4. IP Networking
Hi All,
I need to develop a kernel module which changes the IP address of a package according to its mac address. It would be a sort of L2 Nat.
Somebody know if I can do this using netfilter??
Thanks. (2 Replies)
Discussion started by: lagigliaivan
2 Replies
5. Shell Programming and Scripting
I dont know if this is a dumb question, but I am unable to move ahead and need help -
There is a perl module called Header.pm which was written by someone else. I am trying to write a simple perl script which uses a function provided by the module. The function has been exported by the module... (9 Replies)
Discussion started by: NewDeb
9 Replies
6. AIX
Had a bizzare problem last night with one of our tools running on an AIX server that has not come up before. The tool has been in use for over a year without this problem showing up.The tool basically does this: -Kick off a background task and record the PIDGo and do a bunch of other taskswait for... (4 Replies)
Discussion started by: steadyonabix
4 Replies
7. Shell Programming and Scripting
Hi,
I need to read an excel binary file and write the data to a text file. Is it possible using Spreadsheet-ParseExcel-0.58 ? If not, is there any module available in CPAN to do this?
Thanks,
Js (1 Reply)
Discussion started by: jisha
1 Replies
8. Red Hat
Hello friends
Today i have changed my passwd policy for strong password
Everything is working correctly but when i changed my password , it did not ask me my old password
my /etc/pam.d/system-auth file is (only passwdqc.so module line)
password required pam_passwdqc.so retry=3... (0 Replies)
Discussion started by: rink
0 Replies
9. Web Development
Hello everyone...I am very new to UNIX hence needs your help in below.
i have written a script to change some configuration in property files and its working fine.but to reflect that change at the application i want to recycle WAS and ihs.i.e. run below start and stop commands at /usr/local/bin ... (2 Replies)
Discussion started by: Sanaa
2 Replies
10. AIX
How can I log the auth and security module messages in AIX syslog ? I need to see all authentication requests coming (when users login) and the calls made for authenticating these users.
Target system is AIX 6.1 (1 Reply)
Discussion started by: vs1
1 Replies
LEARN ABOUT DEBIAN
pm_which
PM_WHICH(1p) User Contributed Perl Documentation PM_WHICH(1p)
NAME
pm_which - find installed modules
SYNOPSIS
pm_which [ options ] module(s)
Returns the path to the given module(s)
OPTIONS
-q, --quiet Just print paths
-p, --paths Just convert the module name into a relative path
-a, --all Print all paths, not just the first one found
-n, --namespace Print all modules in the given namespace
-m Only print module names, not paths
-V Show module version
-I libpath Add a path to search (like perl -I)
-d, --dump Dump paths that would be searched (@INC by default)
-h, --help Print this message
-v, --version Print version information
- Read modules from stdin, one per line
DESCRIPTION
This tool reports the locations of installed perl modules.
By default it lists the location of each specified module that would be loaded by require.
OPTION DETAILS
quiet
Under quiet mode, module names are suppressed and missing modules are not reported.
Normal output:
$ pm_which Module::One Module::Two Missing::Module
Module::One - /path/to/Module/One.pm
Module::Two - /path/to/Module/Two.pm
Missing::Module - not found
Under --quiet:
$ pm_which -q Module::One Module::Two Missing::Module
/path/to/Module/One.pm
/path/to/Module/Two.pm
paths
In "paths" mode, each module is simply converted into a relative file path. This is possible even when the module is not installed.
$ pm_which -p Missing::Module
Missing/Module.pm
all
When the "all" switch is specified, all installed modules will be reported, not just the first one. This is useful for determining when
there is a module installed in multiple locations.
$ pm_which -a MyModule
/path/to/MyModule.pm
/home/me/perl/MyModule.pm
namespace
Arguments are taken as namespaces to search under.
$ pm_which -n MyModule
MyModule - /path/to/MyModule.pm
MyModule::Foo - /path/to/MyModule/Foo.pm
MyModule::Foo::Bar - /path/to/MyModule/Foo/Bar.pm
-m
Disables printing of module paths. This is only really useful in conjunction with --namespace.
$ pm_which -nm MyModule
MyModule
MyModule::Foo
MyModule::Foo::Bar
-V
Prints the version of each module, according to ExtUtils::MakeMaker.
$ pm_which -V MyModule
MyModule - /path/to/MyModule.pm [ 1.00 ]
$ pm_which -Vnm MyModule
MyModule [ 1.00 ]
MyModule::Foo [ 0.01 ]
MyModule::Foo::Bar [ undef ]
dump
Dumps the paths that would be searched and exits. This is @INC modified by any -I switches.
$ pm_which --dump
/usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/vendor_perl/5.8.6
...
$ pm_which -I lib --dump -I blib/lib
lib
blib/lib
/usr/lib/perl5/site_perl/5.8.6
...
version
Prints the version number of the script, plus the version and path of Module::Util that was loaded.
EXIT CODES
o 0 - Everything was OK
o 1 - Initialisation failed (bad switches?)
o 2 - Some modules were not installed
SEE ALSO
This utility comes with Module::Util.
AUTHOR
Matt Lawrence <mattlaw@cpan.org>
perl v5.14.2 2012-06-08 PM_WHICH(1p)