[gnome-schedule] Support FreeBSD output after adding task
- From: Gaute Hope <gauteh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-schedule] Support FreeBSD output after adding task
- Date: Tue, 4 Oct 2011 09:13:14 +0000 (UTC)
commit f75e94242abf41d8c8afb725e70c32f5012bbdc3
Author: Gaute Hope <eg gaute vetsj com>
Date: Tue Oct 4 11:09:52 2011 +0200
Support FreeBSD output after adding task
src/at.py | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/at.py b/src/at.py
index 2e0d8dc..27d3d24 100644
--- a/src/at.py
+++ b/src/at.py
@@ -58,17 +58,16 @@ class At:
# FreeBSD atq output, parser ignores time zone information
if self.sysname == 'FreeBSD':
self.atRecordRegex = re.compile ('^(?P<dow>.{3})(?P<month>\s.{3})\s(?P<day>[0-9]+)\s(?P<time>[0-2][0-9]:[0-5][0-9]:[0-5][0-9])\s(?:(?P<tzone>.*)\s|)(?P<year>[0-9]{4})\s*(?P<owner>.+)\s*(?P<queue>[a-z]|[A-Z])\s*(?P<jobid>[0-9]*)$')
+ # after you add a job, this line is printed to stderr
+ # Job 5 will be executed using /bin/sh
+ self.atRecordRegexAdd = re.compile('^Job\s(?P<jobid>[0-9]+)\swill')
# General Linux atq output
else:
self.atRecordRegex = re.compile('^(?P<jobid>[\d]+)[\t](?P<dow>[\w]{3,3})[\s](?P<month>[\w]{3,3})[\s]*(?P<day>[\d]+)[\s](?P<time>[\d]{2,2}[:][\d]{2,2}[:][\d]{2,2})[\s](?P<year>[\d]{4,4})[\s](?P<class>[\w])[\s](?P<user>[\w]+)')
-
-
-
-
- # after you add a job, this line is printed to stderr
- # job 10 at 2006-09-18 12:38
- self.atRecordRegexAdd = re.compile('^job\s(?P<jobid>[0-9]+)\sat')
+ # after you add a job, this line is printed to stderr
+ # job 10 at 2006-09-18 12:38
+ self.atRecordRegexAdd = re.compile('^job\s(?P<jobid>[0-9]+)\sat')
self.SCRIPT_DELIMITER = "###### ---- GNOME_SCHEDULE_SCRIPT_DELIMITER #####"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]