| | 678 | | diagnose_cant_start_pvm( hostline ) |
| | 679 | | char *hostline; |
| | 680 | | { |
| | 681 | | FILE *fp; |
| | 682 | | |
| | 683 | | #ifndef WIN32 |
| | 684 | | struct passwd *pw; |
| | 685 | | #endif |
| | 686 | | |
| | 687 | | struct hostd hp; |
| | 688 | | |
| | | | ... |
| | 691 | | char lhost[1024]; |
| | 692 | | char pvmarch[1024]; |
| | 693 | | char pvmroot[1024]; |
| | 694 | | char pvmtmp[1024]; |
| | 695 | | char result[1024]; |
| | 696 | | char result2[1024]; |
| | 697 | | char tcmd[1024]; |
| | 698 | | char tmp[255]; |
| | 699 | | char user[1024]; |
| | 700 | | |
| | 701 | | int remote_os = -1; |
| | 702 | | int len; |
| | 703 | | int i; |
| | 704 | | |
| | 705 | | |
| | 706 | | |
| | 707 | | if ( parsehost(hostline, &hp) < 0 ) { |
| | 708 | | printf( "Error Parsing Host String!\n" ); |
| | 709 | | printf( "Cannot Auto-Diagnose!\n" ); |
| | 710 | | return( 0 ); |
| | 711 | | } |
| | 712 | | |
| | 713 | | |
| | 714 | | |
| | 715 | | gethostname( lhost, 1024 ); |
| | 716 | | |
| | 717 | | |
| | 718 | | |
| | 719 | | #ifndef WIN32 |
| | 720 | | if ( (pw = getpwuid( getuid() )) != NULL )
|
| | 721 | | strcpy( user, pw->pw_name ); |
| | 722 | | else |
| | 723 | | strcpy( user, "<your_user_name>" ); |
| | 724 | | #else |
| | 725 | | strcpy( user, MyGetUserName() ); |
| | 726 | | #endif |
| | 727 | | |
| | 728 | | |
| | 729 | | |
| | 730 | | |
| | 731 | | |
| | 732 | | |
| | 733 | | |
| | | | ... |
| | 745 | | |
| | 746 | | |
| | 747 | | |
| | 748 | | |
| | 749 | | |
| | 750 | | |
| | 751 | | |
| | 752 | | |
| | 753 | | |
| | 754 | | |
| | 755 | | printf( "Verifying Local Path to \"rsh\"...\n" ); |
| | 756 | | |