subsitution for rcmd

This is a discussion on subsitution for rcmd within the C Programming forums, part of the General Programming Boards category; hi everyone, I m looking for a subsitution for rcmd(). i want make a client server application run on a ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    3

    Question subsitution for rcmd

    hi everyone,

    I m looking for a subsitution for rcmd(). i want make a client server application run on a standalone machine.
    currently i am going with unix file sockets.

    my doubts are:
    1. is there only one stdin, stdout and strerr sockets for a linux machine or if we open different termnals then will those terminals have their own stdin, stdout, stderr soket descriptors

    2. Is it possible for a program running in one terminal to copy the standard io descriptors of other terminal.

    3.can a program runnin in one terminal send data to the stdin descriptor of other terminal


    i tried doing it but the parent prints the data in its own terminal not in client terminal.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Don't double post. Posting in multiple threads leads to people answering threads that have already been answered.

    Other thread has an answer:
    subsitution for rcmd -> local command

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. subsitution for rcmd -> local command
    By anujaggarwal85 in forum Linux Programming
    Replies: 2
    Last Post: 05-24-2008, 03:00 PM

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