Re: How to check for 0 byte file in bash script

2002-06-24 Thread ichi
Phillip Morgan wrote: > > How do you check if a file is 0 bytes in size in a bash script. [ -s filename ] Cheers, Steven - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majord

Failed none for illegal user lfs from 127.0.0.1 port 4664 ssh2

2002-06-24 Thread Alan Womack
I am working on adding a normal user on my Redhat 7.2 box. I also have openldap installed. I added a user using useradd -s /bin/bash -m lfs && passwd lfs then I also used the smbldap-useradd.pl script and added the same user. In passwd I have this now: lfs:x:1007:1007::/home/lfs:/bin/bash

How to check for 0 byte file in bash script

2002-06-24 Thread Phillip Morgan
Hi, How do you check if a file is 0 bytes in size in a bash script. I've seen stuff where you can check for the existence of a file, even if it's executable, but can you check if the size is <> 0? phill - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a

Re: A _small_ replacement for midnite commander / mc

2002-06-24 Thread Oliver Ob
Haines Brown schrieb: > > Oliver, > > I'm no expert, but I believe that the command line small editor that > easily fits on a diskette would be ed for Linux. It has vi-like > commands. Don't know size (perhaps 50 Kb). > > Your distribution may have it. Try entering > > $ ed --help > > to

Re-installing issues

2002-06-24 Thread Chris Rose
i'm running Mandrake 8.1, and i think i have to re-install - it looks like RPMdrake is buggered up, and i can't upgrade rpm at all because of circular dependencies. So, i want to re-install - I THINK. i figure that i might as well upgrade to Mdk8.2 in the process, largely because i can't affo