Re: debian-user-digest Digest V2005 #865
> On Apr 3, 2005 2:20 PM, Scott C. MacCallum <scott.maccallum@gmail.com> wrote:
> > I would like to put the command 'ed' into the background using a BASH
> > shell script, but so far I have been unable to do this with the following:
> >
> > #!/bin/bash
> >
> > ed&
> >
> > I found this odd, considering that the following command 'ed&' worked
> > fine when inputed by hand in a console.
>
> That actually worked on the command line? I get:
> $ ed&
> [2] 26784
> [2]+ Stopped ed
>
> Which isn't surprising, since ed is interactive. Is there some reason
> you want it in the background, and what do you hope to have it do?
>
> --
> Michael A. Marsh
> http://www.umiacs.umd.edu/~mmarsh
> http://mamarsh.blogspot.com
I am using a Debian like GNU/Linux *cough* Ubuntu, so maybe that would
explain why it doesn't work for you at the command line and does for
me:
# ed&
[1] 5247
# bg
[1]+ ed &
Not just because they're different distros necessarily, but
coding/implementation.
Interactive commands play by different rules, I have to make a not of that.
The reason why I would like to have 'ed' put into the background via a
SHELL script is because I am working on a program called EULUIE (no
release yet) that is a user interface that sits on top of BASH, and I
need to be able to start 'ed' via a SHELL script and put 'ed' into the
background via a SHELL script.
I am sure I will have to deal with similar issues regarding other
interactive commands, so and help would be greatly appreciated!
One of the main objectives of EULUIE is to use as much of the native
system commands as possible to accomplish a give task. In the case of
'ed' to edit files.
-Scott
Reply to: