Changeset 012dba5


Ignore:
Timestamp:
Jul 21, 2009 11:08:49 PM (15 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:
79b6596
Parents:
15100e9
Message:

script works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    r15100e9 r012dba5  
    620620        try:
    621621            sf, scriptname = tempfile.mkstemp()
    622             scriptfile = os.fdopen(df, 'w')
     622            scriptfile = os.fdopen(sf, 'w')
    623623        except IOError:
    624624            return False
    625625
    626626        # Script the filesystem changes
    627         print >>scriptfile, "/bin/sh -c \"'/bin/rm -rf %s'\"" % proj_dir
     627        print >>scriptfile, "/bin/rm -rf %s" % proj_dir
    628628        # Clear and create the tarfiles and rpm directories
    629629        for d in (tarfiles_dir, rpms_dir):
    630             print >>scriptfile, "/bin/sh -c \"'/bin/rm -rf %s/*'\"" % d
     630            print >>scriptfile, "/bin/rm -rf %s/*" % d
    631631            print >>scriptfile, "mkdir -p %s" % d
    632         print >>scriptfile, "/bin/sh -c \"'mkdir -p %s'\"" % proj_dir
    633         print >>scriptfile, "rm %s" % scriptfile
     632        print >>scriptfile, 'mkdir -p %s' % proj_dir
     633        print >>scriptfile, "rm %s" % scriptname
    634634        scriptfile.close()
    635635
Note: See TracChangeset for help on using the changeset viewer.