Package core :: Package controllers :: Package intrusionTools :: Module crontabHandler :: Class crontabHandler
[hide private]
[frames] | no frames]

Class crontabHandler




This class defines a crontab handler, that will:

Instance Methods [hide private]
  __init__(self, execMethod)
  canDelay(self)
  addToSchedule(self, commandToExec)
Adds a command to the cron.
  restoreOldSchedule(self)
  _createCronLine(self, remoteDate, commandToExec)
Creates a crontab line that executes the command one minute after the "date" parameter.

Inherited from delayedExecution.delayedExecution (private): _exec, _fixTime


Method Details [hide private]

__init__(self, execMethod)
(Constructor)

 
None

canDelay(self)

 
Returns:
True if the remote user can add entries to his crontab

addToSchedule(self, commandToExec)

 
Adds a command to the cron.

restoreOldSchedule(self)

 
None

_createCronLine(self, remoteDate, commandToExec)

 
Creates a crontab line that executes the command one minute after the "date" parameter.
Returns:
A tuple with the new line to add to the crontab, and the time that it will take to run the command.