i have written a really small util for mom's (ubuntu) PC, that print a
small notice abount the backuppc working state.
Could something like that become part of the official distribution package?
#!/usr/bin/python
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
import subprocess as sub
import sys
import time
import pynotify
if __name__ == '__main__':
if not pynotify.init ("update-notifications"):
sys.exit (1)
text = "Your backup system is eating your data - keep calm."
pscmd="/bin/ps ax | /bin/grep 'BackupPC' | /bin/grep -v trashClean |
grep -c -v grep"
n = pynotify.Notification (text)
p = sub.Popen(pscmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True)
output, errors = p.communicate()
while(True):
try:
p =
sub.Popen(pscmd,stdout=sub.PIPE,stderr=sub.PIPE,shell=True)
output, errors = p.communicate()
if int(output.strip()) > 1:
n.show ();
except Exception:
pass
time.sleep (3)
--
E-Mail/XMPP: tobias.strauss AT gmx DOT net
Mobiltelefon: 0151 / 51 42 88 20
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|