I would like to save the keystrokes I make to ssh into a server (with a ssh public key) and tail a log file. What’s the easiest way to do this. Is there a shell script that can do this, or if not, a short Ruby script?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Any reason not to use ssh itself ? ssh server “tail logfile” ?
Or if it’s more complicated ‘expect’ is good for scripting interactive commands.