run dll in linux

This is a discussion on run dll in linux within the C++ Programming forums, part of the General Programming Boards category; is there a way you can run dlls in linux/solaris. i want to write a dll which upon execution creates ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    7

    run dll in linux

    is there a way you can run dlls in linux/solaris. i want to write a dll which upon execution creates a directory in linux/solaris box.

    any pointers / alternatives. please help

    thanx in advance.

    Abhishek

  2. #2
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    yes, they are called shared libraries on unix. For what you are asking, you may want to just create a shell script.

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    7
    rather let me put it this way

    I need to run some commands in linux box... so is there any API available in C++ which will establish a connection with linux box

    cheers

  4. #4
    Registered User
    Join Date
    Nov 2005
    Posts
    7
    so does it mean that the shell scripts are eventually being called from c++ code

  5. #5
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    are you attempting to connect to *nix from MS-Windows? or just run a program on *nix? If the program is already running on the *nix box, why do you need a library to make a directory when you can just use standard C library functions, such as mkdir() to do it?

  6. #6
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    ok, I guess I see what you are trying to do. You want to create a program in Windows that uses a DLL that connects to a unix box and creates a directory on that box? Well, you would need to get familiar with the telnet protocol. Then you could telnet to the unix machine, login as a user that has rights to create that directory, then just call "mkdir /path"

  7. #7
    Registered User
    Join Date
    Nov 2005
    Posts
    7
    hmmmm.......connecting using the telnet protocol. that is one way of doing it i guess. thanx for that. i think i have to find a way in c++ to connect to linux using telnet pretty quickly now. any pointers on that are again welcomed. thanx again

  8. #8
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Use sockets, if you are doing this on windows find a winsock tutorial. Next you need to read the telnet rfc so that you can implament the protocol allthough there is allready a lot of source code out there for this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 12:40 PM
  2. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 12:03 PM
  3. linux, doubles, and unions
    By paraglidersd in forum Linux Programming
    Replies: 14
    Last Post: 11-19-2008, 11:41 AM
  4. Replies: 8
    Last Post: 03-10-2008, 01:08 PM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 02:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21