LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 04-20-2018, 02:39 PM   #1
spinX
LQ Newbie
 
Registered: Apr 2018
Posts: 2

Rep: Reputation: Disabled
...


...

Last edited by spinX; 04-21-2018 at 02:37 PM.
 
Old 04-20-2018, 02:51 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by spinX View Post
Hi,
I'm sorry if this is the wrong place for this. I'm new and I'm trying to do these steps on ubuntu. Can you help me with the commands? Thanks a lot.


1) Install mysql on ubuntu.

2) Start and enable the installed mysql database via systemd. Get the status of the running service, then send the PID to your AUIS email address.

3) Once every hour, save the last 10 log messages generated by the mysql service in a text file; called it 'mySQL.log'.

4) Assign the IP address 192.168.234.200 to your network card.

5) Once every six hours, move the mySQL.log file to a Linux server via SSH. Assume the server has the following IP address: 192.168.234.200.
Hello spinX,

LQ is a great and correct place to ask questions.

There are some helpful links to improve how you ask and help others to help you, in this link here.

If you wish to write a script, please understand that members here will help you with your script, but not write it for you.

If you have little or no knowledge of bash scripting, or other scripting you intend to use, then you should indicate this to forum members.

Forum members may wish to know what your system specifications are. They clearly will wish to know what version of Ubuntu you are running and whether it is server or workstation. They also will wish to know which sql software you are looking to install as well as the version. They also will wish to know if you have read any guides about installing this software on the target distribution you mention.

Please check the link to help you add more details to your question.

Best Regards.
 
2 members found this post helpful.
Old 04-20-2018, 02:53 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by spinX View Post
Hi,
I'm sorry if this is the wrong place for this. I'm new and I'm trying to do these steps on ubuntu. Can you help me with the commands? Thanks a lot.

1) Install mysql on ubuntu.
2) Start and enable the installed mysql database via systemd. Get the status of the running service, then send the PID to your AUIS email address.
3) Once every hour, save the last 10 log messages generated by the mysql service in a text file; called it 'mySQL.log'.
4) Assign the IP address 192.168.234.200 to your network card.
5) Once every six hours, move the mySQL.log file to a Linux server via SSH. Assume the server has the following IP address: 192.168.234.200.
Sorry, but this sounds very much like a homework/lab assignment. We are happy to HELP you if you're stuck, but posting a homework question and asking for the answers isn't going to get you much. Read the LQ Rules and the "Question Guidelines" link in my posting signature. Because each of these is EASILY found with a brief Google search
  1. "how do you install mysql on ubuntu?"
  2. "how do you start mysql on ubuntu",
  3. "how do you read the last ten lines of a log file on linux"
  4. "how do you assign an ip address in linux"
  5. "how to you schedule a script to run in linux"
 
Old 04-20-2018, 05:53 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
after all of that what was wrote, and you've chewed on it a bit.

5 things, 5 steps.

if you do not know how to do this or any of them on the command line then you've already lost the battle. First figure out how to issue the commands on the command line, then go to the BaSH scripting and figure out how to put it into a file and have it do the steps for you. Either way you still have to know how to type out all of the the steps first before anything will get done.
 
1 members found this post helpful.
Old 04-21-2018, 10:30 AM   #5
spinX
LQ Newbie
 
Registered: Apr 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
If you can't help don't reply
 
Old 04-21-2018, 10:36 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Here we give tools to help, please read replies, there is useful information in each of them
 
Old 04-21-2018, 12:06 PM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
1. https://is.gd/BUHaUc
 
Old 04-21-2018, 12:57 PM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by spinX View Post
If you can't help don't reply
who in this post has not helped?

given the very basics first, the steps needed to take to figure it out one step at a time.

if you do not know the basics, then how do you expect to get anything done?
 
Old 04-21-2018, 01:47 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by spinX View Post
If you can't help don't reply
And if you can't at least TRY to do your own work, don't ask us to. I handed you phrases you could have easily looked up, and found your answers, and you apparently can't even try that.

And if you think such a reply will get you any further help...good luck.

Last edited by TB0ne; 04-21-2018 at 01:48 PM.
 
2 members found this post helpful.
Old 04-22-2018, 07:24 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by spinX View Post
If you can't help don't reply
And you do realize that deleting your original post doesn't help, since it's quoted elsewhere here in this thread, right?
 
Old 04-23-2018, 07:14 AM   #11
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Thread has been closed.

@spinX,

While I do understand frustration, there were some helpful answers starting off the thread. If you, or anyone, feels that a reply went too far, the correct thing to do is to use the Report button to ask that a moderator look at the information in the the post and evaluate it. Also the Contact Us link at the bottom of the page form is a way to contact site administrators and/or Jeremy to air any concerns more directly.

LQ allows the edit function so that members can correct and clarify. Yes, part of that allows one to erase. Performing this action is not helpful, and hopefully you can see that it doesn't necessarily have the impact of erasing your comments since they could have been quoted earlier by someone.

If you continue to use the LQ forums, please be aware of these guidelines.
 
  


Closed 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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bash script need help with writing Wi1done Programming 11 08-06-2017 04:27 PM
Writing a bash script Leroy1990 Linux - Newbie 6 03-01-2012 03:40 PM
I need some help writing a bash script... trist007 Programming 8 04-15-2009 10:31 AM
looking for help in writing a bash script onepostonly Linux - General 3 10-05-2008 06:42 PM
Writing a bash script. lebabyg Linux - General 2 03-31-2007 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 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