'Adds a command to the cron.'

def add_to_schedule(self, command_to_exec):

    actualCron = self._exec('crontab    -l    2>&1')
    actualCron = actualCron.strip()
    remoteDate = self._exec('date    +%d-%m-%H:%M:%S-%u')
    remoteDate = remoteDate.strip()
    user = self._exec('whoami')
    user = user.strip()
    (newCronLine, wait_time) = self._createCronLine(remoteDate, command_to_exec)
    if (('no    crontab    for    ' + user) == actualCron):
        newCron = newCronLine
    else:
        newCron = ((actualCron + '\n') + newCronLine)
    for line in newCron.split('\n'):
        self._exec(((('/bin/echo    ' + line) + '    >>    ') + self._cronFile))
    self._exec(('crontab    ' + self._cronFile))
    self._exec(('/bin/rm    ' + self._cronFile))
    filename = command_to_exec.split('    ')[0]
    self._exec(('/bin/chmod    +x    ' + filename))
    om.out.debug((((('Added    command:    "' + command_to_exec) + '"    to    the    remote    crontab    of    user    :    "') + user) + '".'))
    self._oldCron = actualCron
    return wait_time
