def submit(self, job):
        """
        Submits a given job

        :param job: The job to submit
        :type job: pyqueue.job.JobInterface
        """
        script = self._printer.generate(job)
        stdin, stdout, stderr = self._ssh.exec_command('sbatch')
        stdin.write(script)
        stdin.flush()
        stdin.channel.shutdown_write()
        return stdout.read()