I have a sript which is going to trigger other 3 scripts in background simultaneously
for eg:
Main Script:(main.sh)
-----------
sh a.sh &
sh b.sh &
sh c.sh &
How to catch the exit status and store it in a variable for all those three scripts in main script. Is there any other way of... (4 Replies)
could somebody tell me please how to exit a shell script:
if
then
echo "No arguments detected"
exit 1
fi
...
echo "still there" # is displayed .. :-( (4 Replies)
if
then
# mail -s "Import failed file does not exist" sanjay.jaiswal@xyz.com
echo "FILE does not exist"
exit 1
fi
echo "FILE EXIST"
size=-1
set $(du /export/home/oracle/nas/scott21.dmp.gz)
while
do
echo "Inside the loop"
size=$1
set $(du... (1 Reply)
HI All,
I am running one shell script, in that script i am calling 4 scripts in the background.
abc.ksh &
efg.ksh &
xky.ksh &
mno.ksh &
please let me know, how could i find the success and failure of each script.
i Cannot use $?, because i want to run all the scripts in parellel.
... (2 Replies)
Hello gurus,
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
call 3.1;
If 3.1 = "complete" then
call 3.2;
if 3.2 = ''COMPlete" then
call 3.3;
else
exit
The... (1 Reply)
I'm trying to execute a script from within my java code. The execution of the script is over(it's pid is no more), but java is stuck on waitFor() method of the shell script process!. And yes, I'm reading output and error streams in 2 separate threads. Yes, they are being joined at the end(after... (0 Replies)
Does anyone know any websites where there are finished scripts, can be for anything
Just want to copy and paste it and manipulate into something I could use.
danke schon (0 Replies)
Heyas,
Since this question (similar) occur every now and then, and given the fact i was thinking about it just recently (1-2 weeks) anyway, i started to write something :p
The last point for motivation was... (17 Replies)
Discussion started by: sea
17 Replies
LEARN ABOUT DEBIAN
jifty::dbi::filter::yaml
Jifty::DBI::Filter::YAML(3pm) User Contributed Perl Documentation Jifty::DBI::Filter::YAML(3pm)NAME
Jifty::DBI::Filter::YAML - This filter stores arbitrary Perl via YAML
SYNOPSIS
use Jifty::DBI::Record schema {
column my_data =>
type is 'text',
filters are qw/ Jifty::DBI::Filter::YAML /;
};
my $thing = __PACKAGE__->new;
$thing->create( my_data => { foo => 'bar', baz => [ 1, 2, 3 ] } );
my $my_data = $thing->my_data;
while (my ($key, $value) = %$my_data) {
# do something...
}
DESCRIPTION
This filter provides the ability to store arbitrary data structures into a database column using YAML. This is very similar to the
Jifty::DBI::Filter::Storable filter except that the YAML format remains human-readable in the database. You can store virtually any Perl
data, scalar, hash, array, or object into the database using this filter.
In addition, YAML (at least the storage of scalars, hashes, and arrays) is compatible with data structures written in other languages, so
you may store or read data between applications written in different languages.
METHODS
encode
This method is used to encode the Perl data structure into YAML formatted text.
decode
This method is used to decode the YAML formatted text from the database into the Perl data structure.
IMPLEMENTATION
This class will attempt to use YAML::Syck if it is available and then fall back upon YAML. This has been done because the Syck library is
written in C and is considerably faster.
SEE ALSO
Jifty::DBI::Filter, YAML, YAML::Syck
AUTHOR
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
LICENSE
This program is free software and may be modified or distributed under the same terms as Perl itself.
perl v5.14.2 2010-09-21 Jifty::DBI::Filter::YAML(3pm)