1.7.1: /usr/bin/more.exe

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

1.7.1: /usr/bin/more.exe

Peter Koch-11
Hi!

Running 1.7.1 on Windows 2008 R2 i experience problems with more.exe
(which is a copy of less.exe).

Specifically, if i view a file with less lines as the cygwin shell can
show, NOTHING is displayed.

$ echo "aaaa" >a
$cat a
aaa
$ more a
$ less a
aaa
a (END)

Ciao

peter


prosozial GmbH
Geschaeftsfuehrer: Wolfgang Hoffmann, Stephan Idel, Christoph Spitzley
Amtsgericht Koblenz, HRB 5796

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: 1.7.1: /usr/bin/more.exe

Christopher Faylor-8
On Wed, Jan 20, 2010 at 11:34:23AM +0100, Peter Koch wrote:

>Running 1.7.1 on Windows 2008 R2 i experience problems with more.exe
>(which is a copy of less.exe).
>
>Specifically, if i view a file with less lines as the cygwin shell can
>show, NOTHING is displayed.
>
>$ echo "aaaa" >a
>$cat a
>aaa
>$ more a
>$ less a
>aaa
>a (END)

Works the same way on linux.  It's probably a bug but given the fact
that we actually have a working implementation of more in the Cygwin
distribution this isn't something that I'll be actively tracking down.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: 1.7.1: /usr/bin/more.exe

Cyrille Lefevre
In reply to this post by Peter Koch-11

Peter Koch a écrit :

> Hi!
>
> Running 1.7.1 on Windows 2008 R2 i experience problems with more.exe
> (which is a copy of less.exe).
>
> Specifically, if i view a file with less lines as the cygwin shell can
> show, NOTHING is displayed.
>
> $ echo "aaaa" >a
> $cat a
> aaa
> $ more a
> $ less a
> aaa
> a (END)

more behave differently than less by default, specificaly if more
isn't more, but less doing it as more...

historically, less isn't more, but more than more, but not more !

so, let's try : humm, man more less :-)

export MORE=-ces
export LESS=-crs

under *bsd, export MORE=-ceis
under *unix, export MODE=-cls (AIx, HP-UX, etc.)

Regards,

Cyrille Lefevre
--
mailto:[hidden email]



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: 1.7.1: /usr/bin/more.exe

G.W. Haywood
In reply to this post by Peter Koch-11
Hi there,

On Wed, 20 Jan 2010 Cyrille Lefevre wrote:

> Peter Koch a ?rit :
>
> > Running 1.7.1 on Windows 2008 R2 i experience problems with more.exe
> > (which is a copy of less.exe).
> >
>
> historically, less isn't more, but more than more, but not more !

You could try most:

http://www.jedsoft.org/most/

Why settle for more-or-less?  :)

--

73,
Ged.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Differentiate workgroup system from domain member under Cygwin

Christoph Herdeg-3
In reply to this post by Christopher Faylor-8
Dear Colleagues,

I need being able to differentiate a workgroup system from a domain member
in a shellscript under Cygwin - does anybody have an approach for me?
                                                                       
 Mit freundlichen Grüßen / with                                    
 kind regards                                                          
                                                                       
 Christoph Herdeg                                                      
                                                                       
                                                                       
 Christoph Herdeg                Contact                                      IBM Deutschland Research &
 Windows Infrastructure Support  Information                                  Development GmbH
 Information Management                                                       Vorsitzender des Aufsichtsrats:
 Development                                                                  Martin Jetter
 IBM Software Group                                                           Geschäftsführung: Erich Baier
                                                                              Sitz der Gesellschaft:
                                                                              Böblingen
                                                                              Registergericht: Amtsgericht
                                                                              Stuttgart,
                                                                              HRB 243294
                                                                       
                                 mail:       [hidden email]
                                 fon:        49-7031-16-1039 (tie line
                                 fax:        *120-1039)                
                                 address:    49-7031-16-4891          
                                             Schönaicher Str. 220    
                                             71032-03 Böblingen      
                                                                       
 visit IBM Deutschland Research                                        
       & Development GmbH                                              
                                                                       




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Differentiate workgroup system from domain member under Cygwin

