10 More Discussions You Might Find Interesting
1. AIX
exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1).
0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies
2. Shell Programming and Scripting
Hi friends,
Today I found one strange behaviour of the tr command.
I used the following command:
echo "NEE"|tr
Sometimes it was giving "nee" as ouput . sometimes it was giving "NEE" as output.
Finally I used the below code:
echo "NEE"|tr "" ""
... and it gave me the correct... (17 Replies)
Discussion started by: neelmani
17 Replies
3. Shell Programming and Scripting
Hi guys,
first of all I would say that this is my first time I write in a Forum.
I've read the "forum rules" and I hope i will respect them.
I searched everywhere for the solution of my problem but I didn't find anything.
Here my problem:
I'm using a sap job scheduler: in a particular job... (7 Replies)
Discussion started by: Antcam
7 Replies
4. Red Hat
Please help me this script !!!!
Script
*****
a=2.0.0.0
b=1.0.0.0
#if test $a -ge $b
if
then
echo "A is Greater than B"
else
echo "B is Greater than A"
fi
i am getting following error
>sh abc
abc: line 6: [: 2.0.0.0: integer expression expected (8 Replies)
Discussion started by: ponmuthu
8 Replies
5. Shell Programming and Scripting
Hello, excuse me for my english, i'm a french man.
I have a problem with the command tr in applescript (with the accent...in french we have a lot of accents), i have read that is a problem with the version 10.5 of leopard then i would want to download the version 10.4 of universal binary of tr... (1 Reply)
Discussion started by: protocomm
1 Replies
6. Solaris
Hi all
I use to run sql loader inside a script with usename and password written in syntax. Now when I use 'ps' command to know about the status of loading, it also shows username and password that I don't want to share with someone who is sitting with me. If you have any idea except encryption... (1 Reply)
Discussion started by: sanjay1979
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its complete name only to use furter in my script.
I am planning to do like this:
if ; then... (2 Replies)
Discussion started by: new_learner
2 Replies
8. Shell Programming and Scripting
Hi, folks.
Sorry for bothering, but maybe someone could help me please.
The problem is the following:
there is some script that copies files from local file system to AFS. The copying is performed with dd command.
The script copies data into some AFS volumes.
The problem appeared with one... (0 Replies)
Discussion started by: Anta
0 Replies
9. UNIX for Dummies Questions & Answers
I have a problem to....
(1).List the number of unique users that has active
processes.
(2).List the number of active processes for each of
the users in (1).
(3).Determine total memory usage for each user.
Help me please....thank you.
Best... (2 Replies)
Discussion started by: robocup
2 Replies
10. UNIX for Dummies Questions & Answers
Sorry for my poor english.
Unix is SCO ODT ver 3.0
Mine problem is :
when I login via some terminal emulator and type :
who am i
I see information like this :
username ttyp02 Feb 28 09:53
after logoff and type who command (from some other terminal)
I see that ttyp02 is still... (2 Replies)
Discussion started by: bane_yu
2 Replies
CPANPLUS::Shell::Default::Plugins::HOWTO(3pm) Perl Programmers Reference Guide CPANPLUS::Shell::Default::Plugins::HOWTO(3pm)
NAME
CPANPLUS::Shell::Default::Plugins::HOWTO -- documentation on how to write your own plugins
SYNOPSIS
package CPANPLUS::Shell::Default::Plugins::MyPlugin;
### return command => method mapping
sub plugins { ( myplugin1 => 'mp1', myplugin2 => 'mp2' ) }
### method called when the command '/myplugin1' is issued
sub mp1 { .... }
### method called when the command '/? myplugin1' is issued
sub mp1_help { return "Help Text" }
DESCRIPTION
This pod text explains how to write your own plugins for "CPANPLUS::Shell::Default".
HOWTO
Registering Plugin Modules
Plugins are detected by using "Module::Pluggable". Every module in the "CPANPLUS::Shell::Default::Plugins::*" namespace is considered a
plugin, and is attempted to be loaded.
Therefor, any plugin must be declared in that namespace, in a corresponding ".pm" file.
Registering Plugin Commands
To register any plugin commands, a list of key value pairs must be returned by a "plugins" method in your package. The keys are the
commands you wish to register, the values are the methods in the plugin package you wish to have called when the command is issued.
For example, a simple 'Hello, World!' plugin:
package CPANPLUS::Shell::Default::Plugins::HW;
sub plugins { return ( helloworld => 'hw' ) };
sub hw { print "Hello, world!
" }
When the user in the default shell now issues the "/helloworld" command, this command will be dispatched to the plugin, and its "hw" method
will be called
Registering Plugin Help
To provide usage information for your plugin, the user of the default shell can type "/? PLUGIN_COMMAND". In that case, the function
"PLUGIN_COMMAND_help" will be called in your plugin package.
For example, extending the above example, when a user calls "/? helloworld", the function "hw_help" will be called, which might look like
this:
sub hw_help { " /helloworld # prints "Hello, world!
" }
If you dont provide a corresponding _help function to your commands, the default shell will handle it gracefully, but the user will be
stuck without usage information on your commands, so it's considered undesirable to omit the help functions.
Arguments to Plugin Commands
Any plugin function will receive the following arguments when called, which are all positional:
Classname -- The name of your plugin class
Shell -- The CPANPLUS::Shell::Default object
Backend -- The CPANPLUS::Backend object
Command -- The command issued by the user
Input -- The input string from the user
Options -- A hashref of options provided by the user
For example, the following command:
/helloworld bob --nofoo --bar=2 joe
Would yield the following arguments:
sub hw {
my $class = shift; # CPANPLUS::Shell::Default::Plugins::HW
my $shell = shift; # CPANPLUS::Shell::Default object
my $cb = shift; # CPANPLUS::Backend object
my $cmd = shift; # 'helloworld'
my $input = shift; # 'bob joe'
my $opts = shift; # { foo => 0, bar => 2 }
....
}
BUG REPORTS
Please report bugs or other issues to <bug-cpanplus@rt.cpan.org<gt>.
AUTHOR
This module by Jos Boumans <kane@cpan.org>.
COPYRIGHT
The CPAN++ interface (of which this module is a part of) is copyright (c) 2001 - 2007, Jos Boumans <kane@cpan.org>. All rights reserved.
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
SEE ALSO
CPANPLUS::Shell::Default, CPANPLUS::Shell, cpanp
perl v5.18.2 2014-01-06 CPANPLUS::Shell::Default::Plugins::HOWTO(3pm)