Changeset 145 for devel


Ignore:
Timestamp:
Sep 13, 2007, 11:10:31 AM (12 years ago)
Author:
bruno
Message:

Fix an issue when shuting down the VM if needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r144 r145  
    477477        pb_system("ssh -q -p $port $mac \"rm -rf $tdir\"","VM cleanup on $mac");
    478478        if (! $vmexist) {
    479             pb_system("ssh -q -p $port $mac \"sudo /usr/bin/poweroff \"; sleep 120 ; if [-d /proc/$vmexist]; then kill $vmexist; fi ; sleep 10","VM halt on $mac");
     479            pb_system("ssh -q -p $port $mac \"sudo /usr/bin/poweroff \"; sleep 120 ; echo \'if [ -d /proc/$vmexist ]; then kill $vmexist; fi \' | bash ; sleep 10","VM halt on $mac");
    480480        }
    481481        pb_send2ssh("Packages","$odir"."_"."$over");
     
    644644}
    645645
     646# Returns the pid of a running VM command using a specific VM file
    646647sub pb_check_ps {
    647648    my $vmcmd = shift;
Note: See TracChangeset for help on using the changeset viewer.