Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-09-2011, 06:12 PM   #1
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
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, 09:14 AM   #2
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.


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 04:47 AM
SED multiple lines masterdam79 Linux - Newbie 6 10-29-2009 04:25 AM
Multiple lines in terminal seabass341 Linux - Newbie 6 06-08-2009 10:29 PM
AWK/SED Multiple pattern matching over multiple lines issue GigerMalmensteen Programming 15 12-03-2006 05:08 PM
ISDN multiple lines schimmelpilz Linux - Newbie 1 02-24-2004 05:39 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:42 AM.

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