Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!netserv2!deven From: deven@rpi.edu (Deven T. Corzine) Newsgroups: comp.sys.amiga Subject: Re: Sksh NewCLI query Message-ID: Date: 26 Mar 90 01:26:48 GMT References: <9234@sdcc6.ucsd.edu> <13910016@hpfelg.HP.COM> Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 46 In-Reply-To: koren@hpfelg.HP.COM's message of 24 Mar 90 19:23:59 GMT On 24 Mar 90 19:23:59 GMT, koren@hpfelg.HP.COM (Steve Koren) said: > Is there a way to run SKSH on a new CLI window other than the > calling one? You can't just do a run SKSH >con:blah blah. Steve> Yes. Define an alias which looks like this: Steve> alias newsksh='$(which newshell) CON:10/60/550/200/SKsh_Window' Steve> (You might have to adjust the size if it won't fit in your Steve> screen). Now when you type 'newsksh' from SKsh, you will get a Steve> new window running SKsh. This assumes your shell-startup runs SKsh. [or, I suppose you might be able to do "resident cli c:sksh system pure", but I haven't tried it.] > Also, what's the correct alias sequence for closing up a window from > SKSH. If I tried alias qx exit;endcli it'll work but when > SKSH is first ran, it ends the CLI process and then goes into the Steve> The problem with your alias is that as soon as SKsh sees the Steve> exit statement, it exits. Try defining a LOGOUT variable like Steve> this: Steve> LOGOUT='endcli' Steve> Now, when you exit SKsh, the calling window will go away Steve> (unless, of course, there are other processess which are still Steve> talking to it). You can then exit without destroying the Steve> window by using the 'quit' alias which is defined in the Steve> .skshinit file. When I was using SKsh, I had a shell-startup (for AShell) (!) which ran SKsh, and the next command was "endcli". Worked fine. Steve, might I suggest you add an option to SKsh to open a specified device for I/O? [i.e. con:..., aux:, etc.] Deven -- Deven T. Corzine Internet: deven@rpi.edu, shadow@pawl.rpi.edu Snail: 2151 12th St. Apt. 4, Troy, NY 12180 Phone: (518) 274-0327 Bitnet: deven@rpitsmts, userfxb6@rpitsmts UUCP: uunet!rpi!deven Simple things should be simple and complex things should be possible.