- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Inittab
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
07-22-2002 02:02 AM
07-22-2002 02:02 AM
Inittab
brc1::bootwait:/sbin/bcheckrc /dev/console 2>&1 # fsck, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 02:13 AM
07-22-2002 02:13 AM
Re: Inittab
I wont recommend to change that line.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 02:19 AM
07-22-2002 02:19 AM
Re: Inittab
but i think that it should be possible as at the end of the day it is a script and therefore as long as i get the syntax correct should work.
worst case is i have to boot to single user mode and copy the orig file back in and restart.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 02:27 AM
07-22-2002 02:27 AM
Re: Inittab
brc1::bootwait:/sbin/bcheckrc &1 | tee /brc1.log >/dev/console
But im not sure that at the point this runs that any filesystem is mounted except / but you may have to try /stand instead for the logfile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 02:28 AM
07-22-2002 02:28 AM
Re: Inittab
brc1::bootwait:/sbin/bcheckrc > /home/bceck 2>&1
will be enough for that.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 02:30 AM
07-22-2002 02:30 AM
Re: Inittab
On second thought it might not be able to find the tee command as its in /usr/bin, you may need to copy to /sbin first then change command to;
brc1::bootwait:/sbin/bcheckrc &1 | /sbin/tee /brc1.log >/dev/console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:10 AM
07-22-2002 03:10 AM
Re: Inittab
regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:35 AM
07-22-2002 03:35 AM
Re: Inittab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 03:39 AM
07-22-2002 03:39 AM
Re: Inittab
With tee being in /usr/bin you cannot achieve what you want to do. The file in that directory are dinamically linked and they need the library that are in /usr/lib so even movin tee in /sbin won't work. You will need the source code of tee and rebuild it statically link.
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 04:12 AM
07-22-2002 04:12 AM
Re: Inittab
All this talk about tee not working if copied to /sbin - baloney. Ive just tried it in my inittab file and it worked absolutely fine!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 04:39 AM
07-22-2002 04:39 AM
Re: Inittab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 04:43 AM
07-22-2002 04:43 AM
Re: Inittab
ah, thats because exec cant handle the pipe character which means you cant use tee, you need to do it in 2 stages this way (works fine on my test server);
brc1::bootwait:/sbin/bcheckrc /brc1.log 2>&1 ; cat /brc1.log >/dev/console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 05:28 AM
07-22-2002 05:28 AM
Re: Inittab
You imply that you have tried it, but later you say "exec cant handle the pipe character which means you cant use tee", so I guess you did *not* actually try it, or did not try it with a reboot, etc..
Even if you did try it with a reboot, you still might have been 'lucky', because, as I wrote, /usr/bin/tee *does* use shared libraries, so it could fail under certain circumstances (different LANG?) and you don't want failures at boot time, especially not for bcheckrc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 05:37 AM
07-22-2002 05:37 AM
Re: Inittab
Look Frank, I DID try it - you clearly didnt. Wind your neck in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 06:01 AM
07-22-2002 06:01 AM
Re: Inittab
Let's please scale down the tone a bit.
Please post which command you did try, because from your postings it is not clear (i.e. contradictory information).
For what it is worth, I only warned about the dangers, i.e. using an executable which uses shared libraries, without /usr mounted is asking for trouble. I don't think it is wise to implement something which happens to 'work' if you know that there potential problems with the approach (i.e. in this case missing shared libraries).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 06:33 AM
07-22-2002 06:33 AM
Re: Inittab
If you do an ldd /usr/bin/tee, you will find that indeed requires shared libraries.
If you really wanted to do this, it would be quite easy to code a statically linked equivalent of tee and put it in /sbin. This should be only a few lines of C.