LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > Linux - Certification
User Name
Password
Linux - Certification This forum is for the discussion of all topics relating to Linux certification.

Notices


Closed Thread
  Search this Thread
Old 10-12-2004, 06:11 AM   #1
shaoshuai97
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
script questions


1.3.4
1) Write a script that takes two parameters and displays the addition of these two parameters on the screen.

2) Write a script that takes two parameters and displays the larger valued parameter on the screen.

3) Write a script that reads in three values and displays the greatest value and the average value.

2.4 Write a script/command to automatically send a message to all users currently running netscape that netscape will be killed. Make sure you also kill the netscape processes.



5.5 Write a script that reads a list of names and creates a user account for everyone on the list. You will have to think carefully about the usernames and their uniqueness. Remember, they need home directories.


5.6 Write a script that creates useful .profile files for each user. What other login initialization files are there? Why are they useful? Why are there different initialization files (e.g., .login, .cshrc).


5.7 Delete one of the user accounts you have created. Now disable a user account. Lock an account. What is the difference between deleted, disabled, locked and retired accounts? Why are there these differences?

5.9 Describe a captive account. Can you produce a captive account on your system?

6.4 Write a script that can be used to test the suitability of user passwords. The script should suggest (based on the initial user password suggestion given by a user) a suitable alternative if required. Describe why your suggested passwords are suitable.

7.5 Write a script that lowers the priority of all processes that exhibits more than 10% CPU usage. You should consider the Nice approach to process priority in your solution.

7.6 Change the script you developed in task 7.5 to actually kill the processes that exhibit more than 10% CPU usage


Hope someone can help me to answer those questions.
Just see what you guys can do .

Many thanks!
 
Old 10-12-2004, 07:22 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
good grief, you could at least *try* to pretend it's a genuine question, and not homework. What's the point in cheating??
 
Old 10-12-2004, 10:00 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 253Reputation: 253Reputation: 253
In some cases homework questions are ok to assist in getting you the right information to get the right answers but not answers directly is not looked upon in a good way.

I'm closing this thread, if you want the answers to your own homework, research and find the answers yourself, that's the point of homework, labs, etc.
 
  


Closed Thread


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
Script questions tgreiner Linux - Newbie 6 04-05-2005 01:00 AM
Script questions, please help Joey^s Programming 4 11-29-2004 02:53 AM
two shell script questions tutwabee Linux - General 4 08-10-2004 06:03 PM
Some questions about a rc.firewall script matruschka Linux - Security 3 08-01-2004 08:47 AM
Shell Script Questions Col Panic Linux - General 13 10-12-2003 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > Linux - Certification

All times are GMT -5. The time now is 02:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration