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

Class atHandler




This class defines an "at" handler, that will:

Instance Methods [hide private]
  __init__(self, execMethod)
  canDelay(self)
  addToSchedule(self, commandToExec)
Adds a command to the cron.
  restoreOldSchedule(self)
  _createAtCommand(self, time, command)
Creates an at command based on the time and command 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

_createAtCommand(self, time, command)

 

Creates an at command based on the time and command parameter.

This is the format i'm expecting for the time parameter:

The current time is: 11:24:19.59 Enter the new time:
Returns:
A tuple with the "at" command, and the time that it will take to run the command.