Crontab object which can access any time based cron using the
standard.
user = Set the user of the crontab (defaults to $USER) fake_tab =
Don't set to crontab at all, set to testable fake tab variable.
|
__init__(self,
user=None,
fake_tab=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
read(self)
Read in the crontab from the system into the object, called
automatically when listing or using the object. |
source code
|
|
|
|
|
render(self)
Render this crontab as it would be in the crontab. |
source code
|
|
|
new(self,
command='',
comment='')
Create a new cron with a command and comment. |
source code
|
|
|
find_command(self,
command)
Return a list of crons using a command. |
source code
|
|
|
remove_all(self,
command)
Removes all crons using the stated command. |
source code
|
|
|
remove(self,
item)
Remove a selected cron from the crontab. |
source code
|
|
|
_read_execute(self)
Returns the command line for reading a crontab |
source code
|
|
|
_write_execute(self,
path)
Return the command line for writing a crontab |
source code
|
|
|
_user_execute(self)
User command switches to append to the read and write commands. |
source code
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|