X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=dispcfg;fp=dispcfg;h=f0cc4a275d1f22c87be69af65992ce530ad19369;hb=041f089ce86a6e55eacee8cd96c43a4a307f293c;hp=02f1f8d1721cfd272f6efe57bb3fc2ae8423ef7f;hpb=0f6016015dc8d21eaa4b9112230fdf29202573b2;p=dispcfg.git diff --git a/dispcfg b/dispcfg index 02f1f8d..f0cc4a2 100755 --- a/dispcfg +++ b/dispcfg @@ -23,6 +23,10 @@ class record: self.of.write(data) sys.stdout.write(data) + def fout(self, line): + data = '%s\n' % line + self.of.write(data) + def outTime(self, line): tstamp = datetime.datetime.fromtimestamp(time.time()) data = '%s %s\n' % (tstamp.strftime('%Y-%m-%d %H:%M:%S'), line) @@ -232,6 +236,7 @@ if __name__ == '__main__': subprocess.call('/usr/local/bin/setctrl') out.outTime('completed') + out.fout('') main(sys.argv)