- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- prob with sh or swinstall in nohup script
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
02-05-2003 08:35 AM
02-05-2003 08:35 AM
prob with sh or swinstall in nohup script
The problem I am noticing is that either the sh or the swinstall fails. swinstall.log says:
ERROR: The match operation failed. No software from the target was
matched on the source.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.
However, when I comment out the code in the child script that kills the telnet sessions, the patch gets installed correctly.
I have made sure that PATH is set properly in the child script.
Why does swinstall in the nohup child script fail if the parent script that spawned the child script is killed, by virtue of all telnet sessions being killed?
Thanks,
--Nivesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 09:03 AM
02-05-2003 09:03 AM
Re: prob with sh or swinstall in nohup script
That's an interesting situation. May be the patch is looking for live telnetd sessions to ensure it's compatibility.
What is happeneing if you keep the same kill telnet sessions except for the one you are using. Just curious.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 09:15 AM
02-05-2003 09:15 AM
Re: prob with sh or swinstall in nohup script
You could log on at the console and try it there, that might get you around the install process suicide problem.
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 09:49 AM
02-05-2003 09:49 AM
Re: prob with sh or swinstall in nohup script
1) HP recommends in the installation instructions that all telnet sessions be closed prior to installing the patch
2) If I am running it at the console, it shouldn't matter that I am killing telnet sessions as my session is not affected.
I do shutdown inetd before I start the install, but it shouldn't be a factor as I have successfully installed without inetd running.
I use:
swinstall -x autoreboot-true -x match_target=true -s /tmp/PHNE_24821.depot
I changed the child script such that it kills all other telnet sessions, except for the tty session associated with the nohup child script. The patch gets installed without errors!
I have not tried it yet, but I think it should now work from the console also. I will post another message with the result. But I am not satisfied with this workaround.
The reason why I need the install to work both from the console and from a telnet session is that, some systems do not have a keyboard and monitor attached.
Is it really okay to install PHNE_24821 which puts out a new /usr/lbin/telnetd while there are active telnet sessions to the system? Sure, the install works that way, but why does HP recommend otherwise?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 09:53 AM
02-05-2003 09:53 AM
Re: prob with sh or swinstall in nohup script
swinstall -x autoreboot=true -x match_target=true -s /tmp/PHNE_24821.depot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 10:30 AM
02-05-2003 10:30 AM
Re: prob with sh or swinstall in nohup script
step1: I ran the parent script from the console, and swinstall had the error.
step2: Next, I changed the parent so it calls the child script without a nohup, and ran the parent from the console. Failed on swinstall.
step3: Next, I changed the child script and commented out the kill statement, and ran the parent from the console. Patch installs!
None of this is making much sense. Why is the killing of telnet sessions of consequence when I am running the parent at the console. Even more bothersome, there weren't even any telnet sessions to kill, and it still failed at the console(step2).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 01:23 PM
02-05-2003 01:23 PM
Re: prob with sh or swinstall in nohup script
Just a guess
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 02:08 PM
02-05-2003 02:08 PM
Re: prob with sh or swinstall in nohup script
thisTTY=`tty`
thisTTY=`basename $thisTTY`
echo "Killing all telnet sessions except this one" >>$LOGFL
ps -ef |grep telnetd |grep -v $thisTTY |grep -v grep >/tmp/$$.tmp
echo "Active telnet sessions:" >>$LOGFL
cat /tmp/$$.tmp >>$LOGFL
while read v1 v2 v3
do
echo "Killing $v2" >>$LOGFL
# echo "Kill commented out" >>$LOGFL
kill -9 $v2
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 02:36 PM
02-05-2003 02:36 PM
Re: prob with sh or swinstall in nohup script
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 03:06 PM
02-05-2003 03:06 PM
Re: prob with sh or swinstall in nohup script
Try:
/usr/sbin/swinstall -s ${PATHTOFILE}/${FILENAME} \*
If the patch requires an auto-reboot the machine will bring itself down without you telling it. Sometimes it will install and work without a reboot. Personnally I would rather install the patch and reboot only if necessary.
Remember the \* installs all components without any questions. This is not safe for those un-familiar in this kind of thing.
Good luck -Jon