How to start a cmd window and issue tail request in a bat file?
Posted
by
Kari
on Super User
See other posts from Super User
or by Kari
Published on 2014-08-19T03:40:47Z
Indexed on
2014/08/19
4:24 UTC
Read the original article
Hit count: 198
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)
© Super User or respective owner