From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075321606487.tru64-unix-managers.marc@archive.invalid> From: "Cenon B.C. Marana Jr." Date: Tue, 11 Jul 1995 14:35:31 +0000 To: tru64-unix-managers Subject: SUMMARY: DEC UNIX ftp.. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075321606487 Thanks to those who responded namely: Matt Thomas Ross Alexander "Ian K. Piumarta" > Hello All! > > I just would like to inquire if there are ways and means on how > to tinker the DEC UNIX ftp wherein the ! option would be disabled to > restrict its use. The easiest thing to do is to set the SHELL variable to something harmless before invoking FTP. For example, from a sh or ksh you can do prompt$ SHELL=/bin/true prompt$ ftp ftp> !ls ftp> You can place the name of any program in the SHELL variable and the actual command used in FTP will be passed as an argument. For example, "!ls" in FTP runs "$SHELL -c ls", so we can easily get the following effect: prompt$ SHELL=/bin/echo prompt$ ftp ftp> !ls -l -c ls -l ftp> (where /bin/echo has echoed the arguments to the ! command). (If you use csh or similar you will have to use prompt% setenv SHELL /bin/echo prompt% ftp ... instead.) Bonn :)