We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cace546 commit b18f808Copy full SHA for b18f808
docs/igd.rst
@@ -253,8 +253,8 @@ We can do the same using a shell command *tail -f /var/log/cron |grep anacron*
253
::
254
255
>>> jobtext = 'anacron'
256
- >>> all = (line for line in open('/var/log/cron', 'r') )
257
- >>> job = ( line for line in all if line.find(jobtext) != -1)
+ >>> all_lines = (line for line in open('/var/log/cron', 'r') )
+ >>> job = ( line for line in all_lines if line.find(jobtext) != -1)
258
>>> text = next(job)
259
>>> text
260
"May 6 12:17:15 dhcp193-104 anacron[23052]: Job `cron.daily' terminated\n"
0 commit comments