Displaying 1 result from an estimated 1 matches for "myecho".
2002 Mar 12
2
problem with environment detecting
Hello!
I want to detect some environment on a remote host (in C program, getenv()),
but it is failed. Here is a little program which I try to run on a remote
host with command: "#ssh myhost myecho"
/* myecho */
#include <stdio.h>
main (){
char *dir;
if ((dir = getenv("MYDIR")) != NULL)
printf ("environment is %s\n",dir);
else
printf ("enviroment is not specified.\n");
}
it returns "envirom...