~ubuntu-branches/ubuntu/trusty/autodocktools/trusty

« back to all changes in this revision

Viewing changes to AutoDockTools/autostartCommands.py

  • Committer: Package Import Robot
  • Author(s): Thorsten Alteholz
  • Date: 2012-02-06 18:00:00 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120206180000-cmdihm43xz7qi2qk
Tags: 1.5.6~rc3~cvs.20120206-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#############################################################################
8
8
 
9
9
 
10
 
# $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/autostartCommands.py,v 1.38 2011/11/15 22:11:18 forli Exp $
 
10
# $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/autostartCommands.py,v 1.37.2.1 2011/11/15 22:24:00 forli Exp $
11
11
#
12
 
# $Id: autostartCommands.py,v 1.38 2011/11/15 22:11:18 forli Exp $
 
12
# $Id: autostartCommands.py,v 1.37.2.1 2011/11/15 22:24:00 forli Exp $
13
13
#
14
14
#
15
15
#
105
105
                #print "EXECUTING 1", cmdStr
106
106
            else:
107
107
                cmdStr="ssh " + host+ " -n \'kill -9 %s\'"%pid
108
 
                #print "EXECUTING 2", cmdStr
109
108
            commands.getoutput(cmdStr)
110
109
        hosts = self.hosts
111
110
        self.do_update(self.psList, hosts)
962
961
                wd = os.path.normpath( self.workingDirPath.get() ) # normalize the path
963
962
                wd = os.path.expanduser(wd)                        # try to resolve "~" if present in the path
964
963
                cmd = ("cd \"%s\" ; "+cmd ) % wd
965
 
                #print "WD>", wd
966
 
                #print "cmd>", cmd
 
964
                print "WD>", wd
 
965
                print "cmd>", cmd
967
966
                #fp = open(wd+os.sep+"testing.sh", 'w')
968
967
                #fp.write(cmd)
969
968
                #fp.close()