I would like to have a desktop shortcut open cygwin so that I can tail a log file.
Currently I perform the following steps manually:
- Start cygwin
- cd dev/server/logs
- tail -f error.log
I would like to automate the three steps.
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.
You could create a Windows shortcut to the following target…
C:\cygwin\bin\tail.exe -f "C:\Path\to\the\error.log"…assuming that’s where your tail executable is. Doing
which tailin a Cygwin shell should confirm that.That should run the binary in a cmd window. Do
Ctrl-Cto stop it.EDIT: Oh, one thing I forgot… This might require “C:\cygwin\bin” in your PATH env variable.