Noah Spurrier
-$Revision: 1.4 $
-$Date: 2002/11/22 11:33:08 $
+$Revision: 1.5 $
+$Date: 2002/11/22 11:35:37 $
"""
import os, sys
import select
Currently pexpect is intended for UNIX operating systems (including OS-X)."""
__version__ = '0.94'
-__revision__ = '$Revision: 1.4 $'
+__revision__ = '$Revision: 1.5 $'
__all__ = ['ExceptionPexpect', 'EOF', 'TIMEOUT', 'spawn',
'__version__', '__revision__']
print "Correcting permissions..."
session.remote("/bin/chmod u+r,g-w,o-w %s" % file)
def forcefile(self, file, command):
- "Create file with command idf it does not already exist."
+ "Create file with command if it does not already exist."
perms = session.checkfile(file)
if perms is None:
print "Remote %s doesn't exist." % file
print "Creating remote %s" % file
session.remote(command)
perms = session.checkfile(file)
+ else:
+ print file, "already exists."
return perms
if __name__ == '__main__':
print "Done."
# End
-