Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dfdda2ef759a5025a7c38b65568eb9b6cefe3d8d
Ticket: 773280ffffffffffffffffffffffffffffffffff
lindex bug
User & Date: sea001 on 2003-07-18 05:13:27
Changes

  1. icomment:
    Logged In: YES 
    user_id=825002
    
    original code was :
    
    set target 2012
    if { [catch {exec ps -efl} processes } {
        puts "ERROR -- exec ps -efl failed -- $processes"
    } else {
        foreach process [split $processes "\n"] {
            set pid [lindex $process 3]
            if { $pid == $target } {
                puts "found it!"
                break
            }
        }
    }
    
    
    This works for all ps -efl output except the bug example.
    I've worked around it by simply 'catch {lindex $process 3} pid'.
    Sorry for the terse bug report -- I'm astonished you replied
    so quickly!!!
    
    
    
  2. login: "sea001"
  3. mimetype: "text/plain"
  4. status changed to: "Open"
  5. username: "sea001"