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
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
yes, they are called shared libraries on unix. For what you are asking, you may want to just create a shell script.
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
so does it mean that the shell scripts are eventually being called from c++ code
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?
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"
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
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.