11-15-2005
Unix Dummy
i need to learn unix real quick and i have completely no idea how. could anyone please tell me how to get material to get me going??? I am IT oriented.
PLEASE ANY ONE????????????????
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am ftp-ing (I think) files from one computer to another and I am using the Put command to do this. Is there a way for me to string these commands together and Put several files at once?
Thanks,
Amy (4 Replies)
Discussion started by: amygdala
4 Replies
2. UNIX for Dummies Questions & Answers
I have been planning to set up a Unix workstation at home to host an Oracle database just for database admin. practice. But I don't know enough about hardware to know whether this can be done on a regular desktop and the required hardware config. If anyone could kindly guide me in this mission I... (4 Replies)
Discussion started by: tmanpakdee
4 Replies
3. UNIX for Dummies Questions & Answers
:confused: Hi, 2 questions to get some insight. Thanks
(1) I would like to add a prefix (XX00) in each row of the line in my text file and save a newly generated file another name. How to go about it.
(2) How to insert a blank line into each row in my file. and save the file another name.... (2 Replies)
Discussion started by: merry susana
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
I work at IT department of a home furnishing company in Canada. Presently we are working on printer issue on UNIX system and we like to set up a dummy printer on the system. We are not much sure about the procedure to try it and it woul dbe great if we get some advice to go ahead.
Thanks... (3 Replies)
Discussion started by: srabanti
3 Replies
5. Shell Programming and Scripting
This drive me nut, any can show me how to do it ??
str1='Case Modify 10001 20002 30003 40004|Report Create 3417176211|Case Modify 10002 20002 30003 40004'
and str2='Case Modify 10001'
if str1 ~ str2
then str1='Report Create 3417176211|Case Modify 10002 20002 30003 40004'
Thanks, (8 Replies)
Discussion started by: sabercats
8 Replies
6. Shell Programming and Scripting
Hi everyone!! i need some help to do the next exercice, if some one can help-me!
Perform a script to swap two lines of a file. The name of
file as the two line numbers are passed as a parameter. It should be
verify that the file exists, have the necessary permits and lines.
i try... (3 Replies)
Discussion started by: freixo
3 Replies
7. UNIX for Dummies Questions & Answers
Im trying to awk two values from each a line (about 40000 lines in the file):
e.g.
gi|10580442|gb|AAG19320.1| inosine-5'-monophosphate dehydrogenase-like
I want to get the value between the first set of pipes and then the value between square brackets separated by a tab, i.e.
10580442... (6 Replies)
Discussion started by: gorkin
6 Replies
8. UNIX for Dummies Questions & Answers
My name is Jimmy. My company support a client that using Sun Microsystems and Oracle. I'm totally zero knowledge about it. Only know installation a bit in Debian Linux and some commands. Do anyone here can help me at least some idea how to operate the Sun Microsystems. Please correct me if i'm... (14 Replies)
Discussion started by: jimmyysk
14 Replies
9. UNIX for Dummies Questions & Answers
I have never used Unix before and only heard of it at the start of the week. But ny new job requires me to use the Unix/Linux command, and i need an introduction for a total beginer... are there any intro videos or books you would recomend?
:confused: (2 Replies)
Discussion started by: tomvcarter
2 Replies
10. UNIX for Beginners Questions & Answers
Hi Folks,
I need a UNIX script which will copy files(Table wise) from source directory to destination directory (Under table directory) and also creates 2 additional files after getting copied to destination directory with extension .pdy and .ldy , . pdy file will be zero byte file should get... (4 Replies)
Discussion started by: Nicks1412
4 Replies
LEARN ABOUT DEBIAN
module::optional
Module::Optional(3pm) User Contributed Perl Documentation Module::Optional(3pm)
NAME
Module::Optional - Breaking module dependency chains
SYNOPSIS
use Bar::Dummy qw();
use Module::Optional Bar;
ABSTRACT
This module provides a way of using a module which may or may not be installed on the target machine. If the module is available it behaves
as a straight use. If the module is not available, subs are repointed to their equivalents in a dummy namespace.
DESCRIPTION
Suppose you are the developer of module "Foo", which uses functionality from the highly controversial module "Bar". You actually quite like
"Bar", and want to reuse its functionality in your "Foo" module. But, many people will refuse to install "Foo" as it needs "Bar". Maybe
"Bar" is failing tests or is misbehaving on some platforms.
Making "Bar" an optional module will allow users to run "Foo" that don't have "Bar" installed. For Module::Build users, this involves
changing the status of the "Bar" dependency from "requires" to "recommends".
To use this module, you need to set up a namespace "Bar::Dummy". The recommended way of doing this is to ship lib/Bar/Dummy.pm with your
module. This could be shipped as a standalone module. A dummy module for "Params::Validate" is shipped with Module::Optional, as this was
the original motivation for the module. If there are other common candidates for dummying, petition me, and I'll include them in the
Module::Optional distribution.
Using an optional module
Place the lines of code in the following order:
use Bar::Dummy qw();
use Module::Optional qw(Bar quux wibble wobble);
Always set up the dummy module first, but don't import anything - this is to avoid warnings about redefined subroutines if the real Bar is
installed on the target machine. Module::Optional will do the importing: quux wibble and wobble from the real Bar if it exists, or from
Bar::Dummy if it doesn't.
Asking for a module version
If you need a version of the module or later, this can be done thus:
use Bar::Dummy qw();
use Module::Optional qw(Bar 0.07 quux wibble wobble);
If version 0.07 or later of Bar is not available, the dummy is used.
Suppressing the module
You will probably be developing your module on a platform that does have Bar installed (I hope). However, you need to be able to tell what
happens on systems without Bar. To do this, run the following (example is Unix):
MODULE_OPTIONAL_SKIP=1 make test
You also want to do this in tests for the dummy module that you are providing. (You are providing tests for this module?) This can easily
be done with a begin block at the top of the test:
BEGIN {
local $ENV{MODULE_OPTIONAL_SKIP} = 1;
use Module::Optional qw(Params::Validate);
}
Writing a ::Dummy Module
You provide a namespace suffixed with ::Dummy containing subs corresponding to all the subs and method calls for the optional module. You
should also provide the same exports as the module itself performs.
Adhere strictly to any prototypes in the optional module.
An example of a dummy module is Params::Validate::Dummy, provided in this distribution.
INTERNALS
Module::Optional performs two types of redirection for the missing module. Firstly via @ISA inheritance - Foo::Bar inherits from
Foo::Bar::Dummy.
Secondly, an AUTOLOAD method is added to Foo::Bar, which will catch calls to subs in this namespace.
BUGS
Please report bugs to rt.cpan.org by posting to bugs-module-optional@rt.cpan.org or visiting
https://rt.cpan.org/Public/Dist/Display.html?Name=Module-Optional.
AUTHOR
Ivor Williams
ivorw-mod-opt at xemaps.com
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
Test::MockModule, Module::Pluggable, Module::Build.
perl v5.10.1 2010-12-17 Module::Optional(3pm)