Result of Catching Return Value from Sub_script.sh to Main_script.sh is not as Expected
Main_script.sh
********************
Sub_script.sh
******************** Main Script Execution Output:
******************** Expected Main Script Execution Output:
********************
How to return a custom exit code from Sub_script.sh to Main_script.sh
Thanks a lot in Advance.
-Duddukuri
Last edited by Scrutinizer; 10-15-2012 at 02:05 AM..
Reason: code tags
Hi frnds...
I m facing very irritating problem already waisted my 2 days..
I have a following script..( i am pasting only the main code)
ftp -ivn 213.194.40.77 <<FTP
user $user $password
binary
cd $FileDir/out
lcd $localpath
get $file
rename $FileDir/out/$file $FileDir/tmp/$file... (1 Reply)
I have five classes. 2 composition classes,1 aggregation class and 1 dependency class.I have coded all the classes but one of my test program is not giving me the expected result.I have the following classes:
TimeStamp
Interval (composition of 2 TimeStamps)
TimeSheet ( aggregation of many... (3 Replies)
Hi,
We are using a shell script which is called from COBOL program. Here the program works fine till we are using MicroFocus(MF) COBOL 4 and UNIX AIX 5.3.
Recently we have upgraded to MicroFocus(MF) COBOL 5.1 but same AIX version. now the shell script not working as expected.
The shell... (5 Replies)
Hi Gurus,
I need a script to compare two files: sample file like below:
list:
cde,file4
cde,file5
def,file6
def,file7
def,file8
abc,file1
abc,file2
abc,file3
acd,file9
acd,file10
tmp
file1
file2
file3
file4 (12 Replies)
Hello,
I am trying to print out the first string matching query with grep and I need your help.
My scenario:
Database
John F
4433 Street No 88 CA
Elisabeth Taylor
7733 Street No 26 ON
Jack Nicholson
0133 Green Park No 34 AR
John F 2
9399 Southpark No 02D UT
test.sh... (6 Replies)
Hi Experts,
I have written the below script but its not working as per expectation.
My requirement is if this condition ] is satisfied
then only check for this condition ] if this also satisfied check for the condition ].
vi p_values.ksh
path="/db/ora/files"
mode=1
b_days=10... (5 Replies)
Hi Gurus,
I run command grep ABC file1 > file2 against below file. I got all ABC_xxx in one line in file2. I expect to get multiple lines in file2. If I print result in screen, the result is expected.
thanks in advance
My os is SunOS 5.10 Generic_150400-64 sun4v sparc sun4v
ABC_123
XXXXX... (2 Replies)
Discussion started by: green_k
2 Replies
LEARN ABOUT DEBIAN
mojomojo::schema::result::page
MojoMojo::Schema::Result::Page(3pm) User Contributed Perl Documentation MojoMojo::Schema::Result::Page(3pm)NAME
MojoMojo::Schema::Result::Page - store pages
METHODS
update_content <%args>
Create a new content version for this page.
%args is each column of MojoMojo::Schema::Result::Content.
add_version
my $page_version_new = $page->add_version(
creator => $user_id,
name_orig => $page_new_name,
);
Arguments: %replacementdata
Returns: The new PageVersion object.
Creates a new page version by cloning the latest version (hence pointing to the same content), and replacing its values with data in the
replacement hash.
Used for renaming pages.
tagged_descendants($tag)
Return descendants with the given tag, ordered by name.
tagged_descendants_by_date
Return descendants with the given tag, ordered by creation time, most recent first.
descendants
@descendants = $page->descendants( [$resultset_page] );
In list context, returns all descendants of this page (no paging), including the page itself. In scalar context, returns the resultset
object.
If the optional $resultset_page is passed, returns that page from the resultset.
descendants_by_date
@descendants = $page->descendants_by_date;
Like "descendants", but returns pages sorted by the dates of their last content release dates and pages results (20 per page).
user_tags($user)
Return popular tags for this page used $user.
others_tags($user)
Return popular tags for this page used by other people than $user.
tags_with_counts($user)
Return an array of {id, tag, refcount} for the $user's tags.
path( [$path] )
TODO Accessor?
has_photos
Return the number of photos attached to this page. Use for galleries.
AUTHOR
Marcus Ramberg <mramberg@cpan.org>
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-01-12 MojoMojo::Schema::Result::Page(3pm)