Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

After each run of cron'ed script i get:

cp: cannot stat <file>': No such file or directory cp: cannot statbackup.zip': 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

ygg

asked 24 Jan '12, 06:47

yggen's gravatar image

yggen
11
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 - http://tldp.org/LDP/abs/html/options.html

link

answered 01 Mar '12, 04:26

dannystaple's gravatar image

dannystaple
1
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×7
×4

Asked: 24 Jan '12, 06:47

Seen: 1,633 times

Last updated: 01 Mar '12, 04:26

powered by OSQA