06-12-2009
so we can use $() within a here document to execute something
Sweet!
Thank you both. that's working
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Maybe my question is too simple but till now i couldn't figure about a solution :(
I have a bash script scheduled in cron:
<cron time parameters> my_script.sh > result.log 2>&1
By this way i can have standard output and standard error in my result.log file
Now i want my script... (2 Replies)
Discussion started by: Pescator
2 Replies
2. Programming
#include <iostream>
using namespace std;
class A
{
public:
int Getvalue() { return i;}
private:
int i;
};
int main()
{}
The above code compiles properly in g++ or in any other C++ compiler.
BUT, the variable 'i' is used (in 'return i' statement) before it is... (1 Reply)
Discussion started by: deepthi.s
1 Replies
3. Shell Programming and Scripting
I would need to with making while loop logic working in shell program when I am new into the shell programing
1) I would need to try to get the file from the remote side ----need to try 15 mins apart for 4 times and terminate the program if file is not available....
I would need to know how I... (4 Replies)
Discussion started by: sambakamba
4 Replies
4. Shell Programming and Scripting
Hi:
I have the next script on ksh
#!/usr/bin/ksh
cd $FUENTES
qdesign <<-!
\$/opt/cognos/ph843e/bin/qtp <<-!
\$/opt/cognos/ph843e/bin/quiz <<-!
!
!
!
This script is very simple, i want to nest three process quiz into qtp, and this into qdesign.
When I run it , i receive the... (5 Replies)
Discussion started by: ct2marer
5 Replies
5. UNIX for Advanced & Expert Users
Hi:
I have the next script on ksh
#!/usr/bin/ksh
cd $FUENTES
qdesign <<-!
\$/opt/cognos/ph843e/bin/qtp <<-!
\$/opt/cognos/ph843e/bin/quiz <<-!
!
!
!
This script is very simple, i want to nest three process quiz into qtp, and this into qdesign.
When I run it , i receive the next... (2 Replies)
Discussion started by: ct2marer
2 Replies
6. Shell Programming and Scripting
I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends.
As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Discussion started by: DeCoTwc
2 Replies
7. Shell Programming and Scripting
Hello,
I have a text file that i want to redirect into a new file , searching and replacing certain string during the opertaion.
This should be done using shell script , so it should not be interactive.
The script should get four parameters :
source file
target file
source string
target... (1 Reply)
Discussion started by: yoavbe
1 Replies
8. Shell Programming and Scripting
Hi,
Here I am trying to query database and check a value, if the value not matches then I wants to re-query the database.Once the value matches, I want to email the reqidstatus_log.txt file. Database query produces a file reqidstatus_log.txt which contains result.
But the query not working as... (3 Replies)
Discussion started by: rajsp217
3 Replies
9. Shell Programming and Scripting
hi,
i am using ftp to get files from remote server. inside the ftp i want to us ls -ltr command and send the output of it to a file.
ftp -n remote_server <<_FTP
quote USER username
quote PASS password
prompt noprompt
pwd
ls -ltr
get s1.txt
bye
_FTP
i... (4 Replies)
Discussion started by: Little
4 Replies
LEARN ABOUT MOJAVE
dbix::class::cdbicompat5.18
DBIx::Class::CDBICompat(3) User Contributed Perl Documentation DBIx::Class::CDBICompat(3)
NAME
DBIx::Class::CDBICompat - Class::DBI Compatibility layer.
SYNOPSIS
package My::CDBI;
use base qw/DBIx::Class::CDBICompat/;
...continue as Class::DBI...
DESCRIPTION
DBIx::Class features a fully featured compatibility layer with Class::DBI and some common plugins to ease transition for existing CDBI
users.
This is not a wrapper or subclass of DBIx::Class but rather a series of plugins. The result being that even though you're using the
Class::DBI emulation layer you are still getting DBIx::Class objects. You can use all DBIx::Class features and methods via CDBICompat.
This allows you to take advantage of DBIx::Class features without having to rewrite your CDBI code.
Plugins
CDBICompat is good enough that many CDBI plugins will work with CDBICompat, but many of the plugin features are better done with
DBIx::Class methods.
Class::DBI::AbstractSearch
"search_where()" is fully emulated using DBIC's search. Aside from emulation there's no reason to use "search_where()".
Class::DBI::Plugin::NoCache
"nocache" is fully emulated.
Class::DBI::Sweet
The features of CDBI::Sweet are better done using DBIC methods which are almost exactly the same. It even uses Data::Page.
Class::DBI::Plugin::DeepAbstractSearch
This plugin will work, but it is more efficiently done using DBIC's native search facilities. The major difference is that DBIC will not
infer the join for you, you have to tell it the join tables.
Choosing Features
In fact, this class is just a recipe containing all the features emulated. If you like, you can choose which features to emulate by
building your own class and loading it like this:
package My::DB;
__PACKAGE__->load_own_components(qw/CDBICompat/);
this will automatically load the features included in My::DB::CDBICompat, provided it looks something like this:
package My::DB::CDBICompat;
__PACKAGE__->load_components(qw/
CDBICompat::ColumnGroups
CDBICompat::Retrieve
CDBICompat::HasA
CDBICompat::HasMany
CDBICompat::MightHave
/);
LIMITATIONS
Unimplemented
The following methods and classes are not emulated, maybe in the future.
Class::DBI::Query
Deprecated in Class::DBI.
Class::DBI::Column
Not documented in Class::DBI. CDBICompat's columns() returns a plain string, not an object.
data_type()
Undocumented CDBI method.
Limited Support
The following elements of Class::DBI have limited support.
Class::DBI::Relationship
The semi-documented Class::DBI::Relationship objects returned by "meta_info($type, $col)" are mostly emulated except for their "args"
method.
Relationships
Relationships between tables (has_a, has_many...) must be declared after all tables in the relationship have been declared. Thus the
usual CDBI idiom of declaring columns and relationships for each class together will not work. They must instead be done like so:
package Foo;
use base qw(Class::DBI);
Foo->table("foo");
Foo->columns( All => qw(this that bar) );
package Bar;
use base qw(Class::DBI);
Bar->table("bar");
Bar->columns( All => qw(up down) );
# Now that Foo and Bar are declared it is safe to declare a
# relationship between them
Foo->has_a( bar => "Bar" );
AUTHOR AND CONTRIBUTORS
See AUTHOR and CONTRIBUTORS in DBIx::Class
LICENSE
You may distribute this code under the same terms as Perl itself.
perl v5.18.2 2013-12-16 DBIx::Class::CDBICompat(3)