Unix Technical Forum

OS type using SP

This is a discussion on OS type using SP within the Informix forums, part of the Database Server Software category; --> Hi, Is it possible use the SYSTEM SPL to find the OS details using 'uname' command. I am using ...


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, 11:03 AM
Antony U P
 
Posts: n/a
Default OS type using SP

Hi,

Is it possible use the SYSTEM SPL to find the OS details using 'uname'
command. I am using 7.31.UD7

I tried this:

> create procedure getosname()
> SYSTEM 'uname';
> end procedure;


Routine created.

> execute procedure getosname();


Routine executed.

How do I get the output to be printed other than redirecting it to a
temp file and then getting the data from there. Using UDR is not
possible as this is 7.31.

Is there any other way to get the platform type using a SPL..

Thanks

Antony

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 11:03 AM
david@smooth1.co.uk
 
Posts: n/a
Default Re: OS type using SP


Not that I can think of.

Why does the platform type of the database server matter?

Perhaps run some sql to stick this into a table somewhere
that you can query rather than doing the uname each time?

X=`uname -a`
echo 'insert into table x values ("'${X}'";' | dbaccess mydb


stick this in a table

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 05:24 PM.


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