1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
== update-remote-product.py ==
The script that uses RemoteProductUpdater is update-remote-product.py.
>>> import subprocess
>>> process = subprocess.Popen(
... ['cronscripts/update-remote-product.py'],
... stdin=subprocess.PIPE, stdout=subprocess.PIPE,
... stderr=subprocess.PIPE)
>>> (out, err) = process.communicate()
>>> out
''
>>> process.returncode
0
>>> print err
INFO Creating lockfile: /var/lock/launchpad-updateremoteproduct.lock
INFO 0 projects using BUGZILLA needing updating.
...
INFO 0 projects using RT needing updating.
...
INFO Time for this run: ... seconds.
|