diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-04-11 21:17:00 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-04-11 21:17:00 +0100 |
commit | 05901495715632a4f1995a267b1fc7006b488e6a (patch) | |
tree | b6800d89f26d3d840408283642d256a2e3657640 | |
parent | 3df41d7a888bf5d02077b72754c12e6f484c9aab (diff) | |
download | desktop-cronish-05901495715632a4f1995a267b1fc7006b488e6a.tar.gz |
Improve progress reporting
-rwxr-xr-x | desktop-cronish | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-cronish b/desktop-cronish index 0fd9676..53e52ed 100755 --- a/desktop-cronish +++ b/desktop-cronish @@ -90,7 +90,8 @@ class DesktopCronish(cliapp.Application): def execute_job(self, job_name): job = self.jobs[job_name] - self.status('Executing job %s: %s' % (job_name, job['command'])) + self.ts.notify('Executing job %s' % job_name) + self.status('Started command: %s' % job['command']) argv = ['sh', '-c', job['command']] if 'timeout' in job: argv = ['timeout', str(job['timeout'])] + argv |