Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 8th, 2003, 08:21 AM
moonraker moonraker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 1 moonraker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Frustrated, please help

Code:
#!/bin/sh
$DATESTAMP = `date %M-%d-%Y`
/usr/local/bin/mysqldump -ubplan01 -pmypass bplan01 > /home/bplan01/$DATESTAMP-backup.sql


Ok, that runs file from the command line.

Then I have my crontab file:

Code:
6 * * * * /home/bplan01/backup.sh

* * * * * /home/bplan01/overload.pl


I get an email from crond at 6 saying :

Quote:
/home/bplan01/backup.sh: /usr/local/bin/mysqldump: invalid command or file name


Can anyone tell me how to fix this?

Reply With Quote
  #2  
Old June 8th, 2003, 09:50 AM
tommy.pr tommy.pr is offline
»» ¤ ««
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2003
Location: Indonesia
Posts: 905 tommy.pr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 33 m 25 sec
Reputation Power: 6
Send a message via Yahoo to tommy.pr
I'm not good at linux-scripting, but what happened if you try to run the backup.sh manually ?

Reply With Quote
  #3  
Old June 8th, 2003, 10:34 AM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,381 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 4 Weeks 7 h 22 m 14 sec
Reputation Power: 1784
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
What does this have to do with PHP? Moving this to Linux, I guess...

---John Holmes...

Reply With Quote
  #4  
Old June 11th, 2003, 04:19 PM
frymaster frymaster is offline
hubris, loathing, technology
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: http://frymaster.ca
Posts: 76 frymaster User rank is Private First Class (20 - 50 Reputation Level)frymaster User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 27 m 57 sec
Reputation Power: 8
dumb question ... is mysqldump in /usr/local/bin? maybe in /usr/local/mysql/bin/ ?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Frustrated, please help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway