HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shell script to remove bootptab entry
Operating System - HP-UX
1834366
Members
2028
Online
110066
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
05-04-2001 05:55 AM
05-04-2001 05:55 AM
Hi,
i need to remove a single entry in /etc/bootptab. This should be done by a shell script.
Is there someone who can supply me with this script ?
I think that this is quit simple, but i just start with shell programming, so i need help.
Thank in advance
Michael
i need to remove a single entry in /etc/bootptab. This should be done by a shell script.
Is there someone who can supply me with this script ?
I think that this is quit simple, but i just start with shell programming, so i need help.
Thank in advance
Michael
Hier arbeitet die Firma Rast und Ruh; Vormittags geschlossen und Nachmittags ist zu !
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2001 06:17 AM
05-04-2001 06:17 AM
Re: Shell script to remove bootptab entry
Hi,
If the entry to be removed is static then just remove the entry and copy /etc/bootptab to some /etc/bootptab.new and a small script like
/usr/bin/cp -p /etc/bootptab.new /etc/bootptab
should solve u'r purpose.
But is entry is variable then u can use "sed"
Hope it helps.
Ashish
If the entry to be removed is static then just remove the entry and copy /etc/bootptab to some /etc/bootptab.new and a small script like
/usr/bin/cp -p /etc/bootptab.new /etc/bootptab
should solve u'r purpose.
But is entry is variable then u can use "sed"
Hope it helps.
Ashish
The best way to make dreams true is to wake up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2001 06:25 AM
05-04-2001 06:25 AM
Solution
Here you go Micheal:
The attached script is adapted from the 'rmbootpentry' script supplied with the JetAdmin software.
Use it like this:
rmbootpentry /etc/bootptab xterm1
where the first arg is the name of the bootptab
and the second arg is the short name of the entry you wish to remove.
This should do just what you want, Clay.
The attached script is adapted from the 'rmbootpentry' script supplied with the JetAdmin software.
Use it like this:
rmbootpentry /etc/bootptab xterm1
where the first arg is the name of the bootptab
and the second arg is the short name of the entry you wish to remove.
This should do just what you want, Clay.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2001 06:26 AM
05-04-2001 06:26 AM
Re: Shell script to remove bootptab entry
#cp -p /etc/bootptab /etc/bootptab.out
#sed 's/your_entry//g' /etc/bootptab.out > /etc/bootptab
#sed 's/your_entry//g' /etc/bootptab.out > /etc/bootptab
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