HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- newgrp command
Operating System - HP-UX
1831218
Members
2787
Online
110021
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
01-08-2002 07:45 PM
01-08-2002 07:45 PM
Hey all,
I'm trying to use the newgrp command to do some dodgy stuff, not working though.
Here's what I'm trying to do:
Application 1
Application 2
Application 1 user has pri grp of app1
application 2 user has pri grp of app2
all of a sudden the business has decided to multi-skill
So.....
I can successfully use the newgrp command.
However, each application has its own very specific environment settings. I would like to be able to set this up in such a way that I can have .profile (sh-posix) that says: 1 app #1 2 app #2.
Then just run another script that has application settings, changes group and launches application.
The problem I am having is that after running the newgrp command, processing of my script seems to stop.
I an using newgrp app1
without the dash.
This is because newgrp with the dash just wants to run the profile again (which I don't want to do).
Anyone got any ideas?
Scott.
I'm trying to use the newgrp command to do some dodgy stuff, not working though.
Here's what I'm trying to do:
Application 1
Application 2
Application 1 user has pri grp of app1
application 2 user has pri grp of app2
all of a sudden the business has decided to multi-skill
So.....
I can successfully use the newgrp command.
However, each application has its own very specific environment settings. I would like to be able to set this up in such a way that I can have .profile (sh-posix) that says: 1 app #1 2 app #2.
Then just run another script that has application settings, changes group and launches application.
The problem I am having is that after running the newgrp command, processing of my script seems to stop.
I an using newgrp app1
without the dash.
This is because newgrp with the dash just wants to run the profile again (which I don't want to do).
Anyone got any ideas?
Scott.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 08:12 PM
01-08-2002 08:12 PM
Re: newgrp command
Hello,
the simple reason is that "newgrp" starts a NEW shell!
HTH,
Wodisch
the simple reason is that "newgrp" starts a NEW shell!
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 08:19 PM
01-08-2002 08:19 PM
Re: newgrp command
Yup, I read through the man page.
Is there some way I can get my dodginess to work?
Scott.
Is there some way I can get my dodginess to work?
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 01:48 AM
01-09-2002 01:48 AM
Solution
Hi Scott, I believe this is a know issue in newgrp (ie a bug)
If you d/load and install the earlier patches it should work, just make sure that you don't need their fixes..
woun't happen to be telecom stuff by any chance would it?
Bill
If you d/load and install the earlier patches it should work, just make sure that you don't need their fixes..
woun't happen to be telecom stuff by any chance would it?
Bill
It works for me (tm)
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