LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   init & html (https://www.linuxquestions.org/questions/linux-newbie-8/init-and-html-4175528180/)

foooooooofa 12-13-2014 11:40 AM

init & html
 
Hello guys ,

i have these two questions if anyone can help me to find it !

1)Write a script called whichdaemon.sh that checks if the httpd and init daemons are
running on  your system. If an httpd is running, the script should print a message like,
"This machine is running a  web server." Use ps to check on processes.

2)Write a script that implements a simple web browser (in text mode), using wget and
links -dump to display HTML pages to the user. The user has 3 choices: enter a URL,
enter b for back and q to quit. The last 10 URLs entered by the user are stored in an
array, from which the user can restore the URL by using the back functionality

Thank you linux questions !

John VV 12-13-2014 02:38 PM

please do not double post
see your OTHER post on this
http://www.linuxquestions.org/questi...ml-4175528144/

jpollard 12-13-2014 03:08 PM

Quote:

Originally Posted by foooooooofa (Post 5284094)
Hello guys ,

i have these two questions if anyone can help me to find it !

1)Write a script called whichdaemon.sh that checks if the httpd and init daemons are
running on  your system. If an httpd is running, the script should print a message like,
"This machine is running a  web server." Use ps to check on processes.

2)Write a script that implements a simple web browser (in text mode), using wget and
links -dump to display HTML pages to the user. The user has 3 choices: enter a URL,
enter b for back and q to quit. The last 10 URLs entered by the user are stored in an
array, from which the user can restore the URL by using the back functionality

Thank you linux questions !

sounds like a homework problem to me.

BTW, :) if your system is running... then you have an init daemon running. If it isn't running, then the system has crashed or halted.


All times are GMT -5. The time now is 09:41 AM.