![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help me in sending parameters from sqlplus script to unix shell script | Hara | Shell Programming and Scripting | 2 | 01-29-2008 11:31 AM |
| Shell Script: want to insert values in database when update script runs | ring | Shell Programming and Scripting | 1 | 10-25-2007 12:06 AM |
| here document to automate perl script that call script | hogger84 | Shell Programming and Scripting | 3 | 10-22-2007 07:15 AM |
| Modify Perl script to work with txt - Permissions script | joangopan | Shell Programming and Scripting | 1 | 09-12-2007 08:38 PM |
| newgrp command | Nathe | UNIX for Advanced & Expert Users | 2 | 12-15-2003 06:17 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I want to do these commands in a script:
if the user name is 'toto' then the user switch to the group toto_group and then 2 others scripts are launched. Unfortunately, after the command 'newgrp' the 2 scripts are not launched correctly. But if I do the same, by hand, one line per one line, it works!! Why ?? I work on with a SUNOS5.7 Thanks for your help ! |
| Forum Sponsor | ||
|
|
|
|||
|
Yes, my code is:
#! /bin/csh set PATH_CPT = `pwd`; set PRJ = '/home/myproject/' echo "Changement de groupe UNIX touareg" newgrp my_project & ## creation of the ANABE_CFG directory if !( -d $PATH_CPT/ANABE_CFG ) then mkdir $PATH_CPT/ANABE_CFG cd $PATH_CPT/ANABE_CFG mkdir CALIBRE mkdir PROJECT else echo " $PATH_CPT/ANABE_CFG directory already exists " endif stconf icfb& |
|
||||
|
There's a good reason for that. Guess the OP didn't catch it the first time you said this command is obsolete.
![]() newgrp command |
||||
| Google UNIX.COM |