The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with a function in a shell script neeto Shell Programming and Scripting 3 05-21-2008 07:53 AM
how can i call a function in shell script rajesh.P Shell Programming and Scripting 4 01-16-2008 10:24 PM
calling one function from another shell script trichyselva UNIX for Dummies Questions & Answers 1 01-16-2008 09:28 PM
exit shell script from function nvrh7 Shell Programming and Scripting 1 11-27-2005 08:28 AM
How to pass arguments to a function in a shell script? preetikate Shell Programming and Scripting 3 03-01-2004 01:55 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-27-2005
Registered User
 

Join Date: Sep 2005
Posts: 38
getting the value of a c function in shell script

Let say there is a module fileselection module written in c language which returns the file name. Is it possible to get the file name from the file selection module directly, I mean can we call a c function directly in shell script without doing executable. If possible then how it can be implemented. If there is any other way to implement the same thing then please let me know. Let me make more clear. consider a shell script fileimport and c function fileselection module. This file selection module returns a file name. i want this file name in my script. how is it possible?
Reply With Quote
Forum Sponsor
  #2  
Old 09-27-2005
RishiPahuja's Avatar
Registered User
 

Join Date: Apr 2005
Location: Bangalore, India
Posts: 203
Without a main() in C you cannot have an entry point and an executable. Of course if you wrap your module inside a main it will do the trick

Btw in Windows we do have DLLs where we can call modules directly as required from other applications...how it goes in Unix...any thoughts on this?

rishi
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0