- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: swpackage - print message during swinstall
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
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
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
06-14-2006 03:13 AM
06-14-2006 03:13 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 03:20 AM
06-14-2006 03:20 AM
Re: swpackage - print message during swinstall
swinstall -s /pathname/xyz.depot \* 2>&1 | lp -dsomeprinter
Thw 2>&1 makes sure that error messages are sent to stdout.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 03:25 AM
06-14-2006 03:25 AM
Re: swpackage - print message during swinstall
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 03:27 AM
06-14-2006 03:27 AM
Re: swpackage - print message during swinstall
The SD tools ('swinstall', 'swremove', etc.) log their activity's in various logs in '/var/adm/sw'. You can fetch what you want from there.
You can also examine the last activity as looged in your '.sw/sessions' directory, such as '$HOME/.sw/sessions/swinstall.last'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 03:31 AM
06-14-2006 03:31 AM
Re: swpackage - print message during swinstall
swagent.log
swinstall.log
swagentd.log
Cheers,
f. halili
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 03:33 AM
06-14-2006 03:33 AM
Re: swpackage - print message during swinstall
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 03:35 AM
06-14-2006 03:35 AM
Re: swpackage - print message during swinstall
How about using the script command?
# script -a /tmp/swinstall_txt
# swinstall ......
# exit
script done on Wed Jun 14 17:33:36 2006
# lp /tmp/swinstall_txt
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 03:37 AM
06-14-2006 03:37 AM
Re: swpackage - print message during swinstall
As you indicated, most users don't want to check the logs...
Fine.
Create a simple wrapper script that passes the arguments passed to it to 'swinstall'. Then, following installation, parse the text that you want form the session ".last" log and present that to the user.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 03:44 AM
06-14-2006 03:44 AM
Re: swpackage - print message during swinstall
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 04:12 AM
06-14-2006 04:12 AM
Re: swpackage - print message during swinstall
Any more ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 02:42 PM
06-14-2006 02:42 PM
SolutionYou can specify preinstall and postinstall scripts in your psf file, but the output of these scripts go to the swagent.log, which you have made clear is not what you want. You might check out swask, which is "the" way for a back-end script to communicate with the front-end swinstall. I am not very familar with it but I think if that won't work then you are out of luck.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 08:52 AM
06-15-2006 08:52 AM