- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I insert a "hit any key" "pause" into my sc...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 09:49 AM
тАО04-14-2005 09:49 AM
Limited by my work-imposed "jack of all trades" SA lifestyle, hence I am a novice at shell scripting and I am preparing a very simple script to help me document my server system for future trouble-shooting purposes. I want to insert an old DOS pause equivalent command that waits for user input after the echoed info via the "hit any key" method. I would also like a nifty way to show our server operators that the script is actually running, some kind of way to show them that these text files/reports are being made, eye candy is great if you know of a way. Thanks in advance folks for anything that you can contribute, I greatly appreciate it.
Very Respectfully,
Chris Elmore
echo **************************************************************************
echo * HP_info_rpt.sh | Ver. 1.0 *
echo * Author: Chris Elmore, Sr. Systems Analyst *
echo * Date Written/Revised: April 14, 2005 *
echo * *
echo * This shell script will generate 9 text file reports to help document *
echo * the HP server system. It will collect these 9 text reports in the *
echo * /export/chris directory. This shell script will be run once per week *
echo * and before & after each release is installed on the HP for our own *
echo * internal documentation and to aid in system troubleshooting. *
echo * *
echo * Revision History: *
echo * 04/14/2005 Ver. 1.0 Written by Chris Elmore. *
echo **************************************************************************
pause
cd /
clear
# Section 1
# To see the disks on the system. This only gives us the physical addresses.
clear
/usr/sbin/ioscan -funC disk > /export/chris/ioscan.txt
# Section 2
# To see the volume groups.
clear
vgdisplay -v > /export/chris/vgdisplay.txt
# Section 3
# To view detailed logical volume information. Look for mirrored and current status.
clear
lvdisplay -v /dev/vg00/lvol* > /export/chris/lvdisplay.txt
# Section 4
# To have a record of the logical volumes.
clear
ll /dev/vg* > /export/chris/ll.txt
# Section 5
# To view the file systems and free space.
clear
bdf > /export/chris/bdf.txt
# Section 6
# To view swap devices.
clear
swapinfo > /export/chris/swapinfo.txt
# Section 7
# To look at the boot information.
clear
lvlnboot -v /dev/vg00 > /export/chris/lvlnboot.txt
# Section 8
# To look at the boot area.
clear
lifls -Clv /dev/dsk/c1t2d0 > /export/chris/lifls.txt
# Section 9
# To get a detailed directory and file listing showing permissions, owner & group info, in a recursive listing.
clear
cd /
ls -alFR > /export/chris/permissions.txt
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 09:51 AM
- Tags:
- read
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 10:07 AM
тАО04-14-2005 10:07 AM
Re: How do I insert a "hit any key" "pause" into my script?
I've inserted your two lines in place of the "pause" in my script and it worked flawlessly, but I realize now that my original script is generating garbled output to the terminal screen. I know that it wasn't your two lines, but is there something I am missing in my echo syntax? I am running HP-UX 11.0. I'm assigning you the full 10 pts. for your quick answer though, and thanks.
Very Respectfully,
Chris Elmore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 10:18 AM
тАО04-14-2005 10:18 AM
Re: How do I insert a "hit any key" "pause" into my script?
echo **
That is VERY different from echo "**". I leave it as a student exercise to figure out why.
- Tags:
- quoting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 11:59 AM
тАО04-14-2005 11:59 AM
Re: How do I insert a "hit any key" "pause" into my script?
Very Respectfully,
Chris Elmore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 12:00 PM
тАО04-14-2005 12:00 PM
Re: How do I insert a "hit any key" "pause" into my script?
Chris