GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bash_Shell_Scripting_notes/1.Document-httpd-info.sh at master · surendra1453/Bash_Shell_Scripting_notes

Expand file tree

/

1.Document-httpd-info.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
7 lines (7 loc) · 361 Bytes
/

1.Document-httpd-info.sh

Copy path

File metadata and controls

7 lines (7 loc) · 361 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
#!/bin/bash
httpd_v=$(httpd -v 2>&1 | awk -F '/' 'NR==1{print $2}' | awk '{print $1}')
httpd_s=$(systemctl status httpd | grep Active | awk '{print $2}')
httpd_p=$(cat /etc/httpd/conf/httpd.conf | grep ^Listen | awk '{print $2}')
echo "The httpd version is: $httpd_v"
echo "The current status of httpd is: $httpd_s"
echo "The port for httpd is: $httpd_p"
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.