Guest User

Untitled

a guest
May 27th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. BB = os.environ["BB"]
  2. BBDISP = os.environ["BBDISP"]
  3. NOW = datetime.datetime.now()
  4. COLOR="green"
  5. MSG="Widgets loaded successfully."
  6. NODE="server01"
  7.  
  8. retvalue = os.popen("BB BBDISP "status NODE.thisIsATest COLOR str(NOW) MSG "").readlines()
  9. print retvalue
  10.  
  11. sh: 1: BB: not found
  12.  
  13. print BB
  14.  
  15. /usr/lib/xymon/server/bin/xymon
Add Comment
Please, Sign In to add comment