Connecting windows through Unix

This is a discussion on Connecting windows through Unix within the Tech Board forums, part of the Community Boards category; Hello Experts, thanks for helping me in previous post, here is the another question i have, is there any way ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    99

    Connecting windows through Unix

    Hello Experts,
    thanks for helping me in previous post,
    here is the another question i have,
    is there any way i can connect windows from unix,
    means when we do rsh m/c name in unix it virtually connects through rshd,

    so in the same way if i do just rsh(anycommnad) name of the m/c which consists of windows it should connect and should execute all the commnads

    for ex: (command) m/c name
    >it should provide promt
    >dir(commnad)
    it should execute

    how can i implement this, can anyone please help me.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    What need? Just install cygwin and its sshd on the Windows computer.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    99
    Thank u CornedBee,
    thank u for your inputs as iam going through cygwin i read this is mainly installed in windows in order to get the unix lke environment,

    but i want to work in both the ways not only windows and unix it should be compatible with all operating systems like linux ,solaris etc so that i can connect from any environment to windows and vice versa is ther any possible way to implement this.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,455
    but i want to work in both the ways not only windows and unix it should be compatible with all operating systems like linux ,solaris etc so that i can connect from any environment to windows and vice versa is ther any possible way to implement this.
    What exactly do you mean by "connect from any environment to windows"? The opposite makes more sense, e.g., you could use PuTTY as a SSH client to connect to an SSH server that runs on some arbitrary system on the net, to which you have access.

    Are you talking about running other operating systems on top on Windows? If so, you may be looking for virtualisation software like VMware.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by laserlight View Post
    What exactly do you mean by "connect from any environment to windows"? The opposite makes more sense, e.g., you could use PuTTY as a SSH client to connect to an SSH server that runs on some arbitrary system on the net, to which you have access.

    Are you talking about running other operating systems on top on Windows? If so, you may be looking for virtualisation software like VMware.
    I suppose maybe the OP could, therefore, make his Windows machine the SSH server (probably via cygwin) and then any operating system that speaks ssh could connect to the windows machine. (Whether this is a good idea is left as an exercise.)

  6. #6
    Registered User
    Join Date
    Nov 2007
    Posts
    99
    yes exactly ,
    as u discussed like making windows as server and any operating system as client and connecting , i am asking whether opposite is also possible, means my s/w should be so flexible that i can make any operating system as server(for eg :unix) and can connect to other operating system as client is this way is it possible in any way that was my question. Here iam not specific about windows,.

    as cygwin will make windows only as server, i want to implement a s/w whenever i run it on any operating system it acts as server and accepts the clients from other operating system.

    know my question is quite clear i think. so whether is there any way to do this.

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Of course there is. Write a program - ideally in Java, so you won't even have to recompile it - that listens on a socket, accepts connections, and interprets commands coming in through those connections. Trivial server programming.

    The real trouble is the command interpreter, because it's not trivial writing a proper shell.

    That's why you shouldn't write such a program. Instead, use SSH, which is such a program. The ssh daemon runs on every *nix, including MacOS X, and on Windows using Cygwin.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    You are aware that you won't be able to get the same type of console or terminal on each operating system, in all likelihood?

    Why do you want to do this?

    If you wanted to go all-out, you could create your own "shell" using sockets. You should be able to make that cross-platform. But it would basically turn into ssh eventually, I think.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  9. #9
    Registered User
    Join Date
    Nov 2007
    Posts
    99
    Thank u for u r inputs,
    after reading the article about SSH i understood that openSSH serves my requirement ,
    which works on all platforms in windows through cygwin,

    but i didnot get the proper link in order to download and how to use with my system, can anyone provide me some useful links.

  10. #10
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,412
    You will probably have to be more specific in what exactly you want to be able to do, vin_pll.

    Your requirements may range from a simple ssh connection, in which case probably no programming is necessary on your part, to a full fledged server-client application. In any case the answer is always yes, you can make a *nix machine act as a server to any other operating system that allows for networking operations.

    Traditionally, as already mentioned operations on a *nix machine being carried out on a windows machine are made through some form of shell, like PuTTY. For all effects, you are always operating under a client-server architecture. Under this ssh application, you are connecting to a *nix machine, through a *nix daemon, which is acting as a server, by means of an application built for windows.

    However, putting aside the possibility that you could build your own specialized shell in windows connecting to an existing *nix daemon or to a new one you also would build (probably no need to do this because, after all, applications like PuTTY already exist), you can also create a traditional client-server application that could perform specific tasks on *nix machine by means of a windows client application.

    Traditionally, client-server applications work by:

    - Coding a server application in the target operating system (in your case probably Linux). This application waits for requests, parses them and performs the related task. For instance, it could wait for a command to read th contents of a directory and send this information back.

    - Coding a client application in the source operating system that sends requests according to the rules established by the server application and interprets the results. For instance, a windows application that requests a directory contents listing from a Linux machine and formats the results on a windows Explorer-like interface.

    Applications like the above make up the traditional client-server application in which one machine acts as a server (waits for requests and performs their related tasks) and another as a client (sends requests and interprets results).

    Why do you need to be more specific? Well, because Linux on this case, has a lot of it already covered for you. Unless you have a specialized need, chances are there are already daemons or other tools built for your specific needs.

    - You want to, say, have a home network connecting through the internet with a Linux machine acting as a gateway and Windows machines as clients? You can.

    - You want to have a Linux machine act as a file server or even a printer server feeding windows client machines? You can.

    - You want to have Linux store a database for your windows business applications to read/write on? You can. You can. You can.

    - ... ad quase infinitum

    EDIT: Oh well, took me a bit to write this. Your last reply wasn't there when I started.
    Last edited by Mario F.; 06-23-2008 at 04:00 AM.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  11. #11
    Registered User
    Join Date
    Nov 2007
    Posts
    99
    thank you Mario,

    thank you for your inputs thanks for taking time to explain me me clearly if u know some useful URLS please give me so that i can study more, and start implementing my task.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to program in unix
    By Cpro in forum Linux Programming
    Replies: 21
    Last Post: 02-12-2008, 09:54 AM
  2. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  3. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 08:39 AM
  4. How May I connect from Windows NT to Unix
    By jose luis in forum C Programming
    Replies: 3
    Last Post: 08-22-2002, 03:12 PM
  5. Windows or Unix environment
    By ghe1 in forum Windows Programming
    Replies: 5
    Last Post: 02-19-2002, 10:37 AM

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