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.