LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices



Closed Thread
 
Search this Thread
Old 06-20-2005, 11:13 PM   #1
golpemortal
Member
 
Registered: Sep 2003
Posts: 156

Rep: Reputation: 30
please help with this scripts


I don't know much about linux newbee...trying to cross into the linght.....

I got this homework quiz project and don't have any idea on how to do this...

here are the questions


b) Describe the difference between the while, until and for statements in the
Korn shell. Show a small example shell script of using each.



c) Write a shell script that performs the following tasks:

1) Displays a message similar to: It is now 2002-06-03 21:30:54 using
the current info.


2) If the time is between 11:30pm - 5:00am, display a message stating

"You should be sleeping!" Otherwise, display a message stating "You're
working hard!"


3) Display a prompt and ask for the user to guess your name. If they
guess incorrectly, the script should display an appropriate message and
ask them to guess again. It should continue until the user correctly
guesses your name. It should then display how many guesses it took to
get it right.


can some1 help me do this cause my brain is fried.........please help with these question guys..........
 
Old 06-21-2005, 04:14 AM   #2
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 46
Please in the future post the thread in its suitable place

and be sure to read the rules as it states that
" Do not expect LQ members to do your homework - you will learn much more by doing it yourself."

http://www.linuxquestions.org/rules.php


check these links out as they will help you out

http://www.tldp.org/LDP/Bash-Beginne...tml/index.html
http://www.linuxcommand.org/

Last edited by heema; 06-21-2005 at 04:20 AM.
 
Old 06-21-2005, 04:05 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
I'm closing this - we really really don't help with homework. If you don't understand the questions, you would be better served by discussing them with your lecturer or classmates.
 
  


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
VPN: Debian Scripts -> Mandriva 2006 Scripts Undefined Mandriva 0 11-30-2005 01:10 PM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 01:56 PM
What scripts would you like to see? kittani Linux - Software 1 05-20-2004 04:26 AM
Scripts? zombie killa Linux - Software 5 05-29-2003 06:19 PM
scripts mdjames0 Linux - Newbie 4 08-02-2002 10:10 PM


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