A different language to me!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers A different language to me!
# 1  
Old 08-03-2006
A different language to me!

Hi all, I'm glad there's a section called UNIX for dummies on this forum cause when it comes to UNIX, I am certainly a dummie. I honestly don't have a clue about 98% of the UNIX commands out there so forgive me if this is a really stupid question.

I'm trying to set up a MySQL server on my Mac and I'm having trouble starting the server now that it's been installed, I think... I've checked the MySQL online manual and it suggested that I need to find out wether or not it's already running by using the command line: "ps xa | grep mysqld". So I did and here's what I got in response: "966 std S+ 0:00.00 grep mysqld". The problem is, I have NO idea what that means and the MySQL documentation doesn't actually tell me what I should get as a result. Can any of you please translate that for me? Does that mean the MySQL server is running or not? Thanks for your patience and understanding with my neivety. Smilie
# 2  
Old 08-03-2006
If the server were up you would have seen two lines of output. That one line came from the | grep part of the command.

edit - the server is not up.

Last edited by jim mcnamara; 08-03-2006 at 04:38 PM..
# 3  
Old 08-03-2006
Thanks Jim! That's all I needed to know. Any ideas where I can find a good beginners manual on UNIX commands and how to understand how UNIX works?
# 4  
Old 08-03-2006
Try 'UNIX for Dummies' or Osbourne publishing: 'UNIX the complete reference'
# 5  
Old 08-03-2006
It's much less intimidating when you know what ps does, and what grep means. ps xa generates a report showing all running processes, one process per line. Try running it by itself, you'll see what I mean.

'| grep mysql' feeds that report through the 'grep' command, which will only print lines that have 'mysql' in them. If mysql was running, you'd see a whole bunch of things named mysql, but since it's not, all you see is the one thing running on the system that has grep anywhere in it's name or options -- the program you just ran, 'grep mysql'. Isn't multitasking fun? Smilie
# 6  
Old 08-04-2006
Thank you! That's a great explination. It makes a little more sense to me now.
# 7  
Old 08-04-2006
Here...

to begin with UNIX try this one:

www.UnixAcademy.com

or to go futher Emi Nemeth "UNIX System Administration" handbook.

Hope it helps.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

C language help URGENT !!!

I'am writing a program in C language and my code is working perfectly i just need to add a search to it ... My code lets users add companies, and then display them on screen... i would like to add a search that allows user to type company name and then displayall its info on the screen !! THANK... (1 Reply)
Discussion started by: aloushi
1 Replies

2. HP-UX

How to know the default language in hp-ux?

hi every body i want to know how can i know the default language in the hp-ux like in solaris "US" please tell me wher is the file or the comand to tell me the language many thanks ---------- Post updated at 05:43 AM ---------- Previous update was at 05:05 AM ---------- crash:/#locale... (1 Reply)
Discussion started by: maxim42
1 Replies

3. UNIX for Dummies Questions & Answers

What language is this?

Hi, Just got handed this script set def = HLA_DR.pockets set data = DRB1_1501.dat foreach a ( 'cat $data | args 3 |sort -u' ) cat $def | xC | grep -v $a > $$.def cat $data | grep $a | args 1,2 > $a.dat set pseudo = `cat MHCDR_pseudo.dat | grep HLA | grep $a | args 2`... (8 Replies)
Discussion started by: lost
8 Replies

4. Shell Programming and Scripting

New simple language

Hi all, I need to 'create' a new simple scripting language in order to allow SCADA operators make complex tasks against the system in an easy and friendly way. In other words I need to write mini modules with DB readings or writings, calculations, and so on, but these instructions must be written... (2 Replies)
Discussion started by: silex
2 Replies

5. Programming

which language will be the best

Hello, Ive got to amke a script to calculate how many emails are in the servers mailbox, how many times each IP address appears in the mailbox and to search for keywords, tehn produce the results in HTML report. The thing is I dont know where to start and what the best language to use would be. ... (4 Replies)
Discussion started by: clueless
4 Replies

6. Programming

c language

is there any difference between "char*" and "char *" (1 Reply)
Discussion started by: amol munde
1 Replies

7. Programming

c programming language

Can someone enligten me on what below program does? I understand getchar and putchar.. but what is this program suppose to do? I try to put printf on it, but it shows nothing.. can someone explain to me what this program is suppose to do? It is reading something and assigning to c? so, if... (8 Replies)
Discussion started by: convenientstore
8 Replies

8. Programming

GUI using C language

Hi friends I have my project based on C platform. I was supposed to develop a GUI. Can u pls suggest me the best way to develop the GUI. I heard that motif is the easy one to develop GUI applications. Pls help me out thanks in advance. (4 Replies)
Discussion started by: veeru554
4 Replies
Login or Register to Ask a Question