Changeset 012dba5
- Timestamp:
- Jul 21, 2009 11:08:49 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 79b6596
- Parents:
- 15100e9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r15100e9 r012dba5 620 620 try: 621 621 sf, scriptname = tempfile.mkstemp() 622 scriptfile = os.fdopen( df, 'w')622 scriptfile = os.fdopen(sf, 'w') 623 623 except IOError: 624 624 return False 625 625 626 626 # Script the filesystem changes 627 print >>scriptfile, "/bin/ sh -c \"'/bin/rm -rf %s'\"" % proj_dir627 print >>scriptfile, "/bin/rm -rf %s" % proj_dir 628 628 # Clear and create the tarfiles and rpm directories 629 629 for d in (tarfiles_dir, rpms_dir): 630 print >>scriptfile, "/bin/ sh -c \"'/bin/rm -rf %s/*'\"" % d630 print >>scriptfile, "/bin/rm -rf %s/*" % d 631 631 print >>scriptfile, "mkdir -p %s" % d 632 print >>scriptfile, "/bin/sh -c \"'mkdir -p %s'\""% proj_dir633 print >>scriptfile, "rm %s" % script file632 print >>scriptfile, 'mkdir -p %s' % proj_dir 633 print >>scriptfile, "rm %s" % scriptname 634 634 scriptfile.close() 635 635
Note: See TracChangeset
for help on using the changeset viewer.