Article View: comp.sys.sgi.misc
Article #164Re: strange problem with command execution at xwsh startup
From: Hemant Shah
Date: Wed, 06 Jan 1993 20:46
Date: Wed, 06 Jan 1993 20:46
36 lines
2121 bytes
2121 bytes
In article <1icv27INN6f2@fido.asd.sgi.com>, kipp@warp.asd.sgi.com (Kipp Hickman) writes: |> |> In article <1ictqqINNk4a@tamsun.tamu.edu>, vamsee@abgen.tamu.edu writes: |> > %xwsh -e rlogin <any-host> |> > |> > The above command works on this SGI (Indigo 4.0.5A). But, |> > |> > %xwsh -e /bin/ls |> This will work, it just exit's immediately after finishing. Try adding |> the "-hold" option if you want wsh to hang around after finishing monitoring |> the subprocess. |> > %xwsh -e cd /usr/people/vamsee/junk |> > %xwsh -e chdir /usr/people/vamsee/junk |> > %xwsh -e cd /usr/people/vamsee/junk; vi <somefile> |> These will never work because there is no such program called "cd". When |> you give xwsh the "-e" option you are changing its notion of the shell to |> use to a specific program. The arguments you give are just exec'd, not |> run through another shell. |> |> kipp Try following: %xwsh -e "/bin/sh -c cd /usr/people/vamsee/junk" . . . etc. ------------------------------------------------------------------------------ Hemant Shah | All the opinions expressed are my own Fermi National Accelerator Laboratory | and does not necessarily reflect Systems Integration Group | those of Fermilab. E-mail :shah@fnal.fnal.gov | Voice : (708) 840-8071 | I haven't lost my mind Fax : (708) 840-2783 | it's backed on tape somewhere. -------------------------------------------------------------------------------
Technical Details
Message-ID:
<1ifgegINNlfh@fnnews.fnal.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!lll-winken!fnnews.fnal.gov!fnsony.fnal.gov!shahReferences:
<1ictqqINNk4a@tamsun.tamu.edu> <1icv27INN6f2@fido.asd.sgi.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!lll-winken!fnnews.fnal.gov!fnsony.fnal.gov!shah From: shah@fnsony.fnal.gov (Hemant Shah) Newsgroups: comp.sys.sgi.misc,comp.sys.sgi.apps,comp.sys.sgi Subject: Re: strange problem with command execution at xwsh startup Message-ID: <1ifgegINNlfh@fnnews.fnal.gov> Date: 6 Jan 93 20:46:08 GMT References: <1ictqqINNk4a@tamsun.tamu.edu> <1icv27INN6f2@fido.asd.sgi.com> Reply-To: shah@fnsony.fnal.gov Organization: Fermi National Accelerator Laboratory, Batavia, IL Lines: 36 NNTP-Posting-Host: fnsony.fnal.gov