Exercise 2: Please complete the script in exercise 1 by filling these four functions, system_info(), show_uptime(), drive_space(), home_space(). Please name your file to "sysinfo_page_9".

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 3RA
icon
Related questions
Question
Exercise
• Exercise 2: Please complete the script in exercise 1
by filling these four functions, system_info(),
show_uptime(), drive_space(), home_space().
Please name your file to "sysinfo_page_9".
Transcribed Image Text:Exercise • Exercise 2: Please complete the script in exercise 1 by filling these four functions, system_info(), show_uptime(), drive_space(), home_space(). Please name your file to "sysinfo_page_9".
Exercise 1 ( See program in diagram below [Lecture 10 page 11])
#!/bin/bash
##### Constants
TITLE="System Information for $HOSTNAME"
RIGHT_NOW=$(date +%x %r %Z")
TIME_STAMP="Updated on $RIGHT_NOW by $USER
##### Functions
system_info()
##### Main
cat <<-_EOF_
<html>
<head>
# Temporary function stub
echo "function system_info"
<title>$TITLE</title>
</head>
show_uptime()
<body>
<h1>$TITLE</h1>
<p>$TIME_STAMP</p>
$(system_info)
$(show_uptime)
$(drive_space)
$(home_space)
</body>
</html>
EOF
# Temporary function stub
echo "function show_uptime"
drive_space()
# Temporary function stub
echo "function drive_space"
home_space()
# Temporary function stub
echo "function home_space"
Transcribed Image Text:Exercise 1 ( See program in diagram below [Lecture 10 page 11]) #!/bin/bash ##### Constants TITLE="System Information for $HOSTNAME" RIGHT_NOW=$(date +%x %r %Z") TIME_STAMP="Updated on $RIGHT_NOW by $USER ##### Functions system_info() ##### Main cat <<-_EOF_ <html> <head> # Temporary function stub echo "function system_info" <title>$TITLE</title> </head> show_uptime() <body> <h1>$TITLE</h1> <p>$TIME_STAMP</p> $(system_info) $(show_uptime) $(drive_space) $(home_space) </body> </html> EOF # Temporary function stub echo "function show_uptime" drive_space() # Temporary function stub echo "function drive_space" home_space() # Temporary function stub echo "function home_space"
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L