How to start a cmd window and issue tail request in a bat file?
- by Kari
I can open a cmd window and start a tail by entering something like this:
tail -f C:\Oracle\WebCenter\Sites\11gR1\Sites\11.1.1.6.1\logs\sites.log
This is probably a stupid question, but how do I do this in a batch file?
It should be easy but it's not working - I have tried a couple variations and no success. Can anyone tell me what I am doing wrong here?
ECHO OFF
CD C:\Oracle\WebCenter\Sites\11gR1\Sites\11.1.1.6.1\logs\
cmd
tail -f sites.log
I've also tried:
ECHO OFF
start cmd tail -f C:\Oracle\WebCenter\Sites\11gR1\Sites\11.1.1.6.1\logs\sites.log
(am using Win7 Ultimate, on a 64-bit machine, if that has any bearing)