*BSD News Article 29818


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!agate!dog.ee.lbl.gov!newshub.nosc.mil!nosc!hns_west!elufker
From: elufker@hns.com (Ed Lufker)
Subject: newgrp help
Sender: news@hns.com (News Administrator)
Message-ID: <1994Apr21.215959.6969@hns.com>
Date: Thu, 21 Apr 1994 21:59:59 GMT
Organization: Hughes Network Systems, Inc.
Lines: 26

Hi All:

	I am having a problem with the newgrp command in the below script. It
seems that when running this script it stops at line 2. The files in /testdir
cannot be seen by any other gid only opseng. Does anyone have any ideas on how
I might get around this problem. /testdir is a novell directory that is NFS
mounted. I would just like to see if file.tmp exists and if it does I want to
copy it to its new home.

clue-less
thanks for any help anyone can provide.
eddie
elufker@oscar.hns.com



#!/bin/csh -f
/bin/newgrp opseng
if (-e /testdir/file.tmp) then
	if (-r /testdir/file.tmp) then
     	  cp /testdir/file.tmp $NEW_HOME/data
	endif
else
echo "file.tmp doesn't exsist"
endif
exit