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

  1. Xref: sparky comp.sys.sgi.misc:174 comp.sys.sgi.apps:31 comp.sys.sgi:18528
  2. Newsgroups: comp.sys.sgi.misc,comp.sys.sgi.apps,comp.sys.sgi
  3. Path: sparky!uunet!psinntp!snoopy!jfm
  4. From: jfm@asf.com (Jim Moore)
  5. Subject: Re: strange problem with command execution at xwsh startup
  6. Message-ID: <1993Jan6.144904.4811@asf.com>
  7. Organization: ASF
  8. References: <1ictqqINNk4a@tamsun.tamu.edu>
  9. Date: Wed, 6 Jan 1993 14:49:04 GMT
  10. Lines: 51
  11.  
  12. In article <1ictqqINNk4a@tamsun.tamu.edu> vamsee@abgen.tamu.edu (Vamsee Lakamsani) writes:
  13. >%xwsh -e rlogin <any-host>
  14. >
  15. >The above command works on this SGI (Indigo 4.0.5A). But,
  16. >
  17. >%xwsh -e /bin/ls
  18. >%xwsh -e cd /usr/people/vamsee/junk
  19. >%xwsh -e chdir /usr/people/vamsee/junk
  20. >%xwsh -e cd /usr/people/vamsee/junk; vi <somefile>
  21. >
  22. >don't work. The man page says:
  23. >
  24. >" The -e option will pass all trailing arguments to xwsh , to be
  25. >   executed as a command line."
  26. >
  27. >What's the difference ? Why does rlogin work and the others don't?
  28. >There must be a way to do this simple thing. Any help is appreciated.
  29. >
  30. >Vamsee
  31. >
  32. -----------------------------------------------
  33. Response:
  34. xwsh terminates immediately after the commands terminate.
  35. rlogin doesn't terminate, therefore the window hangs around.
  36.  
  37. SGI provided a command file with buttonfly that I have used in the past.
  38. It contains the following:
  39.  
  40. #! /bin/csh -f
  41. $*
  42. echo -n "<ENTER to continue>"
  43. set foo $<
  44.  
  45. I called this "mywsh".  It is used as follows:
  46.  
  47. xwsh -e mywsh ls
  48.  
  49. It executes the command then waits for you to terminate it after it completes.
  50.  
  51. By the way, 
  52.     %xwsh -e cd /usr/people/vamsee/junk; vi <somefile>
  53. is the same as:
  54.     %xwsh -e cd /usr/people/vamsee/junk
  55.     % vi <somefile>
  56. The ";" signifies the end of the xwsh command.
  57.  
  58. -- 
  59. Jim Moore                       Hughes Training Inc.
  60. Phone: (612) 572-7721           5301 East River Road
  61. Fax:   (612) 572-7732           Mpls, Mn. 55421-1024
  62. Email: jfm@asf.com              USA
  63.