Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!pyramid!chetal From: chetal@pyrps5.pyramid.com (Pradeep Chetal) Newsgroups: comp.lang.perl Subject: I get "Insecure PATH" when I run commands from emacs... Message-ID: Date: 16 Jun 91 18:48:49 GMT Sender: news@pyramid.pyramid.com Distribution: comp.lang.perl Organization: Pyramid Technology Corp., Mtn View, Calif. Lines: 39 I have a perl script which runs fine if I run it at shell level. However when I pipe stuff to it as a "shell command" in emacs I get the message: Insecure PATH at ppr line 18. Insecure PATH at ppr line 81. These two correspond to chop($hostname = `hostname`); AND system($comamnd); respectively. The perl I had built fine with slight modifications to Configure script to get the libraries, etc BUT there were no other changes. This is This is perl, version 4.0 $Header: perl.c,v 4.0 91/03/20 01:37:44 lwall Locked $ Patch level: 0 Copyright (c) 1989, 1990, 1991, Larry Wall Perl may be copied only under the terms of the GNU General Public License, a copy of which can be found with the Perl 4.0 distribution kit. Do I have to do anything special here sothat the same script runs from emacs Shell command also. /Pradeep -- ------------------------------------------------------------------------------ Pradeep Chetal UUCP: ...!{decwrl,sun,uunet}!pyramid!chetal M/S 24 Internet: chetal@pyramid.com Pyramid Technology Phone: (415) 335-8227 (O) 1295 Charleston Road (415) 961-9789 (H) Mountain View, CA 94043 (415) 335-8845 (FAX)