Unix Technical Forum

how to receive a value returned by a unix command running in a stored procedure?

This is a discussion on how to receive a value returned by a unix command running in a stored procedure? within the Informix forums, part of the Database Server Software category; --> Hello friends, I have a stored procedure that will trigger a awk program using the system() command. The awk ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:18 PM
ggk517@gmail.com
 
Posts: n/a
Default how to receive a value returned by a unix command running in a stored procedure?

Hello friends,

I have a stored procedure that will trigger a awk program using the
system() command. The awk program will return a value after completed.
However, I cannot get that return value in the stored procedure. Can
someone please hellllppppp me?

LET runcmd = ' awk ''{...}'' ';
LET prod = system (runcmd);

ps: there is no value for prod.

Thanks a lot for your help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 12:18 PM
Jonathan Leffler
 
Posts: n/a
Default Re: how to receive a value returned by a unix command running ina stored procedure?

ggk517@gmail.com wrote:
> I have a stored procedure that will trigger a awk program using the
> system() command. The awk program will return a value after completed.
> However, I cannot get that return value in the stored procedure. Can
> someone please hellllppppp me?
>
> LET runcmd = ' awk ''{...}'' ';
> LET prod = system (runcmd);
>
> ps: there is no value for prod.


Google is your friend.

Look at: http://tinyurl.com/o6gb5

It leads to a 3-message discussion from April 2006 about this issue.
The third message may in fact be the most relevant to you.

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com