HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to catch all input and output of running a scr...
Operating System - HP-UX
1833006
Members
3339
Online
110048
Solutions
Forums
Categories
Company
Local Language
back
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
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-05-2004 08:20 AM
03-05-2004 08:20 AM
Hi,
I need to run configure script, which needs a lot of inputs and also produces a lot of output.
How do I catch these inputs and outputs to a file?
Thanks,
I need to run configure script, which needs a lot of inputs and also produces a lot of output.
How do I catch these inputs and outputs to a file?
Thanks,
none
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 08:26 AM
03-05-2004 08:26 AM
Re: how to catch all input and output of running a script.
Enter "script filename". This will capture input/output to "filename".
HTH
-- Rod Hills
HTH
-- Rod Hills
There be dragons...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 08:50 AM
03-05-2004 08:50 AM
Solution
Hi,
Is this related to the other question you posted on installing sw packages?.
If so, capturing inputs can be tricky. I convert all my interactive installation scripts to non-interactive by either first installing the software on one system and then make a package or modify the script to source in an input file. For ex., one of the install scripts for a software has the following
printf "Enter your model:"
read MODEL
if [ $MODEL -eq bla bla ]
etc.,
...
What I would do is the following.
. myconfigfile
..
..
if [ $MODEL -eq bla bla ]
etc.,
..
myconfigfile is like this
MODEL=$(model)
HOST=$(hostname)
etc
Otherway is to place request scripts. Look at Request Scripts. Look at the following SD documentation.
http://docs.hp.com/hpux/onlinedocs/B2355-90789/B2355-90789.html
Output of the config file goes into sw*.log files. You will need suppress the output within the script as far as I know.
-Sri
Is this related to the other question you posted on installing sw packages?.
If so, capturing inputs can be tricky. I convert all my interactive installation scripts to non-interactive by either first installing the software on one system and then make a package or modify the script to source in an input file. For ex., one of the install scripts for a software has the following
printf "Enter your model:"
read MODEL
if [ $MODEL -eq bla bla ]
etc.,
...
What I would do is the following.
. myconfigfile
..
..
if [ $MODEL -eq bla bla ]
etc.,
..
myconfigfile is like this
MODEL=$(model)
HOST=$(hostname)
etc
Otherway is to place request scripts. Look at Request Scripts. Look at the following SD documentation.
http://docs.hp.com/hpux/onlinedocs/B2355-90789/B2355-90789.html
Output of the config file goes into sw*.log files. You will need suppress the output within the script as far as I know.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP