I need to write a script to test if I'm using the correct terminal and then print a message.This is what I have so far:if(???? == dev/pts/1)  echo Access Granted. Welcome.endifI don't know how to use tty to find the terminal though. Using csh.
Locating the terminal currently in use
terminal;scripting;tty;csh
In bash you can test as follows:[[ `tty` = /dev/pts/1 ]] && echo Access Granted. Welcome.tty will generally output something like /dev/pts/1 or not a ttyAs you mentioned, apparently in csh you can do as follows:if ($tty == pts/1) then    echo Access Granted. Welcome.endif