with or with out sudo and -noprompt, all I get is entry into cron_log.txt:
Developer`LaunchFrontEnd::nxsrv: An x server is required for that operation.
Rasterize::nofe: A front end is not available; Rasterize requires a front end.
$Failed
Developer`LaunchFrontEnd::nxsrv: An x server is required for that operation.
Rasterize::nofe: A front end is not available; Rasterize requires a front end.
$Failed
Script is txt file and uses Import, DateListPlot, and Export command to save plot as PNG.
=============================Updated=========================
If Rasterize is essential in your application, you may need to include this line in the code. Sometimes you also have to include the Java graphics package in the kernel command so you can export graphics object like what can be done with FrontEnd (by default, the graphics is exported to $HomeDirectory ):