Article View: comp.sys.sgi.misc
Article #163Re: strange problem with command execution at xwsh startup
From: Jim Moore
Date: Wed, 06 Jan 1993 14:49
Date: Wed, 06 Jan 1993 14:49
51 lines
1901 bytes
1901 bytes
In article <1ictqqINNk4a@tamsun.tamu.edu> vamsee@abgen.tamu.edu (Vamsee Lakamsani) writes:
>%xwsh -e rlogin <any-host>
>
>The above command works on this SGI (Indigo 4.0.5A). But,
>
>%xwsh -e /bin/ls
>%xwsh -e cd /usr/people/vamsee/junk
>%xwsh -e chdir /usr/people/vamsee/junk
>%xwsh -e cd /usr/people/vamsee/junk; vi <somefile>
>
>don't work. The man page says:
>
>" The -e option will pass all trailing arguments to xwsh , to be
> executed as a command line."
>
>What's the difference ? Why does rlogin work and the others don't?
>There must be a way to do this simple thing. Any help is appreciated.
>
>Vamsee
>
-----------------------------------------------
Response:
xwsh terminates immediately after the commands terminate.
rlogin doesn't terminate, therefore the window hangs around.
SGI provided a command file with buttonfly that I have used in the past.
It contains the following:
#! /bin/csh -f
$*
echo -n "<ENTER to continue>"
set foo $<
I called this "mywsh". It is used as follows:
xwsh -e mywsh ls
It executes the command then waits for you to terminate it after it completes.
By the way,
%xwsh -e cd /usr/people/vamsee/junk; vi <somefile>
is the same as:
%xwsh -e cd /usr/people/vamsee/junk
% vi <somefile>
The ";" signifies the end of the xwsh command.
--
Jim Moore Hughes Training Inc.
Phone: (612) 572-7721 5301 East River Road
Fax: (612) 572-7732 Mpls, Mn. 55421-1024
Email: jfm@asf.com USA
Technical Details
Message-ID:
<1993Jan6.144904.4811@asf.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!psinntp!snoopy!jfmReferences:
<1ictqqINNk4a@tamsun.tamu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.misc,comp.sys.sgi.apps,comp.sys.sgi Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!snoopy!jfm From: jfm@asf.com (Jim Moore) Subject: Re: strange problem with command execution at xwsh startup Message-ID: <1993Jan6.144904.4811@asf.com> Organization: ASF References: <1ictqqINNk4a@tamsun.tamu.edu> Date: Wed, 6 Jan 1993 14:49:04 GMT Lines: 51