haiv

Processes-child.tcl

Jan 22nd, 2013
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.30 KB | None | 0 0
  1. #!/usr/bin/env tclsh
  2. # child script: simulate some lengthy operations
  3.  
  4. package require Tclx
  5.  
  6. lassign $argv id durationInSeconds
  7. set durationInMiliseconds [expr {$durationInSeconds * 1000}]
  8.  
  9. puts "  child #$id runs for $durationInSeconds seconds"
  10. after $durationInMiliseconds
  11. puts "  child #$id ends"
Advertisement
Add Comment
Please, Sign In to add comment