I need a help on the following question.

I need a help on the following question.

Post by Segn » Sun, 27 Feb 1994 07:00:14



 Hi, everyone

 I'm wondering if there's a way to execute an executable file in a remote
 machine from the executable file I'm running.  

 To be more clear, let's say I have an executable called 'exec1' in
 machine1, and I also have another executable called 'exec2' in the
 same directory in machine2.

 Now, my question is that how can I run 'exec2' in the machine2 from
 'exec1' in the machine1 while 'exec1' is running.

 Any suggestion or idea will be greatly appreciated

 Seg

 
 
 

1. Help needed on the following question

Hello, everyone

I need a help on the following simple program.  It is my understanding that
if I have the following lines of codes, I should be able to execute <clip> on
<phantasm> by simply running the executable generated from compiling this program.

However, when I ran the executable from this program, it ran without any error,
but the <clip> was not executed at all.  Am I missing something here?

Any help would be appreicated.

Seg

P.S.    The executable of this program is at "mylogin/proj/test" on a machine
        called "guzzler" and the "clip" is at "mylogin/proj/src/ on "phantasm".
        The "clip" is an executable for a bigger program that initally askes
        for user inputs.

#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>

char *host[] = { "phantasm" };
char *user = "mylogin";
char *passwd = "mypassword";
char *comd = "mylogin/proj/src/clip";         /* clip is the executable */

main()
{
    struct servent *servent;

    servent = getservbyname("exec", "tcp");
    rexec(host, servent->s_port, user, passwd, comd, 0);

2. Cyrix 6x86

3. Contract Linux Support

4. I need answers for the following questions:

5. D-Link (DE-220PCT) ISA

6. Help needed on the following program

7. Unix SysVR4 TCP Stack question

8. I need to help with Follow-up RPC

9. script help needed following crash

10. help needed to understand the following snort loged alerts

11. Help needed on the following program

12. Techies Please help me finding the slolutions to the following questions.