Does anyone know if there is a perl function that in linux captures the terminal number (pts/0, pts/1, pts/3, etc.) that the script is being run in? Thanks, Richard