The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help Required: Command to find IP address and command executed of a user loggedout Security 2 08-06-2008 05:12 PM
how to? launch command with string of command line options TinCanFury Shell Programming and Scripting 5 04-28-2008 03:06 PM
inconsistent ls command display at the command prompt & running as a cron job rajranibl Linux 5 07-30-2007 05:26 AM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr Shell Programming and Scripting 0 09-19-2006 06:44 PM
newgrp in a script Nathe UNIX for Dummies Questions & Answers 11 01-08-2004 08:42 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-12-2003
Registered User
 

Join Date: Dec 2003
Posts: 15
Stumble this Post!
newgrp command

I'd like to make an alias of commands which contains the command newgrp.
exple:
alias my_cmde newgrp toto; my_pg &

this line doesn't work. why ?
Thanks for your help
Forum Sponsor
  #2 (permalink)  
Old 12-12-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,449
Stumble this Post!
How aliases work depends on your shell. How newgrp works depends on your version of unix. You need to mention a few specifics to get a useful answer.

But for the most part newgrp is obsolete. It was useful in the 70's and early 80's. But now you can be a member of several groups at once. Type "groups" to see your groups. I doubt that anyone has rewritten newgrp to work sensibly in an environment where users belong to multiple groups. I'm not even sure what work sensibly would mean. Should it revoke your membership in all other groups? Add a group to the list? What if you were already a member of the max number of groups?
  #3 (permalink)  
Old 12-15-2003
Registered User
 

Join Date: Dec 2003
Posts: 15
Stumble this Post!
In fact, to work on several project, in a same UNIX group, we make sub-group. If we change the project we were working on, we have to change the group, so we use for exple: newgroup my-project.
I work on SUN-OS 5.7
As I said, I want in one hand, to make an alias to launch applications, when I start working on this project.
Thanks for your help.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0