Mount cmd
authorSapan Bhatia <sapanb@cs.princeton.edu>
Thu, 19 Feb 2009 20:05:45 +0000 (20:05 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Thu, 19 Feb 2009 20:05:45 +0000 (20:05 +0000)
factory/nfsmount

index 3f0222d..42303dc 100755 (executable)
@@ -33,3 +33,16 @@ if ($nfspath!~/^(((\.\.){1}\/)*|(\/){1})?(([a-zA-Z0-9]*)\/)*([a-zA-Z0-9]*)+$/) {
        die("The remote path $nfspath does not seem to be right.");
 } 
 
+my $mntcmd;
+
+$mntcmd="/bin/mount $remotepath $localpath";
+system($mntcmd);
+
+if ($?) {
+    print "Mount failed: $?";
+}
+else {
+    open FIL, ">$already_mounted_testfile";
+    print FIL "$remotepath $localpath";
+    close FIL;
+}