home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!panther!mothost!merlin.dev.cdx.mot.com!fendahl.dev.cdx.mot.com!mcook
- From: mcook@fendahl.dev.cdx.mot.com (Michael Cook)
- Subject: Re: Calling a text editor from Perl
- Message-ID: <mcook.722017794@fendahl.dev.cdx.mot.com>
- Sender: news@merlin.dev.cdx.mot.com (USENET News System)
- Nntp-Posting-Host: fendahl.dev.cdx.mot.com
- Organization: Motorola Codex, Canton, Massachusetts
- References: <Bxtyon.H0x@cs.uiuc.edu>
- Date: Tue, 17 Nov 1992 16:29:54 GMT
- Lines: 19
-
- schwager@cs.uiuc.edu writes:
-
- >Hi,
- >Is it possible to call a text editor from Perl? I want to do something
- >like this:
- > `/usr/ucb/vi /tmp/addgr$$`;
- >but it looks like the terminal i/o is not working properly, so it just
- >hangs at that statement. Afterwards I have to reset my terminal, so I'm sure
- >it's scrogged somehow. Thanks for any help. I'd hate to have to go back to
- >using csh.
-
- Do this, instead:
-
- system("/usr/ucb/vi /tmp/addgr$$");
-
- Backquoting captures the output, which means that vi isn't allowed to update
- your display.
-
- Michael.
-