Xref: utzoo comp.unix.questions:5806 comp.unix.wizards:6694 Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!nrl-cmf!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: execution environment Message-ID: <7341@brl-smoke.ARPA> Date: 25 Feb 88 10:35:48 GMT References: <7162@tut.cis.ohio-state.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Distribution: na Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 Keywords: sh,exec In article <7162@tut.cis.ohio-state.edu> lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani) writes: >Is there a way for a program to tell if it was executed >1) via a users .profile or 2) by a user on their command line? As the question is posed, in general the answer is "no". However, depending on what you're really after, there may be some other way to accomplish it. Without more information it's hard to give specific advice.