Answers to: Cron error mail not giving line numberhttp://linuxexchange.org/questions/2778/cron-error-mail-not-giving-line-number<p>After each run of cron'ed script i get:</p> <p>cp: cannot stat <code>&lt;file&gt;': No such file or directory cp: cannot stat</code>backup.zip': No such file or directory</p> <p>But it does not state what line the cp is issued from. This is not clear as there is allot of variables that is created to determine the files.....</p> <p>thx in advanced</p> <p>ygg</p>enThu, 01 Mar 2012 04:26:58 -0500Answer by dannystaplehttp://linuxexchange.org/questions/2778/cron-error-mail-not-giving-line-number/2796<p>Not sure about line numbers, but while you are debbuging it, perhaps ensure that the shell the script is run in (perhaps in its hashbang line) is started with -xv, so you can verbose debugging of what was going to be executed. </p> <p>Referece for bash options - <a href="http://tldp.org/LDP/abs/html/options.html">http://tldp.org/LDP/abs/html/options.html</a></p>dannystapleThu, 01 Mar 2012 04:26:58 -0500http://linuxexchange.org/questions/2778/cron-error-mail-not-giving-line-number/2796