home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / misc / 175 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.1 KB

  1. Xref: sparky comp.sys.sgi.misc:175 comp.sys.sgi.apps:32 comp.sys.sgi:18530
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!lll-winken!fnnews.fnal.gov!fnsony.fnal.gov!shah
  3. From: shah@fnsony.fnal.gov (Hemant Shah)
  4. Newsgroups: comp.sys.sgi.misc,comp.sys.sgi.apps,comp.sys.sgi
  5. Subject: Re: strange problem with command execution at xwsh startup
  6. Message-ID: <1ifgegINNlfh@fnnews.fnal.gov>
  7. Date: 6 Jan 93 20:46:08 GMT
  8. References: <1ictqqINNk4a@tamsun.tamu.edu> <1icv27INN6f2@fido.asd.sgi.com>
  9. Reply-To: shah@fnsony.fnal.gov
  10. Organization: Fermi National Accelerator Laboratory, Batavia, IL
  11. Lines: 36
  12. NNTP-Posting-Host: fnsony.fnal.gov
  13.  
  14. In article <1icv27INN6f2@fido.asd.sgi.com>, kipp@warp.asd.sgi.com (Kipp Hickman) writes:
  15. |> 
  16. |> In article <1ictqqINNk4a@tamsun.tamu.edu>, vamsee@abgen.tamu.edu writes:
  17. |> > %xwsh -e rlogin <any-host>
  18. |> > 
  19. |> > The above command works on this SGI (Indigo 4.0.5A). But,
  20. |> > 
  21. |> > %xwsh -e /bin/ls
  22. |> This will work, it just exit's immediately after finishing.  Try adding
  23. |> the "-hold" option if you want wsh to hang around after finishing monitoring
  24. |> the subprocess.
  25. |> > %xwsh -e cd /usr/people/vamsee/junk
  26. |> > %xwsh -e chdir /usr/people/vamsee/junk
  27. |> > %xwsh -e cd /usr/people/vamsee/junk; vi <somefile>
  28. |> These will never work because there is no such program called "cd".  When
  29. |> you give xwsh the "-e" option you are changing its notion of the shell to
  30. |> use to a specific program.  The arguments you give are just exec'd, not
  31. |> run through another shell.
  32. |> 
  33. |>                     kipp
  34.  
  35. Try following:
  36.  
  37. %xwsh -e "/bin/sh -c cd /usr/people/vamsee/junk"
  38.    . 
  39.    .
  40.    .
  41. etc.
  42. ------------------------------------------------------------------------------
  43. Hemant Shah                            | All the opinions expressed are my own
  44. Fermi National Accelerator Laboratory  | and does not necessarily reflect
  45. Systems Integration Group              | those of Fermilab.
  46. E-mail :shah@fnal.fnal.gov             |
  47.  Voice : (708) 840-8071                   | I haven't lost my mind
  48.    Fax : (708) 840-2783                | it's backed on tape somewhere.
  49. -------------------------------------------------------------------------------
  50.