This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:raspberry:picam:scripts:copyjob [2017/03/01 12:50] – external edit 127.0.0.1 | linux:raspberry:picam:scripts:copyjob [2019/01/09 18:53] – lunetikk | ||
---|---|---|---|
Line 9: | Line 9: | ||
Second create a file named " | Second create a file named " | ||
- | < | + | < |
#!/bin/bash | #!/bin/bash | ||
DATE=`date +%d_%m_%Y` | DATE=`date +%d_%m_%Y` | ||
Line 36: | Line 36: | ||
</ | </ | ||
- | Make sure you use < | + | Make sure you use < |
Create a cronjob for it by inserting the following line to the end in< | Create a cronjob for it by inserting the following line to the end in< | ||
The job will be executed everytime the clock hits 0 minutes (for example 1:00pm 2.00am...) | The job will be executed everytime the clock hits 0 minutes (for example 1:00pm 2.00am...) | ||
Line 43: | Line 43: | ||
If the copyjob fails because of "too many arguments" | If the copyjob fails because of "too many arguments" | ||
- | < | + | < |
find $BASEPATH -name " | find $BASEPATH -name " | ||
</ | </ | ||
+ | |||
+ | Like this: | ||
+ | |||
+ | <code bash -> | ||
+ | find $BASEPATH -name " | ||
+ | sleep 10 | ||
+ | find $BASEPATH -name " | ||
+ | sleep 10 | ||
+ | |||
+ | find $COPYPATH -name " | ||
+ | sleep 10 | ||
+ | find $COPYPATH -name " | ||
+ | sleep 10 | ||
+ | </ | ||
\\ | \\ | ||
\\ | \\ | ||
- | ~~DISCUSSION~~ | + | ~~DISCUSSION:closed~~ |