var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Cron does not work
I've got a script that is suppose to dump a sqlite database daily works fine via SSH but when put in a cron it gives this error:
Online database dump in progres please wait...
/backup/scripts/murmur_sqlite: line 10: /backup/mumble/$DAY-$TIME.sql: ambiguous redirect
Heres the script:
What is the issue?
# Mumble SQLLite Database Live Dump
echo "Online database dump in progres please wait..."
sqlite3 /mumble/murmur.sqlite .dump > /backup/mumble/$DAY-$TIME.sql
echo " DONE!"
Once make sure the crond service is running on the server if not restart the crond service by using,
#service crond restart
Shared Hosting |
Reseller Hosting | VPS Hosting | Dedicated Servers KeserHosting.Com
Its ambiguous redirect because you are not redirecting to single file.
How do you mean? The script just redirects the output from the sqlite command to a single file based on the time/date. I'm not attempted to direct to multiple files (Or as far as i'm aware).
Also the cron does run thats not the issue - the error I quotes comes from the mailbox of the user who ran the cron.
Originally Posted by
The %k parameter will output one space char before the digit if the hour value is lower than 10 : ' 0', ' 1', ' 2' etc...
Using %H should solve the problem as it will always display 2 digits: '00', '11' etc
You can also only run the date command once :
sqlite3 /mumble/murmur.sqlite .dump > /backup/mumble/$DAY.sql
★ NinjaFirewall :
Web Application Firewall for PHP and WordPress.
★ NinjaMonitoring :
Monitor your website for suspicious activities.
Don't tell me, you're a programmer, so never arrive for work much before 10am ... :-)
Originally Posted by
Are you by any chance running the cron job between midnight and 10am? So "TIME" has a leading blank when Cron runs?
By build-a-host in forum Running a Web Hosting Business
Last Post: 02-22-2008, 04:54 AM
By pal_web in forum Hosting Security and Technology
Last Post: 06-16-2006, 02:43 PM
By 0218 in forum Hosting Security and Technology
Last Post: 12-12-2004, 10:24 PM
By PGF in forum Dedicated Server
Last Post: 01-11-2003, 06:57 PM
By Domenico in forum Dedicated Server
Last Post: 04-03-2001, 06:15 PM