Re: problem with more and scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 12 Oct 2006 12:53:57 -0400
"Roel Lascano" <roellascano@xxxxxxxxx> took out a #2 pencil and
scribbled:

> I'm running FC5, and I've got an odd problem with a bash script
> I've got. The problem can be summarized fairly easily with a two
> line script:
> 
> #!/bin/bash
> /bin/more /etc/profile 2> /tmp/errorlog
> 
> When I do this the first full screen gets printed, then more
> quits.  This is a trivial example, but the script does several
> things and captures stderr to a logfile; under ksh the script
> works fine... under bash it doesn't.
> 
> Any ideas?

Although I can not speak as to why it works in ksh but not in bash,
have you tried using 'less'? 'less' has more functionality than
'more' and does behave properly.

It may be some terminal variable that causes 'more' to cease, as
it's reached the end of output as far as 'more' is concerned.
'less' is more advanced (as stated in the man page) and this is
likely the reason why.

HTH

-- 
Alex White
ethericalzen@xxxxxxxxx
Life is a prison, death is a release

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux