Why do I get an error when using disp in a CRON job?

조회 수: 1 (최근 30일)
Siddharth
Siddharth 2011년 1월 12일
The 'disp' command can produce an error on some Linux distributions when the matlab script is executed as a CRON job. The error is: Error writing to output stream. {??? Error using ==> disp Error writing to output stream.

답변 (1개)

Manu R
Manu R 2011년 1월 20일
If you're using crontab, make sure you've got the output environment variables SCHEDULE_* set as expected. This page has a useful explanation: http://www.mkssoftware.com/docs/man1/crontab.1.asp
If you're using crontab, the right way is to pipe your output stream to a file to review later. Otherwise, crontab will try to email each output to you using sendmail for your review.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by