Changeset 2061 for palm/trunk/SCRIPTS/palm_wdd
- Timestamp:
- Nov 10, 2016 2:53:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palm_wdd
r1619 r2061 20 20 # Current revisions: 21 21 # ----------------- 22 # 22 # Bugfix: return proper error messages when .wdd.config is not found and for 23 # wrong actions 23 24 # 24 25 # Former revisions: … … 64 65 from subprocess import check_output 65 66 import sys 66 67 import socket 67 68 68 69 # Read configuration file 69 70 # First check if the configuration file exists 70 71 if ( os.path.exists('.wdd.config') == False ): 71 print "Error. No configuration file .wdd.config found."72 sys.stderr.write("No configuration file .wdd.config found on remote host %s." % socket.gethostname()) 72 73 raise SystemExit 73 74 … … 259 260 print GetRC(data,data2) 260 261 else: 261 print "Error. Action " + action + " unknown."262 262 sys.stderr.write("Unknown action on remote host %s." % hostname) 263
Note: See TracChangeset
for help on using the changeset viewer.