> I working with the Tcl an Tk in the 8.3.2 version and whe I execute
> the set x [exec grep teste /etc/smb.conf] or any other command like this, I 
> get this error message.
> 
> Someone knows what's going on?
> 
> Thanks for any help.
> 
> P.S. - This error never heappens before.

    Grep can return "child process exited abnormally" if the grep command
finds nothing in the files it's searching.  You're better off doing exec
calls like this inside of a catch statement to control error handling.  IE:

if {[catch {exec grep teste /etc/smb.con} error]} {
    puts "I got error: $error"
}

Damon


_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to