7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to write a script which can send files via sftp communication continously for half an hour or any given duration of time. I have already written a batch file to send multiple file via SFTP.
but I need to know how can we set a duration of half an hour through shell script. Can we use sleep... (2 Replies)
Discussion started by: talk1234
2 Replies
2. Web Development
Hi all,
I am looking for a solution to the following issue.
Basically, we are going to be implementing a series of front end splunk search heads (basically IO intensive web servers).
And wish to automatically redirect a new connection to the search head from the pool with most available... (0 Replies)
Discussion started by: STOIE
0 Replies
3. Linux
Hi,
We have 2 pools of servers. Lets call them A and B and they would contain 2 servers each. Pool A will be hosting www.example.com/app/v1 and pool B will be hosting www.example.com/app/v2. Clients will be requesting right url (/v1 or /v2) but will be hitting just one IP.
I'd like to:
1)... (3 Replies)
Discussion started by: chrisfb
3 Replies
4. IP Networking
All,
I am running some RHEL 5 SFTP servers and I need to load balance them. I am most likely having to do a software load balance.
I tried it with Piranha, but I get a connection refused response after setting it up.
Anyone have any experience with trying to load balance SSH/SFTP and... (0 Replies)
Discussion started by: markdjones82
0 Replies
5. UNIX for Dummies Questions & Answers
I used to have a free software on my computer to practice unix. Unfortunately, I had to rebuild the laptop after it was infected by a virus. Now I cannot remember the website where to download the software. Can anyone point me to a site?
Thanks! (2 Replies)
Discussion started by: Ernst
2 Replies
6. AIX
Hi,
Anyone know of a good procedure or command that will significantly increase the load of my server without crashing it?
I want to run some threshold tests and monitor load, cpu and memory usage.
Thanks
Chris. (1 Reply)
Discussion started by: chlawren
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
How do we check the free space for load servers?Is there any 'df'
command available for this?Your help is appreciated.
With Regards
Dileep (5 Replies)
Discussion started by: DILEEP410
5 Replies
mocked(3pm) User Contributed Perl Documentation mocked(3pm)
NAME
mocked - use mocked libraries in unit tests
SYNOPSIS
# use a fake LWP::Simple for testing from t/lib/LWP/Simple.pm
use mocked 'LWP::Simple';
my $text = get($url);
# use a fake WWW::Mechanize for testing from t/mock-libs/WWW/Mechanize.pm
use mocked [qw(WWW::Mechanize t/mock-libs)];
DESCRIPTION
Often during unit testing, you may find the need to use mocked libraries to test edge cases, or prevent unit tests from using slow or
external code.
This is where mocking libraries can help.
When you mock a library, you are creating a fake one that will be used in place of the real one. The code can do as much or as little as
is needed.
Use mocked.pm as a safety measure (be sure you're actually using the mocked module), and as a way to document the tests for future
maintainers.
VARIABLES
real_inc_paths
The real @INC that we are over-ridding is stored here while we are loading the mocked library.
FUNCTIONS
import
With a package name, this function will ensure that the module you specify is loaded from t/lib.
You can also pass an array reference containing the package name and a directory from which to load it from.
AUTHOR
Luke Closs, "<cpan at 5thplane.com>" Scott McWhirter, "<kungfuftr at cpan.org>"
MAD CREDS TO
Ingy dA~Xt net, for only.pm
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2009-12-09 mocked(3pm)