Changeset 4addf9d


Ignore:
Timestamp:
Sep 12, 2007 11:06:22 AM (17 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
9c00d41
Parents:
c23025e
Message:

remove special case for localhost

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/splitter.pl

    rc23025e r4addf9d  
    3333
    3434    # XXX system with a relative pathname is sort of gross
    35     # if ( $host ne "localhost") {
    36         #system ("ssh $user\@$host $cmd");
    37         #}
    38     #else {
    39         #system ("$cmd");
    40         #}
    4135    system ("ssh $user\@$host $cmd");
    4236    if ($?) {
     
    8377
    8478    # Determine the status of the remote experiment
    85     #if ( $host ne "localhost") {
    86 #       open(STATUS, "ssh $user\@$host /usr/testbed/bin/expinfo $pid $eid|") ||
    87 #           die "Can't ssh to $user\@$host:$!\n";
    88 #    }
    89 #    else {
    90 #       open(STATUS, "/usr/testbed/bin/expinfo $pid $eid|") ||
    91 #           die "Can't call expinfo locally";
    92 #    }
    9379    open(STATUS, "ssh $user\@$host /usr/testbed/bin/expinfo $pid $eid|") ||
    9480        die "Can't ssh to $user\@$host:$!\n";
     
    10288
    10389    # Copy the experiment definition data over (unless the host is local)
    104     #if ( $host ne "localhost") {
    105 #       &scp_file("$tmpdir/$tb/$tclfile", "$user\@$host") || return 0;
    106 #    }
    107 #    else {
    108 #       # XXX this ain't quite right
    109 #       system("cp $tmpdir/$tb/$tclfile .");
    110 #    }
    111 
    11290    &scp_file("$tmpdir/$tb/$tclfile", "$user\@$host") || return 0;
    11391    # Remote experiment is active.  Modify it.
     
    313291        my($ddomain) = $domain{$dtb};           # domain for the destination
    314292
     293        $sdomain = ".$eid.$project{$gateways}$sdomain";
     294        $ddomain = ".$eid.$project{$dtb}$ddomain";
     295
    315296        # If either end of this link is in the master side of the testbed, that
    316297        # side is the active end. Otherwise the first testbed encountered in
     
    350331        s/EXPSTART/$expstart{$ctb}/g;
    351332    }
     333    # XXX: oh is this bad
     334    s#GWCONF#FEDDIR\`hostname\`.gw.conf#g;
     335    s#FEDDIR#/proj/$project{$ctb}/exp/$eid/tmp/#g;
    352336    print FILE;
    353337}
Note: See TracChangeset for help on using the changeset viewer.