Changeset 15127 for dotfiles/screen/cho45/.screen/pid2screen
- Timestamp:
- 07/03/08 23:10:18 (5 months ago)
- Files:
-
- 1 modified
-
dotfiles/screen/cho45/.screen/pid2screen (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/screen/cho45/.screen/pid2screen
r15126 r15127 5 5 pid = ARGV[0] 6 6 tty = `/bin/ps -o tty= -p #{pid}`.strip 7 win = Pathname.glob("/tmp/screen-tty-*").find {|i| i.read[tty] } .read7 win = Pathname.glob("/tmp/screen-tty-*").find {|i| i.read[tty] } 8 8 if tty.empty? || !win 9 9 exit 1 10 10 else 11 puts win [/\d+$/]11 puts win.to_s[/\d+$/] 12 12 exit 0 13 13 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)