[comp.sys.ti.explorer] Run Shell Command?

RICE@SUMEX-AIM.STANFORD.EDU (09/07/89)

Hello,

A while back someone asked about trying to run unix
shell commands on a remote unix box from an Explorer.
I seem to recall that there were some replies that
looked promising.

Unfortunately (gag) we seem to have lost our archive of
the Info-TI bboard so I can't look back beyond last
april.

If anyone knows how to do this could you possibly sent
me the fix.  I'm looking for something that will do
things like:


(run-shell-command "pwd" :On "Sumex-Aim.Stanford.Edu")

-> "/a/rice"


Having this would make simple a fix for all of those
questions about file protection, since one could advise
a (run-shell-command (string-append "cmod 400 " (send path :String-For-Host)))
around the file close.

Many thanks in advance.



Rice.

jwz@teak.berkeley.edu (Jamie Zawinski) (09/07/89)

Check out the code in /usr/jwz/public/rexec/ on spice.cs.cmu.edu,
accessible by anonymous FTP.  This code, by Eric Karlson, implements 
the rshell, rexec, and lpd protocols for the Explorer.

  > (net:rexec "teak" "pwd")
  Current login name is jwz for host teak.
  Type either password or loginname<space>password: jwz XXXXXXXX
  /usr2/users/jwz
  T

Rshell is like rexec, but it doesn't require a password if the
remote unix thinks the Explorer as a trusted host (I think).

This code also redefines the TI printer driver to use LPD, which
means that you can FINALLY print from a TI to a printer that is
attached to a Unix machine.  We have a LaserWriter attached to
a Sun, and it works fine.

The files /usr/jwz/public/_readme.text and _recent-changes.text
have short descriptions of everything in this archive.

I hadn't thought of using this to change the file protections; I'll
give it a shot.  Seems like an awful hack to have to open both an
FTP connection *and* an rexec connection to write a file, but...

Incidentally, I looked in to the "QUOTE UMASK" FTP server command,
and it is not implemented in the FTP servers on any of the four
unix machines I use.  Maybe someday.

	-- Jamie

jamey@AU-BON-PAIN.LCS.MIT.EDU (Jamey Hicks) (09/07/89)

The latest release (Rel 6 here), has a public utility for doing RSH on
Unix hosts from Explorers.  This uses the normal RSH protocol over
TCP-IP streams.  It's in SYS:PUBLIC;RSH.LISP surprisingly enough.  You
may have to modify it so that it sends the correct Unix login as
identification (it defaults to the Lisp machine login, which is often
uppercase)

Jamey Hicks