![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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 |
||||
| Google The UNIX and Linux Forums |