LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2011, 07:12 PM   #1
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
Exclamation Multiple mysqldump lines


Hi all.
I have a text file with about 300 mysqldump lines of the following nature
Code:
mysqldump --single-transaction --opt -C -hlocalhost -uanony
-p customers Details > customers_10Feb2011/customers.10-Feb-2011.Details.sql
My challenge is i dont want to run one line at a time and instead i want to write a script that simply reads from the above text file and runs the dumps

Question, does mysqldump allow multiple instances of it to be called? and how would the above idea work and is there an easier way to automate the above
 
Old 02-10-2011, 10:14 AM   #2
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
It can be done in a shell script, you need to define your variables first, to understand better your needs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
use grep to match multiple lines noony123 Linux - Newbie 2 02-03-2011 05:47 AM
SED multiple lines masterdam79 Linux - Newbie 6 10-29-2009 05:25 AM
Multiple lines in terminal seabass341 Linux - Newbie 6 06-08-2009 11:29 PM
AWK/SED Multiple pattern matching over multiple lines issue GigerMalmensteen Programming 15 12-03-2006 06:08 PM
ISDN multiple lines schimmelpilz Linux - Newbie 1 02-24-2004 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration