home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!gumby!wupost!eclnews!wucs1!omar
- From: omar@wucs1.wustl.edu (Omar El-Ghazzawy)
- Subject: Re: blank errors from exec -> can't catch
- Message-ID: <1993Jan27.162358.2447@wuecl.wustl.edu>
- Sender: usenet@wuecl.wustl.edu (News Administrator)
- Nntp-Posting-Host: wucs1
- Organization: Washington University, St. Louis MO
- References: <1k3nu5INNi4t@cae.cad.gatech.edu>
- Date: Wed, 27 Jan 1993 16:23:58 GMT
- Lines: 25
-
- In article <1k3nu5INNi4t@cae.cad.gatech.edu> estephen@whosnext.cad.gatech.edu (Eric R Stephens) writes:
- >I running non-background execs which call both compiled programs and
- >shell scripts. The results are sent to files and I don't believe
- >that any errors are being generated from the outside runs. I've been
- >getting blank line followed by a trace to my exec. I've tried
- >catching the exec and I still get the same results. How can I debug
- >this it is exiting the proc.
-
- I was having the same problem... I was doing something like:
-
- catch {set foo [exec rsh sol uustat -a| grep admin]}
- puts stdout $foo
-
- when there was no text returned, it caused an error, hence my use of catch.
- But then it would say that it did not know about the variable "foo". So
- I solved it like this:
-
- set foo ""
- catch {set foo [exec rsh sol uustat -a| grep admin]}
- puts stdout $foo
-
- this worked fine.
-
-
-
-