Linux Script


I require awnsers to the following questions. I also need this by Sun 22 Aug 1900 GMT.


echo -n "Hostname: "

cat /etc/HOSTNAME

echo -n "IP Number: "

/sbin/ifconfig | grep "inet addr" | cut -f2 -d: | cut -f1 -d' ' | sed 1q


**1**. What does it do? And how does it do it? (to work this out try out the commands separately, you may also need to use the man pages to work out what the switches do)

**2. Write a script to do the following task,

**Provide a list of names and numbers of all the machines that are currently up and running on the network.

**Sample output

**Machines responding on Network Address: - [url removed, login to view]

[url removed, login to view] - [url removed, login to view]

[url removed, login to view] - [url removed, login to view]

**3.** Write a script to provide a list of users that are logged in to your machine at the moment.

**4.** Extend the list of users to include what they're doing on the system.

**5.** Extend it again to run once every hour and record the results in a file, including the date and time that the results were recorded.

**6.** Extend it once more to mail you the current log file.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform


Evner: Ingeniørarbejde, Linux, MySQL, PHP, Software Arkitektur, Software Testning

Se mere: time in phoenix, linux 4.5, hire linux, slackware linux, linux slackware, Linux script, f2, f1, write linux script, sed place, php script linux network, php script echo, linux mail server install, linux script log, system grep, script switches, linux mail, running linux, php mail script complete, linux package

Om arbejdsgiveren:
( 9 bedømmelser ) Orange, United States

Projekt ID: #3319748