05-30-2006
u can do it by making object file separately for each function and bind them with main program.
say :
make a foo.so for function foo()
while building your application use foo.so
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
2. Solaris
I have Apache 2 webserver as delivered with the Solaris 10 installation.
How to verify if Apache is configured with loadable module support?
Or if needs to be recompiled with loadable module support. (2 Replies)
Discussion started by: kavera
2 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. Solaris
Hi men,
Have you ever meet this error ?
I install full Sun MC 4.0 packages (+ Add ons) exception of Sun Midrange Platform Administration because i don't know how to configure it
Then all other servers are ok, only E2900 servers have Config reader module error: Data Acquisition error
I... (12 Replies)
Discussion started by: tien86
12 Replies
5. Shell Programming and Scripting
I am writing perl script to configure Cisco device but Variables inside Net::Telnet::Cisco Module doesn't work and passed to device without resolving.
Please advise.
here is a sample of script:
use Net::Telnet::Cisco;
$device = "10.14.199.1";
($o1, $o2, $o3, $o4) = split(/\./,$device);... (5 Replies)
Discussion started by: ahmed_zaher
5 Replies
6. 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
7. Shell Programming and Scripting
My script work on Linux but not work in sun os.
my script.
logFiles="sentLog1.log sentLog2.log"
intial_time="0 0"
logLocation="/usr/local/tomcat/logs/"
sleepTime=600
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
successMessage="OK"
arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies
8. Red Hat
I need to utilize pam_pwdfile in order to authenticate virtual users in vsftpd. I know I can utilize htpasswd2 -m to create a password file however it is vital since I am administrating several machines in our organization that the password generated be in clear text. Does anyone on here know if... (10 Replies)
Discussion started by: colbyshores
10 Replies
9. IP Networking
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
situation
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
LEARN ABOUT CENTOS
test::without::module
Test::Without::Module(3) User Contributed Perl Documentation Test::Without::Module(3)
NAME
Test::Without::Module - Test fallback behaviour in absence of modules
SYNOPSIS
use Test::Without::Module qw( My::Module );
# Now, loading of My::Module fails :
eval { require My::Module; };
warn $@ if $@;
# Now it works again
eval q{ no Test::Without::Module qw( My::Module ) };
eval { require My::Module; };
print "Found My::Module" unless $@;
DESCRIPTION
This module allows you to deliberately hide modules from a program even though they are installed. This is mostly useful for testing
modules that have a fallback when a certain dependency module is not installed.
EXPORT
None. All magic is done via "use Test::Without::Module LIST" and "no Test::Without::Module LIST".
Test::Without::Module::get_forbidden_list
This function returns a reference to a copy of the current hash of forbidden modules or an empty hash if none are currently forbidden. This
is convenient if you are testing and/or debugging this module.
ONE LINER
A neat trick for using this module from the command line was mentioned to me by NUFFIN and by Jerrad Pierce:
perl -MTest::Without::Module=Some::Module -w -Iblib/lib t/SomeModule.t
That way, you can easily see how your module or test file behaves when a certain module is unavailable.
BUGS
o There is no lexical scoping
CREDITS
Much improvement must be thanked to Aristotle from PerlMonks, he pointed me to a much less convoluted way to fake a module at
<http://www.perlmonks.org/index.pl?node=192635>.
I also discussed with him an even more elegant way of overriding CORE::GLOBAL::require, but the parsing of the overridden subroutine didn't
work out the way I wanted it - CORE::require didn't recognize barewords as such anymore.
NUFFIN and Jerrad Pierce pointed out the convenient use from the command line to interactively watch the behaviour of the test suite and
module in absence of a module.
AUTHOR
Copyright (c) 2003-2009 Max Maischein, <corion@cpan.org>
LICENSE
This module is released under the same terms as Perl itself.
SEE ALSO
Devel::Hide, Acme::Intraweb, PAR, perlfunc
perl v5.16.3 2009-01-18 Test::Without::Module(3)