public function replace($contents) { $filePath = $this->fileSystem->createTempFile('cron', $contents); $this->processRunner->run($this->cronCommand . ' ' . $filePath); $this->fileSystem->removeFile($filePath); }