ORIGINAL QUESTION :
> Problem:
>
> For the users using sh, I want to be able within the .profile to execute
/etc/skel/group_name.profile
>
> This is the .profile anybody gets:
>
> >#
> >stty istrip
> >PATH=/usr/bin:/usr/ucb:/etc:.
> >export PATH
> >user_name=`who am i| awk '{print $1}'`
> >echo "$user_name"
> >group_id=`cat /etc/passwd | grep -w $user_name | awk '{FS=":"}{print $4}'`
> >echo "$group_id"
> >group_name=`cat /etc/group | grep -w $group_id | awk '{FS=":"}{print $1}'`
> >echo "$group_name"
> >shell=`cat /etc/passwd | grep -w $user_name | awk '{FS=":"}{print $7}' | awk
'{FS=" /"}{print $3}'`
> >profile_file="/etc/skel/$group_name.profile"
> >./etc/skel/$group_name.profile
>
>
> The whole script works OK except execute the $group_name.profile part, which
actually has lots more info
> pertinent to the application(s) and is the heart of all things.
>
> I have a similar script for the users using csh and everything works just
fine.
>
> Thanks for your help,
>
> Val
>
SOLUTION:
> From magi@csd.uwo.ca Tue Jul 23 11:50:44 1996
> From: David G Wiseman <magi@csd.uwo.ca>
> Shouldn't that be ". /etc/skel/..."? The space is very important here.
So obvious, yet i missed the space...
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:05 CDT