This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Opening new cygwin window with arguments


On 1/11/12 7:07 PM, Jon Hughes wrote:
> What I want to do is open a new cygwin window 

There's no such thing as a "cygwin window". Do you mean a mintty instance?

> with a tail command, so
> I have the parent process still running, and this runoff process in
> another window. I've found cygstart, but I can't figure out the syntax
> to do essentially this:
> 
> cygstart sh "tail -f foo"
> 
> Any help would be appreciated

You want to run:

mintty -e tail /your/file/here

(Note that it's _not_ -e "tail /your/file/here". -e works a bit like
cmd.exe's /c flag in that it interprets all following arguments as
part of the command to run.)

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]