>>>Attn: Ed Morton-->>>Get this on that Korn shell script ya helped me with....not going to believe this !

>>>Attn: Ed Morton-->>>Get this on that Korn shell script ya helped me with....not going to believe this !

Post by Sputz Yado » Tue, 27 May 2003 19:54:59



come to fin out one of the people having the problem copied the script
from  a Windows2000Pro workstation and copied it to a dos formated 144
floppy.  We were running SSH on a mandrake server and that is how the
file got to disk.  A co-worker said RedHat can tell if the file had
DOS dangles from the initialization to write the file........and shure
wnought, RedHat said it did and asked us if  we wanted to remove this
!!  Unbelievable.

We just typed te script from scrach within a Linux system and it

Hours were just wasted comparing booggers.
Matt

 
 
 

>>>Attn: Ed Morton-->>>Get this on that Korn shell script ya helped me with....not going to believe this !

Post by Ed Morto » Tue, 27 May 2003 22:54:40



> come to fin out one of the people having the problem copied the script
> from  a Windows2000Pro workstation and copied it to a dos formated 144
> floppy.  We were running SSH on a mandrake server and that is how the
> file got to disk.  A co-worker said RedHat can tell if the file had
> DOS dangles from the initialization to write the file........and shure
> wnought, RedHat said it did and asked us if  we wanted to remove this
> !!  Unbelievable.

> We just typed te script from scrach within a Linux system and it

> Hours were just wasted comparing booggers.
> Matt

Glad to hear it's working for you now. I can't imagine what it's actually
doing given the output I get from "df", but I guess that combination of
tests on NR and getlines has the right embedded magic 8-). Oh, hang on - by
testing for  NR%2 AND adding a "getline", maybe they're canceling each other
out and that's why it's working! Doesn't explain that second getline,
though, unless awk uses the second getlines population of $0, etc. for the
subsequent record. If so - is there an "obfuscated awk" collection somewhere
like there is for C, 'cos I think we have an entry!

Regards,

    Ed.

 
 
 

1. LILO help <><><><><><>

I just installed RH6 on a box that only had a 50MB DOS partition to
begin with.
During the RH install, I used Disk Druid to set up additional
partitions as follows:
/       ~1 GB
swap    ~40 MB
/usr    ~500 MB
/boot   ~10 MB

When prompted, I told it to install LILO into the "/boot" partition.

Upon restarting the system after the install, it booted into DOS again
from my origional active DOS partition.

I tried booting from the emergency rescue disk that I was prompted to
create during the install, but it gives me an error "0x10" and stops.

I can boot using the RH "boot.img" boot disk, hitting F4, and then
inserting the "rescue.img" disk made from dosutils on the RH CD, but I
have no idea what to do from there.

I want to make the thing boot with LILO and ask whether to start DOS or
boot Linux (as default). I realize now that I probably shoud've just
told it to install LILO into the MBR.

Please tell me there is an easy/painless way to get LILO to do this
without re-installing totally.

Please respond via Email to:  jack972 [<at>] netzero [<dot>] net

Many thanks!

Sent via Deja.com http://www.deja.com/
Before you buy.

2. write command for pc's with pc-connect doesn't work

3. <><><> MOUNTING EXTENDED PARTITION <><><>

4. ATI 3D Rage Pro, ho problemi ...

5. Wanted: <><><> Unix Specialist <><><>

6. Easy PERL regex?

7. >>---> Software Jobs! >>--->

8. FTP: File Listing problem

9. >>==>> Some help with my scripting please.

10. rpc.mountd: getfh failed: Operation not permitted ( WinNT -> samba -> Linux -> NFS -> Solaris)

11. HELP: 2>&1 > /dev/null != 2>&- > /dev/null ???

12. lan>eth0>linux>ppp0>inet help thanks

13. <<->> x-server and backspace: help needed please <<->>