Thread View: comp.sys.apple2.gno
11 messages
11 total messages
Started by Phillip Vandry
Mon, 28 Dec 1992 18:10
Shells
Author: Phillip Vandry
Date: Mon, 28 Dec 1992 18:10
Date: Mon, 28 Dec 1992 18:10
64 lines
3064 bytes
3064 bytes
Anyone use zsh? It's a really excellent shell. But it's huge and I don't
realistically expect there ever to be a version for GNO.
There are a few things from zsh that would be nice for GNO, though. For instance
echo `qtime` - replaces `qtime` with the standard output from qtime,
then passes that as a paramater to echo.
You could do the same thing with just qtime, but there are cases when it's not
that simple (I can't remember now, of course :), but I would have used that
once a while ago)
Also, history substitutions. If, for example, you want to add an alias to
your system, you do this.
alias stuff otherstuff
echo !1 >>~/gshrc - echo the previous line to the file.
!1 means first line in the history, !2, the second, and so on.
gsh also needs a way to run a series of proceses in the background, but
sequentially.
process1 & process2 & process3 &
will start them all up simultaneously, I think. You should be able to do....
( process1 ; process2 ; process3 ) &
run them one after the other.
Also, this is a little less related to shells, but how do you do this...
Say you have a background process and you want to change a paramater or
something. A pipe through which data can be sent to it? No: the pipe would
have had to be created when the process was and hooked to some other process
(well, there's always named pipes, but...). I suspect that UNIX processes do
this by making you put them in the foreground temporarily. It would change
modes, accept commands, then go back into the background and continue what it
was doing. But this sounds like it has a few little problems. Like it doesn't
really work well from within a program. The most logical thing to do, from, for
example, C, would be something along the lines of...
open(something-that-lets-you-write-data-to-a-process)
write(with-the-fd-you-got-from-open)
That's named pipes as UNIX implements them, isn't it?
Well, most of that stuff is a wish list anyway.
---
RE: gsh not connected to the kern.
Who intercepts the ORCA Execute call (system() in C). I thought kern took care
of all intercepting of things, but that command sting has to make it to gsh
somehow for parsing and execution... What is there are several shells running?
Who gets the Execute call?
Gotta change my sig now.....
______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you! |
|________________|________________|____________________________________|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: IIGS Server
Author: Glenn S Goldstein
Date: Mon, 28 Dec 1992 20:58
Date: Mon, 28 Dec 1992 20:58
4 lines
713 bytes
713 bytes
Jawaid Bazyar directed me to this news group in the hopes that someone here knows how to connect an Apple IIe as a terminal to an Apple IIgs running GNO/ME. Well...if you know how to do this please post an answer here or email me. Thanks.
Re: Z-modem receive
Author: Glenn S Goldstein
Date: Mon, 28 Dec 1992 21:00
Date: Mon, 28 Dec 1992 21:00
4 lines
690 bytes
690 bytes
I've been using telcom under GNO/ME and have found it better than my previous programs. However, I would like to receive files from my unix server at school via the z-modem protocol. Does anyone know where I might find such a program?
Re: Shells
Author: Jawaid Bazyar
Date: Mon, 28 Dec 1992 22:00
Date: Mon, 28 Dec 1992 22:00
35 lines
1825 bytes
1825 bytes
vandry@CAM.ORG (Phillip Vandry) writes: [ fine suggestions for gsh deleted ] We'll be adding all the things you mentioned to the next version of gsh. >Say you have a background process and you want to change a paramater or >something. [..] >That's named pipes as UNIX implements them, isn't it? >Well, most of that stuff is a wish list anyway. The socket interface is probably equivalent in functionality; I've considered named pipes, but sockets are much more flexible and named pipes aren't used anymore, really. >RE: gsh not connected to the kern. >Who intercepts the ORCA Execute call (system() in C). I thought kern took care >of all intercepting of things, but that command sting has to make it to gsh >somehow for parsing and execution... What is there are several shells running? >Who gets the Execute call? The kernel (which handles all other ORCA shell calls) also accepts the Execute call; but there is a kernel call that allows shells to install Execute handlers. So, when gsh starts up it makes this call (SetExecuteVector) so it can handle Execute calls. -- Jawaid Bazyar | Ask me about the GNO Multitasking Environment Procyon, Inc. | for the Apple IIgs! bazyar@cs.uiuc.edu | P.O Box 620334 --Apple II Forever!-- | Littleton, CO 80162-0334 (303) 933-4649
Re: Shells
Author: Matt Ackeret
Date: Mon, 28 Dec 1992 23:28
Date: Mon, 28 Dec 1992 23:28
39 lines
1968 bytes
1968 bytes
In article <BzzEGz.73G@CAM.ORG> vandry@CAM.ORG (Phillip Vandry) writes: >Anyone use zsh? It's a really excellent shell. But it's huge and I don't >There are a few things from zsh that would be nice for GNO, though. >echo `qtime` - replaces `qtime` with the standard output from qtime, > then passes that as a paramater to echo. cshell does that too, at least the versions I've used. (Yes I know it's not your main point.. just pointing out that it's not a zsh-specific thing. I've never heard of zsh actually) What kinds of things does zsh do that cshell doesn't? >You could do the same thing with just qtime, but there are cases when it's not >that simple (I can't remember now, of course :), but I would have used that >once a while ago) sz `find /tmp -user unknown -print` is a good example that I use fairly often, especially when my files don't all end in *SHK (in which case I'd just do "sz *SHK" of course). >Also, history substitutions. If, for example, you want to add an alias to >your system, you do this. >alias stuff otherstuff >echo !1 >>~/gshrc - echo the previous line to the file. >!1 means first line in the history, !2, the second, and so on. Isn't that backwards? Aren't the history lines in ascending order chronologically? >gsh also needs a way to run a series of proceses in the background, but >sequentially. >( process1 ; process2 ; process3 ) & >run them one after the other. ooh, never heard of that.. Sounds interesting. -- unknown@apple.com Apple II Forever unknown@ucscb.ucsc.edu These opinions are mine--hell, I'm 'just' a contractor.
Re: IIGS Server
Author: Phillip Vandry
Date: Tue, 29 Dec 1992 03:49
Date: Tue, 29 Dec 1992 03:49
32 lines
1984 bytes
1984 bytes
glenn@cis.ksu.edu (Glenn S Goldstein) writes: >Jawaid Bazyar directed me to this news group in the hopes that someone >here knows how to connect an Apple IIe as a terminal to an Apple IIgs >running GNO/ME. Well...if you know how to do this please post an >answer here or email me. Thanks. I wrote a program that lets you do remote access by modem, fully automated. It would also work with a null modem cable (you would have to type ten initializing keystrokes from the IIe so the program think you are a modem) From the GS, it's as simple as seq .ttyx & - where .ttyx is the name of the modem port. If it's a real modem connected, it will answer like a BBS running in the background. On exit, it starts over and waits for another call. There are limitations (anybody can call and format your hard disk all they like, so it's not good to actually OPEN your computer :). I finally got around to putting tnewpgrp and settpgrp (can't even remember if that's it) and it fully works now. Turns out gsh changes terminal parameters and the process group must be reset every time gsh is run. Thanks Jawaid and the others. If you want it, I can put it on cba2 ______________________________________________________________________ |~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you! | |________________|________________|____________________________________| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: IIGS Server
Author: Kent Radek
Date: Tue, 29 Dec 1992 22:25
Date: Tue, 29 Dec 1992 22:25
14 lines
1076 bytes
1076 bytes
vandry@CAM.ORG (Phillip Vandry) writes: >I wrote a program that lets you do remote access by modem, fully automated. >It would also work with a null modem cable (you would have to type ten >initializing keystrokes from the IIe so the program think you are a modem) [...] >There are limitations (anybody can call and format your hard disk all they >like, so it's not good to actually OPEN your computer :). >If you want it, I can put it on cba2 How hard would it be to add a password request? Post it! :-) goo
Re: Shells
Author: Tom Christiansen
Date: Wed, 30 Dec 1992 02:36
Date: Wed, 30 Dec 1992 02:36
16 lines
1394 bytes
1394 bytes
From the keyboard of bazyar@teal.csn.org (Jawaid Bazyar):
:>That's named pipes as UNIX implements them, isn't it?
:>Well, most of that stuff is a wish list anyway.
:
: The socket interface is probably equivalent in functionality; I've
:considered named pipes, but sockets are much more flexible and
:named pipes aren't used anymore, really.
"named pipes aren't used anymore"? i don't think that's accurate.
--tom
--
Tom Christiansen tchrist@convex.com convex!tchrist
What a terrible thing to have lost one's mind. Or not to have a mind
at all. How true that is. --Dan Quayle
Re: Shells
Author: Jawaid Bazyar
Date: Wed, 30 Dec 1992 08:20
Date: Wed, 30 Dec 1992 08:20
23 lines
1573 bytes
1573 bytes
Tom Christiansen <tchrist@convex.COM> writes: >From the keyboard of bazyar@teal.csn.org (Jawaid Bazyar): >:>That's named pipes as UNIX implements them, isn't it? >:>Well, most of that stuff is a wish list anyway. >: >: The socket interface is probably equivalent in functionality; I've >:considered named pipes, but sockets are much more flexible and >:named pipes aren't used anymore, really. >"named pipes aren't used anymore"? i don't think that's accurate. I've rarely come across code that uses them (in fact, can't think of any off the top of my head). If you can enlighten me, as I've mentioned before (and will undoubtedly mention again), I'm open to suggestions. Named pipes wouldn't take that much effort, but I'd like to get the next GNO release out as soon as possible. -- Jawaid Bazyar | Ask me about the GNO Multitasking Environment Procyon, Inc. | for the Apple IIgs! bazyar@cs.uiuc.edu | P.O Box 620334 --Apple II Forever!-- | Littleton, CO 80162-0334 (303) 933-4649
Re: Shells
Author: Phillip Vandry
Date: Wed, 30 Dec 1992 18:43
Date: Wed, 30 Dec 1992 18:43
49 lines
2389 bytes
2389 bytes
unknown@Apple.COM (Matt Ackeret) writes: >In article <BzzEGz.73G@CAM.ORG> vandry@CAM.ORG (Phillip Vandry) writes: >>Anyone use zsh? It's a really excellent shell. But it's huge and I don't >cshell does that too, at least the versions I've used. (Yes I know it's >not your main point.. just pointing out that it's not a zsh-specific >thing. I've never heard of zsh actually) I think it just got out of beta. It seemed a LOT better than ksh, which is the default on this UNIX machine, so I started using it. I've never used csh, so I can't compare. >sz `find /tmp -user unknown -print` is a good example that I use fairly >often, especially when my files don't all end in *SHK (in which case I'd just >do "sz *SHK" of course). >>Also, history substitutions. If, for example, you want to add an alias to >>your system, you do this. >>alias stuff otherstuff >>echo !1 >>~/gshrc - echo the previous line to the file. >>!1 means first line in the history, !2, the second, and so on. > Isn't that backwards? Aren't the history lines in ascending order >chronologically? You could very well be right... I don't use it enough to remember which way it goes. >>gsh also needs a way to run a series of proceses in the background, but >>sequentially. >>( process1 ; process2 ; process3 ) & >>run them one after the other. >ooh, never heard of that.. Sounds interesting. The simplest use of that is a background timer (wake up in two minutes...) (sleep 120;echo \\007)& ______________________________________________________________________ |~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you! | |________________|________________|____________________________________| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >-- >unknown@apple.com Apple II Forever >unknown@ucscb.ucsc.edu These opinions are mine--hell, I'm 'just' a contractor.
Re: IIGS Server
Author: Phillip Vandry
Date: Wed, 30 Dec 1992 18:50
Date: Wed, 30 Dec 1992 18:50
22 lines
1463 bytes
1463 bytes
goo@cwis.unomaha.edu (Kent Radek) writes: >vandry@CAM.ORG (Phillip Vandry) writes: >>I wrote a program that lets you do remote access by modem, fully automated. >>If you want it, I can put it on cba2 >How hard would it be to add a password request? Post it! :-) >goo All right. The UNIX system here is currently in ruins so it will have to wait until rz is working again (probably a day or two). I'll post it then. Right now I'm lucky the news system is working (sort of...) BTW, Jawaid, you said you would upload MuGS, rz, and updates to the serial drivers to pinny (as you call it :). I found only MuGS. ______________________________________________________________________ |~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you! | |________________|________________|____________________________________| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads