After each run of cron'ed script i get:

cp: cannot stat <file>': No such file or directory cp: cannot': No such file or directory

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.....

thx in advanced


asked 24 Jan '12, 06:47

yggen's gravatar image

accept rate: 0%

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.

Referece for bash options -


answered 01 Mar '12, 04:26

dannystaple's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 24 Jan '12, 06:47

Seen: 1,568 times

Last updated: 01 Mar '12, 04:26

powered by OSQA