script output different when cron runs it
When I manually run the script below, the output is just the way I want it. When cron runs it, I get like fifty of these ::::::::: in the output of the script.
Is there any chance cron is doing something different when running the script? Any way I can get additional information that will help me troubleshoot the issue? crontab -e Code:
@daily /root/daily Code:
#!/bin/bash |
Which distro and which version of cron?
|
I'm running raspbian, but I couldn't find a way to get the cron version..
cat /etc/*-release Code:
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)" |
cron --version?
|
No, not working. I've also googled it and tried to find other ways but nothing works. Cron is running though that's for sure.
cron --version Code:
cron: invalid option -- '-' |
Which image?
|
I am using the image that was released on 2015-02-16
Its the previous one from the current. |
It's difficult to say since you haven't showed us what's in /root/config/variables or /root/start.
And what script output are you referring to? You don't have anything going to a log file in what you've shown. |
n/m. Sorry.
<vacant_stare> |
start
Code:
#!/bin/bash Code:
#!/bin/bash Code:
#!/bin/bash |
My guess is it has to do with your nested double quotes in commands (not a terrific name for a script BTW). Does anything change if you switch the inside pair to single quotes?
|
this is the result
Code:
:::::::::::::: |
anyone?
|
All times are GMT -5. The time now is 11:07 PM. |