LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-03-2009, 09:46 PM   #1
dvs817
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Post Need help with major scripting project!!!!


Please need help with major scripting project have no clue first time linux user. Help would be much appreciated.
run from the command line with parameters pass in to it or run in interactive
mode (a menu system).
script must be able to start any program/s that is/are passed into the script as a parameter/s or a
single program input from the menu system (interactive mode). If there are no parameters passed
into your script, the script will then show the menu system (default behaviour).
After the program that has been chosen your script/s does the following:
First script checks that the target program file exists and reports the fact if it’s not found.
script will then start the target program.
If the running target program halts, script will then attempt to restart it.
Your script maintains an error log – failure of the target program to start, program has stopped and
the program restarted. All entries in the error log are to be date stamped. Note: Error log name is to
be the first parameter or asked for by menu-system.
Also script will report to the user via mail failure to start( after five attempts), that the program
has stopped and has fail to restart (mail account is second parameter or input from user).
In the case of the menu system the program will report to the screen, a non-existing file or the failure
of the initial start and waits for further input from the user. In the case of the command –line version
the program also reports to the screen the failure of the initial start and then aborts.
 
Old 06-03-2009, 09:53 PM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Homework, eh?
 
Old 06-03-2009, 09:54 PM   #3
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Sooo is this Homework?

If so it's not the policy of this site to do others homework, why not show what you have already done and I'm sure someone will give you some hints.
 
Old 06-03-2009, 11:22 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.

I now close anything which is an obvious verbatim posting of homework. Please contact me if you have any questions
 
  


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
LXer: Add Ruby scripting to your Project Zero LXer Syndicated Linux News 0 10-06-2007 03:10 PM
student + major project + internship + future + suggestions + confused + help koodoo General 10 09-21-2007 05:16 PM
LXer: EBS implements Novell SUSE Linux as foundation for major server consolidation project LXer Syndicated Linux News 0 02-15-2007 06:16 PM
I Kindly need some linux scripting project advice mosesmungai Programming 4 12-05-2006 09:59 AM
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 05:29 AM


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