Corinna Vinschen-2
On Jan 22 09:31, Christoph Herdeg wrote:
> Dear Colleagues,
>
> I need being able to differentiate a workgroup system from a domain member
> in a shellscript under Cygwin - does anybody have an approach for me?

Look for the mkpasswd uppercase options -C, -L, -D, -S.  They allow
to generate usernames with machine/domain prefix.  Same for mkgroup.


Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Differentiate workgroup system from domain member under Cygwin

Christoph Herdeg-3




>>On Jan 22 09:31, Christoph Herdeg wrote:
>> Dear Colleagues,
>>
>> I need being able to differentiate a workgroup system from a domain
member
>> in a shellscript under Cygwin - does anybody have an approach for me?

>Look for the mkpasswd uppercase options -C, -L, -D, -S.  They allow
>to generate usernames with machine/domain prefix.  Same for mkgroup.

>Corinna

Hi Corinna,

thanks for the fast reply. But I probably didn't express myself clearly
enough. In need to distinguish a workgroup/single system from a domain
member to know if I have to create a local user (net user bla /add) or not.
This needs to happen before calling mkpasswd/~group and without knowledge
of the current workgroup-/domain-name. Background is that I would like to
start sshd with a domain user, but only if the current machine is member of
a domain. Depending on that difference I need to use mkpasswd/~group with
other parameters (-l vs. -d).

So question is more if there is any place on a windows system, a file or a
directory or an entry in a file that exists only if that machine is a
domain member?

Best Regards,

Christoph Herdeg
Windows Infrastructure Support
Information Management
Development
IBM Software Group



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Differentiate workgroup system from domain member under Cygwin

Corinna Vinschen-2
On Jan 22 10:34, Christoph Herdeg wrote:
> So question is more if there is any place on a windows system, a file or a
> directory or an entry in a file that exists only if that machine is a
> domain member?

There are certainly multiple methods to fetch this information.  One of
them is, for instance:

  bash$ net config workstation | grep -q 'Domain DNS' \
        && echo domain-member || echo standalone-machine


Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Differentiate workgroup system from domain member under Cygwin

Christoph Herdeg-3


>>On Jan 22 10:34, Christoph Herdeg wrote:
>> So question is more if there is any place on a windows system, a file or
a

>> directory or an entry in a file that exists only if that machine is a
>> domain member?
>
>There are certainly multiple methods to fetch this information.  One of
>them is, for instance:
>
>  bash$ net config workstation | grep -q 'Domain DNS' \
>            && echo domain-member || echo standalone-machine
>
>
>Corinna

Great! Works just perfect. Thank you very much!!!

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: Differentiate workgroup system from domain member under Cygwin

Sylvain RICHARD-2
In reply to this post by Corinna Vinschen-2
Corinna Vinschen wrote:

> On Jan 22 10:34, Christoph Herdeg wrote:
>  
>> So question is more if there is any place on a windows system, a file or a
>> directory or an entry in a file that exists only if that machine is a
>> domain member?
>>    
>
> There are certainly multiple methods to fetch this information.  One of
> them is, for instance:
>
>   bash$ net config workstation | grep -q 'Domain DNS' \
> && echo domain-member || echo standalone-machine
>
>
> Corinna
>  
Of course you should be aware that localization kicks in. On a French
Win Server 2k3 machine I get
"Nom DNS du domaine de la station de travail"

Good luck,

--
Sylvain RICHARD


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

RE: Differentiate workgroup system from domain member under Cygwin

Cooper, Karl (US SSA)
> Corinna Vinschen wrote:
>> On Jan 22 10:34, Christoph Herdeg wrote:
>>
>>> So question is more if there is any place on a windows system, a
>>> file or a directory or an entry in a file that exists only if that
>>> machine is a domain member?
>>>
>>
>> There are certainly multiple methods to fetch this information.  One
>> of them is, for instance:
>>
>>   bash$ net config workstation | grep -q 'Domain DNS' \
>> && echo domain-member || echo standalone-machine
>>
>>
>> Corinna
>>
> Of course you should be aware that localization kicks in. On a French
> Win Server 2k3 machine I get "Nom DNS du domaine de la station de
> travail"  
And for me, it is necessary to use "Workstation" (capital W) rather than "workstation".

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple