The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Issue with shared object in AIX dhanamurthy UNIX for Advanced & Expert Users 1 05-16-2007 09:16 AM
calling a shared object from a daemon axes High Level Programming 11 11-01-2006 04:46 PM
Shared Object library problem suman_jakkula AIX 0 09-06-2006 05:40 AM
Shared Object File sarwan Linux 0 10-07-2005 05:27 AM
Does my ld support shared object creation linuxpenguin High Level Programming 0 03-17-2004 12:52 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-19-2008
yhacks yhacks is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 21
Post Any way to access shared object using shell

Hi,

I have created a shared object (abc.so) which has a function sum(int a, int b).
Is there any way to load the "abc.so" and use the sum function using shell script..
thanks in advance
  #2 (permalink)  
Old 05-19-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
I understand ksh has a facility for this, but in the general case, the answer is no; you'd have to create a wrapper in C or some other language.
  #3 (permalink)  
Old 05-19-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,912
Only ksh93 (not ksh88 or pdksh) has this ability. However there is very little good or accurate documentation on this subject. Attached is a pdf of an recent article which shows you by example how to write such extensions.
Attached Files
File Type: pdf KSH93 Custom Built.pdf (29.3 KB, 51 views)
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0