LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2012, 04:35 AM   #1
Owais.Ahmad
LQ Newbie
 
Registered: Jul 2012
Posts: 10

Rep: Reputation: Disabled
how to read ip from database and assign it to eth0


Hi,

I have a database which has ip address, i want to read it and assign it to eth0....

Regards,

Owais
 
Old 07-26-2012, 04:57 AM   #2
Owais.Ahmad
LQ Newbie
 
Registered: Jul 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
i want it to be done using shell script
 
Old 07-26-2012, 08:05 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,371

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
Which DB?
What have you tried so far?
What is the table structure; show example rows


Help us to help you...
 
Old 07-27-2012, 12:27 AM   #4
piyush.sharma
Member
 
Registered: Jul 2012
Location: Delhi, India
Distribution: CentOS
Posts: 82

Rep: Reputation: Disabled
Sir, Is it possible to interact with database (mysql) via shell script ?
 
Old 07-29-2012, 06:13 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,371

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
Try starting here http://www.cyberciti.biz/faq/using-m...shell-scripts/ and https://dev.mysql.com/doc/refman/5.1/en/
 
  


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
Name assign to eth0 and eth1 akshayingle09 Linux - Newbie 1 06-13-2012 01:47 AM
Assign MySql Database by port numbers karnac01 Linux - Newbie 7 08-20-2011 12:14 PM
how do i assign/switch eth0 & eth1 the-sloth Linux - Networking 10 02-05-2011 12:48 PM
How do I assign a static IP to eth0 louisb Linux - Networking 4 02-19-2005 08:10 PM
Howto assign multiple ip addresses to eth0 in Mandrake 10???? tictocdoc Mandriva 3 05-07-2004 03:00 PM


All times are GMT -5. The time now is 11:52 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration