Sponsored Content
Top Forums UNIX for Advanced & Expert Users Executing a .dll from a Unix script Post 100714 by BCarlson on Wednesday 1st of March 2006 12:24:01 PM
Old 03-01-2006
Executing a .dll from a Unix script

Is it possible for a Unix script to execute a .dll. If so, where would I find information/examples of how to do that?

Thanks, in advance, for any help. Smilie
 

10 More Discussions You Might Find Interesting

1. Programming

I am porting Dll from NT to Unix, how should I proceed

I am porting Dll from Windows NT to Unix, Could any body pls guide me how should I proceed?? (3 Replies)
Discussion started by: Vipin
3 Replies

2. Programming

Need to port C dll to UNIX

I have source code of a Windows C DLL. It complies properly and works. Now I need to port it to UNIX environment. I need to know if I can create a Dynamic Library or only Static Library is possible in UNIX. In case I can create a Dynamic Library please guide me how to proceed. Or if there... (2 Replies)
Discussion started by: ana_puri
2 Replies

3. What is on Your Mind?

Can we run a dll in unix?

I have created DLLs in c++. Is it possible to run these DLLs in unix so that I can save time converting function/scripts in unix? In this way I can reuse these DLL in Unix. Thanks. (2 Replies)
Discussion started by: alestoquia
2 Replies

4. Programming

Using Windows DLL in UNIX

Hello, I am sorry to bother you all but I am thinking about switching to UNIX and I am a complete novice there. The problem is that I need to call a C++ dll on UNIX platform which was compiled on Windows. I don't have the source code of the dll as well. I just need to call this dll in my C++... (2 Replies)
Discussion started by: clickoo
2 Replies

5. UNIX for Dummies Questions & Answers

Possible to use a Java app with dll files on Unix-systems

Hi... I have build a program for the Velleman K8000 interface card, in java, which works just fine in windows, but now I want to use the program on a Unix-System. Is it possible to somehow convert the dll file to a format that Unix supports, or do I have to find another way? Dll-file:... (3 Replies)
Discussion started by: Scorp-D
3 Replies

6. UNIX for Advanced & Expert Users

Executing SQLPLUS in UNIX Script from JAVA

Hi ALL, I would like to execute one SQL query(ORACLE) in UNIX shell script. For this I used sqlplus in script and tested locally. It worked fine. But my requiremnt is to execute the script from Java. In this case the UNIX part is working but sqlplus is not returning anything The JAVA code used... (0 Replies)
Discussion started by: anooptech
0 Replies

7. UNIX for Advanced & Expert Users

Executing a shell script from windows;script present in unix

I need to execute a shell script kept in unix machine from windows. User id, password area available. For eg. There's a shell script wich moves all the logs kept in my home directory to a directory named LOGS. Now i need to get this done through windows; either using a batch file, or java... (4 Replies)
Discussion started by: rajneesh_kapoor
4 Replies

8. Shell Programming and Scripting

sh script to get unix username of person executing it

Hi, I am writing a script, and I need to incorporate some logic where I can find out the unix username of the person who is executing the script. The issue is , a particular user could have "sesu" ed into a group id. for eg. root, and then executed the script. In that case, instead of root,... (5 Replies)
Discussion started by: neil.k
5 Replies

9. Shell Programming and Scripting

Executing java .jar from UNIX script

I have a .jar placed in my Unix directory. The .jar creates a .csv file .I want to execute the .jar and place the output file in a target Unix directory. The Unix Script is as follows. The issue that i am facing is that the file is not being placed in the REPORTDIR=/cdunix/IQNavigator/wrk instead... (4 Replies)
Discussion started by: pankajkargeti12
4 Replies

10. UNIX for Advanced & Expert Users

Executing of UNIX script using email

Dear Unix Leads, can you please let me know is it possible to execute a shell script in UNIX machine sending an email from outlook or gmail ? or is it possible to generate a token file in UNIX by sending email which we can indirectly use to trigger script your response on this is highly... (5 Replies)
Discussion started by: mirwasim
5 Replies
Mono(Mono 1.0)															    Mono(Mono 1.0)

NAME
mono-config - Mono runtime file format configuration DESCRIPTION
The Mono runtime will load configuration data from the installation prefix /etc/mono/config file, the ~/.mono/config or from the file pointed by the MONO_CONFIG environment variable. For each assembly loaded a config file with the name: /path/to/the/assembly.exe.config is loaded as well as the ~/.mono/assemblies/ASSEM- BLY/ASSEMBLY.EXT.config file. This file controls the behavior of the runtime. The file contains an XML-like file with various sections, all of them contained inside a section (It actually uses GMarkup to parse the file). This page describes the Unix-specific and Mono-specific extensions to the configuration file; For complete details, see the http://www.mono-project.com/Config web page. <dllmap> directive You use the dllmap directive to map shared libraries referenced by P/Invoke in your assemblies to a different shared library. This is typically used to map Windows libraries to Unix library names. The dllmap element takes two attributes: dll This should be the same string used in the DllImport attribute, optionally prefixed with "i:" to indicate that the string must be matched in a case-insensitive way target This should be the name of the library where the function can be found: this name should be suitable for use with the platform native shared library loading routines (dlopen etc.), so you may want to check the manpages for that, too. <dllentry> directive This directive can be used to map a specific dll/function pair to a different library and also a different function name. It should appear inside a dllmap element with only the dll attribute specified. The dllentry element takes 3 attributes: dll This is the target library, where the function can be found. name This is the name of the function as it appears in the metadata: it is the name of the P/Invoke method. target This is the name of the function to lookup instead of the name specified in the P/Invoke method. Mapping based on operating system and cpu Both the dllmap and the dllentry elements allow the following two attributes which make it easy to use a single configuration file and sup- port multiple operating systems and architectures with different mapping requirements: os This is the name of the operating system for which the mapping should be applied. Allowed values are: linux, osx, solaris, freebsd, openbsd, netbsd, windows, aix, hpux. cpu This is the name of the architecture for which the mapping should be applied. Allowed values are: x86, x86-64, sparc, ppc, s390, s390x, arm, mips, alpha, hppa, ia64. wordsize This is the size of registers on the target architecture, it can be either 32 or 64. The attribute value for both attributes can be a comma-separated list of the allowed values. Additionally, the first character may be a '!' to reverse the meaning. An attribute value of "!windows,osx", for example, would mean that the entry is considered on all operating sys- tems, except on Windows and OS X. No spaces are allowed in any part of the value. Note that later entries will override the entries defined earlier in the file. EXAMPLES
The following example maps references to the `cygwin1.dll' shared library to the `libc.so.6' file. <configuration> <dllmap dll="i:cygwin1.dll" target="libc.so.6"/> </configuration> The library name in the DllImport attribute is allowed to be in any case variant, like the following examples: [DllImport ("cygwin1.dll")] [DllImport ("Cygwin1.dll")] [DllImport ("cygwiN1.Dll")] This one maps the following C# method: [DllImport ("libc")] static extern void somefunction (); to differentfunction in libdifferent.so , but to the same function in the library libanother.so when running under the Solaris and FreeBSD operating systems. <configuration> <dllmap dll="libc"> <dllentry dll="libdifferent.so" name="somefunction" target="differentfunction" /> <dllentry os="solaris,freebsd" dll="libanother.so" name="somefunction" target="differentfunction" /> </dllmap> </configuration> SEE ALSO
mono(1),monodis(1),mint(1) Mono(Mono 1.0)
All times are GMT -4. The time now is 03:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy