05-25-2011
DBI is your lib of choice
... and it has a command line util called dbish
DBI is a generic Database Access Layer written in Perl. I can't post URLs it seems, so you will have to look for DBI and dbish.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to write a script using the 'find' command and it's -exec option to run a compound command against the files found.
Example:
find . -name "*.conf" -exec cat {} | grep "#" > /tmp/comments.list \;
Of course the above doesn't work. So I experimented for a bit to see if there was... (6 Replies)
Discussion started by: deckard
6 Replies
2. Programming
HI
I have a messaging s/w daemon(TIBCO rvrd) provided by vendor which will accept connections from various clients and routes messages to the destinations. In order to route it internally uses two ports(one tcp adn one udp).
I want to know on which port(tcp/udp) it is transmitting... (3 Replies)
Discussion started by: axes
3 Replies
3. Programming
I'm writing a monitoring application. I'd like to periodically get the information provided by the 'top' command line utility from within my code and write the output of 'top' to a file. Wondering if anyone has already done something like this.
Doing
system("top > someFile");
does not create... (6 Replies)
Discussion started by: antoniomorandi
6 Replies
4. Linux
Hi,
What else is the dot used beside relative filepaths in bash? Is it a shell utility as well?
No man entry for dot (.)... (3 Replies)
Discussion started by: varelg
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Using command-line utility "ftp or sftp", I want to transfer files across Windows and UNIX.
Can you please tell me from where I need to connect to ftp and how do I specify the hostname, credentials and how do I get and put files between DOS and UNIX?
Please provide me as much... (10 Replies)
Discussion started by: Dev_Dev
10 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Develop a utility that will enhance the current file management and
organization functions of Linux.
You... (3 Replies)
Discussion started by: stephanielana1
3 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Please help about these script... i dont have a problem in option 1. But when it comes to options 2 and options 3... (2 Replies)
Discussion started by: amneytia1
2 Replies
8. Red Hat
Hi Folks,
I have installed Centos-6.4 in my VMware. I have enabled the proxy settings in the network and I am able to access the internet through GUI, but unable to browse via the command line. I did the below options as:
1) Added the proxy setting in /etc/environment file.export... (4 Replies)
Discussion started by: gsiva
4 Replies
9. Shell Programming and Scripting
Hi Everyone!
I am facing an issue in running a command line utility from the CRON.
This utility displays IPC statistics on UNIX message queues: The "queue name" and the "count" of messages in the queue.
When running this utility from prompt, it will provide an output on the screen, like the... (4 Replies)
Discussion started by: vai_sh
4 Replies
LEARN ABOUT DEBIAN
jifty::dbi::record::cachable
Jifty::DBI::Record::Cachable(3pm) User Contributed Perl Documentation Jifty::DBI::Record::Cachable(3pm)
NAME
Jifty::DBI::Record::Cachable - records with caching behavior
SYNOPSIS
package Myrecord;
use base qw/Jifty::DBI::Record::Cachable/;
DESCRIPTION
This module subclasses the main Jifty::DBI::Record package to add a caching layer.
The public interface remains the same, except that records which have been loaded in the last few seconds may be reused by subsequent fetch
or load methods without retrieving them from the database.
METHODS
flush_cache
This class method flushes the _global_ Jifty::DBI::Record::Cachable cache. All caches are immediately expired.
_flush_key_cache
Blow away this record type's key cache
load_from_hash
Overrides the implementation from Jifty::DBI::Record to add caching.
load_by_cols
Overrides the implementation from Jifty::DBI::Record to add caching.
_cache_config
You can override this method to change the duration of the caching from the default of 5 seconds.
For example, to cache records for up to 30 seconds, add the following method to your class:
sub _cache_config {
{ 'cache_for_sec' => 30 }
}
AUTHOR
Matt Knopp <mhat@netlag.com>
SEE ALSO
Jifty::DBI, Jifty::DBI::Record
perl v5.14.2 2010-09-21 Jifty::DBI::Record::Cachable(3pm)