home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!gatech!news.byu.edu!hamblin.math.byu.edu!sol.ctr.columbia.edu!usc!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!crchh327!tdoan
- From: tdoan@bnr.ca (Tuan Doan)
- Subject: Running Shell commands
- Message-ID: <1992Nov06.210718.14408@bnr.ca>
- Keywords: Shell, Pipe, TCL/TK, exec, eval
- Sender: news@bnr.ca (News on crchh327)
- Nntp-Posting-Host: crchh404
- Organization: Bell-Northern Research, Richardson, Tx.
- Date: Fri, 06 Nov 1992 21:07:18 GMT
- Lines: 19
-
- I apologize for my unclear question regarding how to execute shell commands
- inside TCL/TK. What I need to do is execute the following shell commands.
-
- pr -h '[$uid] $file1' $file1 | ipr -D"pageduplex off"
-
- $uid and $file1 are TCL/TK variables. The argument to -D in the 'ipr' command
- must be in quotes. Notice that the argument to -h in the 'pr' command
- contained brackets. The above commands work fine under ksh, but I could not
- convert it to work under TCL/TK.
-
- Thanks,
-
- __ __/ / / __ / | / Tuan T. Doan
- / / / / / / | / Advance Signalling Design
- / / / __ / / | / 2201 Lakeside Blvd. P.O. Box 833871
- __/ ______/ __/ __/ __/ __/ Richardson, TX 75083-3871
- Phone: 6-444-4575/214-684-4575
- Internet: tdoan@bnr.ca Fax: 6-444-3716/214-684-3716
- or tdoan@x400gate.bnr.ca
-