From: "Cenon B.C. Marana Jr." <bonn () durian ! usc ! edu ! ph>
To: tru64-unix-managers
Subject: SUMMARY: DEC UNIX ftp..
Date: Tue, 11 Jul 1995 14:35:31 +0000 [thread overview]
Message-ID: <96075321606487.tru64-unix-managers.marc@archive.invalid> (raw)
Thanks to those who responded namely:
Matt Thomas <thomas@lkg.dec.com>
Ross Alexander <rwa@cs.athabascau.ca>
"Ian K. Piumarta" <Ian.Piumarta@inria.fr>
> 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
:)
reply other threads:[~1995-07-11 14:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox