home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!rutgers!bellcore!walter!grumpy!bytor
- From: bytor@grumpy.bellcore.com (Ross Huitt)
- Newsgroups: comp.lang.tcl
- Subject: Re: Running Shell commands
- Keywords: Shell, Pipe, TCL/TK, exec, eval
- Message-ID: <1992Nov6.125342.15092@walter.bellcore.com>
- Date: 6 Nov 92 12:53:42 GMT
- Article-I.D.: walter.1992Nov6.125342.15092
- References: <1992Nov06.042401.3241@bnr.ca>
- Sender: bytor@grumpy (Ross Huitt)
- Organization: Bellcore
- Lines: 35
- Nntp-Posting-Host: grumpy.ctt.bellcore.com
-
- In article <1992Nov06.042401.3241@bnr.ca>, tdoan@bnr.ca (Tuan Doan) writes:
-
- |> Hello,
- |>
- |> I am trying to get the following shell command to work inside TCL/TK and
- |> is having great difficulty. If anyone know the solution to this, please
- |> post.
- |>
- |> pr -h '[tdoan@crchh404] /bnr/file1' /bnr/file1 | ipr -D"pageduplex off"
-
- Try something like:
- exec {pr -h '[tdoan@crchh404] /bnr/file1' /bnr/file1 | ipr "-Dpageduplex off"}
-
- The '{}' will protext you from executing the regular expression and you'll have to
- move the " in the arg to ipr because of the way Tcl handles strings.
-
- |>
- |> I know there is some trick regarding the use of EVAL and EXEC and I have
- |> tried several permutation of it; but no success.
- |>
- |> Thanks,
- |>
- |> __ __/ / / __ / | / Tuan T. Doan
- |> / / / / / / | / 2D53 GREENWAY BNRRICH
- |> / / / __ / / | / ID: TDOAN on BNRRCH/BNRTEX
- |> __/ ______/ __/ __/ __/ __/ BNR/NT/MCI CCS7 Development
- |> Phone: 6-444-4575/214-684-4575
- |> Internet: tdoan@bnr.ca Fax: 6-444-3716/214-684-3716
- |> or tdoan@x400gate.bnr.ca
- |>
-
-
-
- Ross Huitt
- bytor@ctt.bellcore.com
-