09-09-2011
I have done the same but still no luck
Please help me out
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a script (a.pl) that can be run by anyone. The script internally has to read a file and write into few files which are owned by user 'myUser'.
Has to read the following file:
-rwx------ 1 myuser myuser 4986 Aug 20 18:11 my.file
Has to write into following files:
... (0 Replies)
Discussion started by: sarmakdvsr
0 Replies
2. Shell Programming and Scripting
Hi,
How can i execute .profile from a perl script
I need this - i am trying to run perl script from crontab
and it looses the environment variables
Please provide help
Your help is greatly appreciated
Thanks (1 Reply)
Discussion started by: prekida
1 Replies
3. Shell Programming and Scripting
Hi Gurus,
I've a find command that gets the list of files from a source directory where the extension is not html, xml, jsp, shtml or htaccess. The below find command runs fine from the command prompt or in a shell script. I need to eventually run it in a PERL script and am getting the... (5 Replies)
Discussion started by: voorkey
5 Replies
4. Shell Programming and Scripting
Hi All,
I have been given a perl script to modify but which is not running completely.And it is not showing any errors also.
The script is :
#!/usr/local/bin/perl
print "Which transaction? ";
print "\n";
print "1 - Inquiry";
print "\n";
print "2 - Delete Bank";
print "\n";
print... (8 Replies)
Discussion started by: usha rao
8 Replies
5. Programming
Hi All,
This Monday 15th March 2010, i have faced a weired issue with my Perl script execution, this script is scheduled to run at 1 minute past midnight on daily basis ( 00:01 EST ) generally for fetching previous business date , say if it is Monday it should give last Friday date, for Tuesday... (0 Replies)
Discussion started by: ravimishra
0 Replies
6. Shell Programming and Scripting
I have a simple perl script that looks similar to this:
#!/usr/bin/perl/
# Have a lot of PERL code in the front of this script.
#Would now like to execute a system command using AWK
system (qq(cd /location && awk '/full/ {print $1;exit}' /myfile));
The system command in my perl script... (4 Replies)
Discussion started by: SysAdm2
4 Replies
7. Shell Programming and Scripting
Hi Folks,
I have 2 perl scripts and I need to execute 2nd perl script from the 1st perl script in WINDOWS.
In the 1st perl script that I had, I am calling the 2nd script
main.pl
===========
print "This is my main script\n";
`perl C:\\Users\\sripathg\\Desktop\\scripts\\hi.pl`;
... (3 Replies)
Discussion started by: giridhar276
3 Replies
8. Shell Programming and Scripting
Hi,
I have a perl snippet that call a select query with a bind variable,when i compile the script I'm unable to get the query output.
The same query when i fire in sqlplus fetches few rows.
The query takes bit time to fetch results in sqlplus.
my $getaccts = $lda->prepare("select distinct ... (1 Reply)
Discussion started by: rkrish
1 Replies
9. Shell Programming and Scripting
I have executed the below perl script for copying the file from one server to another server using scp.
#!/usr/bin/perl -w
use Net::SCP::Expect;
use strict;
$server= "x.x.x.x";
my $source = "/mypath/mypath";
my $destination = "/home/";
print "Login...Starting scp...";
$user="admin";... (1 Reply)
Discussion started by: scriptscript
1 Replies
10. Shell Programming and Scripting
i have perl script that used to be working great , once i edit it in windows
and convert it to UTF-8 and then via FTP return it .
also did:
chmod +x foo.pl
and then when i try to run it :
./foo.pl
im getting this error:
./foo.pl: Exec format error. Wrong Architecture.... (4 Replies)
Discussion started by: umen
4 Replies
LEARN ABOUT DEBIAN
tangram::type::dump::any
Tangram::Type::Dump::Any(3pm) User Contributed Perl Documentation Tangram::Type::Dump::Any(3pm)
NAME
Tangram::Type::Dump::Any - Intuitive DataBase InterFace
SYNOPSIS
# ... in a nearby Tangram::Schema structure ...
SomeClass =>
{ fields =>
{ idbif => {
-options => { dumper => 'Data::Dumper',
},
some_field => undef,
some_property => undef,
some_attribute => undef,
each_one => undef,
gets => undef,
saved => undef,
},
string => {
cheese => undef,
},
},
};
DESCRIPTION
The idbif mapping type collates multiple data members into a single perl_dump (see Tangram::Type::Dump::Perl), storable (see Tan-
gram::Type::Dump::Storable) or yaml (see Tangram::Type::Dump::YAML) column.
For instance, with the schema definition in the example, all the columns in the example would be serialised via Data::Dumper.
If you stored an object like this:
$cheese = bless { cheese => "gouda",
gets => 6,
each_one => 9 }, "SomeClass";
You would see something in your database similar to:
/^'--v------v--------v----------------------------'^
| id | type | cheese | idbif |
>----o------o--------o------------------------------<
| 1 | 42 | gouda | { gets => 6, each_one => 9 } |
\_,--^------^--------^----------------------------._/
(note: the actual output from your SQL Database client may differ from the above)
So, if you're the sort of person who likes to set their attributes with accessors, but doesn't like the overhead this places on the
RDBMS... then this may help. Note: the real benefits of this mapping type are for when you're storing more complex data structures than
"6" and "9" :-).
You may prefer to use the default dumping type, which is storable.
LINKS TO OTHER OBJECTS
If Tangram encounters another object which is already in storage (ie, has been inserted via "$storage->insert($foo)"), then it will store a
"Memento". This memento includes the object ID, which is sensitive to schema changes (the ordering of classes in the schema).
If the class implements a "px_freeze" and "px_thaw" function, then there will be a "Memento" that includes the class name of the object,
and the data that was returned by the class' "px_freeze" method. To be reconstituted, it is called as:
SomeClass->px_thaw(@data)
See Tangram::Type::Dump for more details on the complicity API.
Please set RETVAL to be the thawed object. (that is, return a single scalar).
BUT, I REALLY, REALLY HATE SCHEMAS!
However, maybe you are one of those folk who don't like to declare their attributes, instead peppering hashes willy nilly, then there is
another option.
Instead of explicitly listing the fields you want, if you don't specify any fields at all, then it means save ALL remaining fields into the
column. For convenience, "-poof" is provided as a synonym for "-options", so you can write:
{ fields =>
{ idbif => { -poof => # There goes another one!
{
},
}
},
}
[ You see, Tangram::Type::Dump::Any isn't actually an intuitive DB interface. No, an intuitive DB interface is a user interface component,
and that title is reserved for Visual Tangram. VT expects to pick up the title with any luck by the end of the 21st century^W RSN!
I Don't Believe In Fairies is actually what it stands for. It's a completely arbitrary name; chosen for no reason at all, and certainly
not anything to do with Pixie. ]
perl v5.8.8 2006-03-29 Tangram::Type::Dump::Any(3pm)