- Timestamp:
- Jul 28, 2009 3:42:17 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:
- d9987ad
- Parents:
- 9479343
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r9479343 r886307f 555 555 556 556 try: 557 dnull = open("/dev/null", " r")557 dnull = open("/dev/null", "w") 558 558 except IOError: 559 559 self.log.debug("[ssh_cmd]: failed to open /dev/null " + \ … … 996 996 "Failed to open file in genviz") 997 997 998 try: 999 dnull = open('/dev/null', 'w') 1000 except IOError: 1001 service_error(service_error.internal, 1002 "Failed to open /dev/null in genviz") 1003 998 1004 # Generate a dot/neato input file from the links, nodes and lans 999 1005 try: … … 1016 1022 # Use dot to create a visualization 1017 1023 dot = Popen([neato, '-Gstart=rand', '-Gepsilon=0.005', '-Gmaxiter=2000', 1018 '-Gpack=true', dotname], stdout=PIPE, close_fds=True) 1024 '-Gpack=true', dotname], stdout=PIPE, stderr=dnull, 1025 close_fds=True) 1026 dnull.close() 1019 1027 1020 1028 # Translate dot to vis format
Note: See TracChangeset
for help on using the changeset viewer.