Linux-Misc Digest #255, Volume #24               Tue, 25 Apr 00 11:13:25 EDT

Contents:
  G400 Dual head setup issues (Alex)
  Re: templates and g++ (Arthur)
  Re: RPM problem (Tux)
  Mini Linux Install on a 386... (Tux)
  **** USER PERMISSIONS **** (Tux)
  Merging huge text files... (Ray Van Dolson)
  Re: **** USER PERMISSIONS **** (The Almighty One)
  What's using the modem (Al Anderson)
  Re: I think I have been HACKED!!! (Julie Brandon)
  Re: Access Windows files from Linux in the same box (Prasanth Kumar)
  pppd not properly installed (Maggi Mackay)
  Re: Monitor going blank - power settings? (Marc D. Williams)
  Re: Mini Linux Install on a 386... ("David ..")
  Re: forced umount not supported yet?? ("Calvin")
  Re: Access Windows files from Linux in the same box ("Calvin")
  Re: Getting the right lib for an app? ("Calvin")
  Re: pppd not properly installed ("David ..")
  Re: LILO stops at LI ("Calvin")
  Re: Floppy format problem. ("Gene Heskett")
  Re: ICQ masquerading problems ("Henrik B�gh")
  Re: Merging huge text files... (Vilmos Soti)
  Re: Merging huge text files... ([EMAIL PROTECTED])
  Re: Those distributions are stupid (Charlie)
  [?] proc filesystem? (jauming)
  Re: Creating multiple pages automatically (Chris F.A. Johnson)

----------------------------------------------------------------------------

From: Alex <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.os.linux.setup
Subject: G400 Dual head setup issues
Date: Mon, 24 Apr 2000 01:46:29 -0400

I have a matrox g400 dualhead.  I am running linux 2.3.99-pre5 with the
necessary modules to get the 2nd head working.  The second head works
fine as a console, but I can't get it to work in X11.  I'm using Xfree
4.0.  I can get X servers started on the individual heads, but when I
try to get Xinerama running, the second head always goes blank when I
start X.  The first head acts like it is running in Xinerama mode (i.e.,
I can move the mouse off the right side of the screen, but all tha does
it produce corruption in the mainscreen, and centered dialog boxes
appear half off the screen ), but the 2nd head does nothing.

Has anyone gotten this to work?  If so, could someone please let me know
what all has to be done.

Thanks,

Alex

------------------------------

From: Arthur <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: templates and g++
Date: Sun, 23 Apr 2000 22:26:23 -0700

Donovan Rebbechi wrote:
> 
> Does anyone here know how to get templates working with g++ ?
> For example, I have a file graph.cpp and graph.h, and main.cpp.
> It refuses to link unless I use #include "graph.cpp" in the file
> main.cpp

<snip example>

Try looking at the gcc *info* pages a few levels under 
"C++ Extensions" - there's some stuff there on linking 
when using templates. Don't use 'em myself, so I'm not
sure it's what you need.

BTW - thanks for the Font HOW-TO, It's been extremely
useful.

Arthur

------------------------------

From: Tux <[EMAIL PROTECTED]>
Subject: Re: RPM problem
Date: Mon, 24 Apr 2000 03:33:13 -0230

Dave Brown wrote:

> In article <[EMAIL PROTECTED]>, Beno�t Smith wrote:
> >I recently tried to install some RPM packages, but I only received the
> >irritating "failed dependancies" message followed by a list of
> >supposedly missing libraries. Then I was surprised by seeing that most
> >of the concerned libraries ARE present in my system (in the directories:
> >/lib, /usr/lib, /usr/X11R6/lib) !!!
> >Could someone give me an explanation for this ? I am using the Slackware
> >7.0. distro.
>
> RPM only knows what's in the rpm database, not what's really installed.
> Since Slackware 7.0 doesn't use rpm for initial installation, there is
> no database for rpm to reference.  (Which makes me wonder what good
> using rpm does on a "non-rpm" system...)
>
> Using "rpm -i --nodeps" will cause the software to be dumped out of
> the package onto the system, but no guarantees that anything will
> work.  Dependent components may be on the system, but not where the
> packaged software expects them.  And components of the packaged
> software may be installed in places where the "non-rpm" system
> can't find them.
>
> I've usually used "rpm2tgz" to get the components into a tarball so that
> I can see what's going to be put where.
>
> --
> Dave Brown  Austin, TX

Where can I find the "rpm2tgz" utility...???

Trevor...


------------------------------

From: Tux <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Mini Linux Install on a 386...
Date: Mon, 24 Apr 2000 03:40:59 -0230

Hi guys...

Is it possible for me to install Linux on a 386 with 4MB RAM and 40 MB
hard drive...  I do not want to use the X server, and I don't want to
use any super-dooper features...  I only want to have a basic unix
network with 2 386 computers, and 1 486...

Thanks again,
Trevor...


------------------------------

From: Tux <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.networking,com.os.linux.redhat,comp.os.linux.setup,nf.comp.linux,alt.os.linux
Subject: **** USER PERMISSIONS ****
Date: Mon, 24 Apr 2000 03:53:21 -0230

Hi there,

Is there any way to set user permissions in linux as you would in
another NOS like NT or Novell...??   What I am referring to is the
ability to assign individual users with the access to perform some,
most, or all of the actions of a root or su user....  For instance,
would I be able to assign access rights to an ordinary user so they
would be able to shutdown the system, edit system files, or something
similar...??? *s*

Thanks,
Trevor...


------------------------------

Crossposted-To: comp.unix.admin
Subject: Merging huge text files...
From: [EMAIL PROTECTED] (Ray Van Dolson)
Date: Mon, 24 Apr 2000 06:25:05 GMT

I have two webserver log files each of size ~2GBs.  I want to merge them 
together into one file, however, most of the solutions I've tried so far 
can't handle text files that large.  (cat file1 >> file2 for example).  I 
also tried a quick Python script to do the job, but it also couldn't handle 
that large a text file.  Do I need to write something in C to accomplish 
this or are their some utilities out there I could try?  

Thanks for any help/ideas.

Ray Van Dolson

------------------------------

From: The Almighty One <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: 
comp.os.linux.networking,com.os.linux.redhat,comp.os.linux.setup,nf.comp.linux,alt.os.linux
Subject: Re: **** USER PERMISSIONS ****
Date: Mon, 24 Apr 2000 06:29:44 GMT

yes ...

Tux wrote:

> Hi there,
>
> Is there any way to set user permissions in linux as you would in
> another NOS like NT or Novell...??   What I am referring to is the
> ability to assign individual users with the access to perform some,
> most, or all of the actions of a root or su user....  For instance,
> would I be able to assign access rights to an ordinary user so they
> would be able to shutdown the system, edit system files, or something
> similar...??? *s*
>
> Thanks,
> Trevor...


------------------------------

From: Al Anderson <[EMAIL PROTECTED]>
Subject: What's using the modem
Date: Mon, 24 Apr 2000 02:36:32 -0400

I was trying to configure my modem on a first time Linux install using
kppp.  When I get to the point where I can do a "check modem" it comes
back and says the modem is busy.  Is here a command/utility that I can
use to see who/what is using the modem?

Thanks, Al


------------------------------

From: [EMAIL PROTECTED] (Julie Brandon)
Crossposted-To: uk.comp.os.linux,comp.os.linux.setup
Subject: Re: I think I have been HACKED!!!
Date: 24 Apr 2000 02:07:13 GMT
Reply-To: [EMAIL PROTECTED]

On 24 Apr 2000 00:50:15 +0100, C. Newport ([EMAIL PROTECTED]) said:
>Nuke everything, preferably buy a new disk drive and keep the old one
>as evidence only.

Unless you're looking to keep the evidence, what happened to good ol'
reformatting?

Ta-ra,
  Julie.

-- 
Disclaimer: this post is just my insignificant mumblings, so don't believe
a word of it -- relax, and take it all with a pinch of salt.  Any relevance
to real life is purely co-incidental, and is statistically very unlikely.  
Gluten free.  Requires 4xAA batteries (not included).  May contain peanuts.

------------------------------

From: Prasanth Kumar <[EMAIL PROTECTED]>
Subject: Re: Access Windows files from Linux in the same box
Date: Mon, 24 Apr 2000 06:51:07 GMT

Deja User wrote:
> 
> Hi, there:
> 
>   I'm goint to install Linux in a seperate partition on my Win98 PC.
> Is it possible for me to access files (mostly ACSII source code) in
> the Windows partition from within Linux, without using a second PC in
> the network or using the floppy disk?
<snip>

Yes...

-- 
Prasanth Kumar
[EMAIL PROTECTED]

------------------------------

Date: Mon, 24 Apr 2000 09:24:46 +0200
From: Maggi Mackay <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: pppd not properly installed

I'm a Linux newbie, running Red Hat 6.0. My problem is that I am unable
to dial into my ISP unless I su to root first. If I try to invoke kppp
as a normal user I get the following message:
pppd is not properly installed. The pppd binary must be installed with
the SUID bit set. Contact your system administrator.
Since I am the administrator!! What next? I would like to allow other
members of my family to be able to dial in, but not as root.
Many thanks in advance.
John

------------------------------

From: [EMAIL PROTECTED] (Marc D. Williams)
Subject: Re: Monitor going blank - power settings?
Reply-To: [EMAIL PROTECTED]
Date: Mon, 24 Apr 2000 07:26:41 GMT

On Mon, 17 Apr 2000 21:47:06 GMT, John Roberts <[EMAIL PROTECTED]> wrote:
>Hi all
>
>my redhat 6.1 system came set up to power down the monitor at a regular
>interval.  It goes black and you have to move the mouse to get the display
>up again.  Does anyone know where this configuration is stored?
>
Look in /etc/XF86Config I suppose.

You may see entries with stuff like this
    Option      ``power_saver''
under the Devices section.      
And under the Screen section settings like these.
    BlankTime   20
    StandbyTime 40
    SuspendTime 60
    OffTime     90

You can either make adjustments to you liking or comment out the
power_saver line to remove the option.

If the blanking is happening at the console then you'll have to
check for setterm settings in your rc.d files or whatever Red Hat uses.

-- 
>>ANIME SENSHI<<

Marc D. Williams
[EMAIL PROTECTED]
http://www.oldskool.org/~tvdog/ -- DOS Internet & Tandy 1000
http://www.geocities.com/SiliconValley/Platform/8269/ -- Win3.x Makeover

------------------------------

From: "David .." <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Re: Mini Linux Install on a 386...
Date: Mon, 24 Apr 2000 02:18:05 -0500

Tux wrote:
> 
> Hi guys...
> 
> Is it possible for me to install Linux on a 386 with 4MB RAM and 40 MB
> hard drive...  I do not want to use the X server, and I don't want to
> use any super-dooper features...  I only want to have a basic unix
> network with 2 386 computers, and 1 486...
> 
> Thanks again,
> Trevor...

With that size drive I would try Linux on a Floppy (LOAF). Check out the
link below.

http://loaf.ecks.org/

-- 
Registered with the Linux Counter.  http://counter.li.org
ID # 123538

------------------------------

From: "Calvin" <[EMAIL PROTECTED]>
Subject: Re: forced umount not supported yet??
Date: Mon, 24 Apr 2000 15:35:16 +0800

Hi Robie,
     I found that the reason is i am still using the old version of mount
which came with RH5.2. I upgraded ot the newer version of mount and the
problem just gone.

    Anyway, thanks for your help. You replied to my posts very quickly and i
learned something from you also( i don't know i can add the /sbin/sulogin to
the scripts for some purpose). You really give me a good time in this
newsgroup. Thanks.

Best regards
Calvin



------------------------------

From: "Calvin" <[EMAIL PROTECTED]>
Subject: Re: Access Windows files from Linux in the same box
Date: Mon, 24 Apr 2000 15:38:03 +0800

Hi,
    Of course yes. The windows file system (FAT) is called vfat in linux.
You can access that partition by mounting it to whatever directory you like.
Note: To writing to that partition, you must have the root account. Whilte
read is ok for every users.

Best regards
Calvin

Deja User <[EMAIL PROTECTED]> wrote in message
news:8e0guv$cgb$[EMAIL PROTECTED]...
> Hi, there:
>
>   I'm goint to install Linux in a seperate partition on my Win98 PC.
> Is it possible for me to access files (mostly ACSII source code) in
> the Windows partition from within Linux, without using a second PC in
> the network or using the floppy disk?
>
>   Thanks,
>
> Liu Bin
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.



------------------------------

From: "Calvin" <[EMAIL PROTECTED]>
Subject: Re: Getting the right lib for an app?
Date: Mon, 24 Apr 2000 15:39:49 +0800

Try go to www.rpmfind.net to find it out. Simply search for your
application, and it have a field named as "required". Click on the library
file you want. Then you can find which libraries contains the file you want
(If you are using rpm, you can download the rpm from there).

Best regards
Calvin

<[EMAIL PROTECTED]> wrote in message
news:8e0fpu$b9c$[EMAIL PROTECTED]...
> I have an app that when I try to run it I get:
> error in loading shared libraries: libXm.so.1: cannot open shared object
> file: No such file or directory.
>
> How do I get this libXm.so.1?
> I do not have the source code so I cant recompile the app.
> I have try "ln -s libXm.so libXm.so.1...still won't work...
>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.



------------------------------

From: "David .." <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: Re: pppd not properly installed
Date: Mon, 24 Apr 2000 02:28:54 -0500

Maggi Mackay wrote:
> 
> I'm a Linux newbie, running Red Hat 6.0. My problem is that I am unable
> to dial into my ISP unless I su to root first. If I try to invoke kppp
> as a normal user I get the following message:
> pppd is not properly installed. The pppd binary must be installed with
> the SUID bit set. Contact your system administrator.
> Since I am the administrator!! What next? I would like to allow other
> members of my family to be able to dial in, but not as root.
> Many thanks in advance.
> John

Look in  /etc/sysconfig/network-scripts/ifcfg-pppX  where pppX is the
correct device and check to see if the line   USERCTL=false   if it is
set to  "false"  then change it to  "true"  this should allow users to
control ppp.

-- 
Registered with the Linux Counter.  http://counter.li.org
ID # 123538

------------------------------

From: "Calvin" <[EMAIL PROTECTED]>
Subject: Re: LILO stops at LI
Date: Mon, 24 Apr 2000 15:47:12 +0800

Hi Henry,
    I have the same problem twice in the past. I didn't do anything to my
hard disk but one day i boot my computer. It stops at LI also. You need to
re-install your LILO. And i use the following method. Hope it helps.
1) Boot your linux box with the rescue floppies.
2) WHen you get into the ram disk. make a new directory:
mkdir rescue
3) Mount your linux partition on the new created directory:
mount -t ext2 <DEVICE> rescue
note: where device is your linux partition like /dev/hda4. You can always
check it out by typing fdisk -l
4) Create a link in your ram disk called "boot" to the "boot" directory in
your linux partition:
ln -s /rescue/boot /boot
5) Re-install lilo by the following command (I am supposing your lilo is at
/sbin):
/rescue/sbin/lilo -C /rescue/etc/lilo.conf -v
6) After that, reboot your computer. To see it works or not.

    It is a stupid method to do so many steps as i think there must be a
more convenience method. Anyway, i fixed my lilo twice by using this method.

Best regards
Calvin

Henry <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Dear John
>
> Thanks for your help. Unfortunately as i can't access my linux partition,
> there isn't much i can do abotu the files you mentioned. As i've posted to
> a few helpful others, i intend to pull out completely and start all over
> again later as i need desperately to get into Windows.
>
> Do you have any suggestions as to how can i remove the Redhat partitions
> (incl the swap partn) completely and expand the Windows partition? What
> about the mbr and such? Is there anything else i need to do? I was told i
> cannnot use the fdisk from Dos to remove them as it won't recognise them.
> Is that true?
>
> Once again, thanks for your help.
>
> Henry
>
>
> John in SD wrote:
> >
> > In reducing the size of your RedHat partition, two files critical to
> > the boot process moved:  /boot/map and /boot/boot.b.  These files are
> > referenced at absolute disk locations from the LILO first stage loader
> > (the guy who puts out the 'LI').
> >
> > Boot from a floppy and then re-run LILO to reinstall the loader.
> >
> > --John
> >
> >
> >
> >
> > On Thu, 13 Apr 2000 10:30:04 GMT, Henry <[EMAIL PROTECTED]>
> > wrote:
> >
> > >Dear folks
> > >
> > >I've Redhat 6.1 installed as a partition on a HD, sharing with Win95.
> It
> > >works fine during the "LILO boot:", where i can choose
> > >between "windows"(win95) and "linux" until i use Partition Magic to
> reduce
> > >the size of my redhat partition. I was trying to transfer some empty
> space
> > >within the main redhat partition (not the swap linux swap partition) to
> > >the Windows partition. The notebook then stops at "LI" whenever i try
> > >booting up the machine again.
> > >
> > >Looking through the postings yield no result as no one seems to face
> the
> > >same problem as me, though suffering the same fate. I do not have any
> > >backup of my data or any info on those /dev/hda..etc info.
> > >
> > >I do not know how to create a boot disk to get ito Windows again,
> except
> > >the Windows created one, which when i tried, gets me to A:\. However i
> > >couldn't get into Win95 again fom C:\. The error message i got
> was "VFAT
> > >device initialization faied. A device or resource required by VFAT is
> not
> > >present or is unavailable. VFAT cannot continue loading. System
Halted."
> > >
> > >Can anyone kindly help me please? I don't really understand the other
> help
> > >files.
> > >
> > >Henry
>
>
> --
> Posted via CNET Help.com
> http://www.help.com/



------------------------------

Date: 24 Apr 2000 0:35:4 -0500
From: "Gene Heskett" <[EMAIL PROTECTED]>
Subject: Re: Floppy format problem.
Crossposted-To: comp.os.linux.hardware

Unrot13 this;
Reply to: <[EMAIL PROTECTED]>

Gene Heskett sends Greetings to Charles Sullivan;

 CS> Has anyone successfully formatted a 5.25" double-density 360K
 CS> floppy diskette on a high-density 1.2 Meg floppy drive under
 CS> Linux, specifically RedHat 6.0?  Or any version of Linux?

 CS> I use the command:
 CS>   fdformat /dev/fd0d360

 CS> and get the following:
 CS>   [csul@localhost csul]$ fdformat /dev/fd0d360
 CS>   Double-sided, 40 tracks, 9 sec/track. Total capacity 360 kB.
 CS>   Formatting ... done
 CS>   Verifying ... end_request: I/O error, dev 02:04 (floppy), sector 0
 CS>   Read: : Input/output error
 CS>   Problem reading cylinder 0, expected 9216, read -1
 CS>  [csul@localhost csul]$ end_request: I/O error, dev 02:04 (floppy),
 CS>  sector
 CS> 2
 CS>   end_request: I/O error, dev 02:04 (floppy), sector 4
 CS>   end_request: I/O error, dev 02:04 (floppy), sector 6
 CS>   end_request: I/O error, dev 02:04 (floppy), sector 9
 CS>   <etc>

 CS>   I don't have this problem when formatting a high-density 1.2 Meg
 CS> floppy under Linux, and Win 98 will format either 360K or 1.2 Meg
 CS> without a problem.  I've also tried a different floppy drive
 CS> with the same results.  (Both are Teac drives; one is about 10 years
 CS> old and the other is new.)

 CS> Any suggestions as to what I might be doing wrong?  Or is this a
 CS> bug?

1. It may be a bug.

2. It may be that the linux writers looked at that bad situation and
decided not to cover it.  I sure wouldn't, its a disaster looking for a
place to happen.

The reasons are pretty basic.

a: the tracks laid by that DSQD drive are only about 40% of the width of a
true DSDD 360k drive, meaning there is gonna be huge amounts of noise
from the old data on either side of the new "formatted" track.

b: In addition to double-stepping the heads to make it into a 40 track
drive, a 48 tpi if you will, the spindle speed must be slowed down from
360 to 300 rpm, and the data pump must be switched down from 500
kilobaud to 250 kilobaud.

c: to go along with the spindle speed, data rate changes, the recording
currents applied to the heads should also be reduced IF its a DSDD disk,
something the drive has no sensors to detect, otherwise the heads would
be driven so hard that the recording is actually partially erased by the
excess currant.

Overall, trying to make a 360k diskette in a 1.2 megger will have to
deal with the fact that its probably can only be read in that same
drive, no real 360k drive, with its wider heads, would ever give you an
error free read.

Did I mention its a bad idea?  The only snowballs chance of making it
work is if you started with a bulk erased diskette, one erased by one of
those $30 tape erasers they sell at radio shack.  You could probably put
that disk in a real 360k drive and read it, but if you ever wrote to it,
and then tried to re-write that same area again in the QD drive, at
least that file would be trashed forever.

Cheers, Gene
-- 
  Gene Heskett, CET, UHK       |Amiga A2k Zeus040, Linux @ 400mhz 
    Ch. Eng. @ WDTV-5          |This Space for rent
         RC5-Moo! 350kkeys/sec, Seti@home 16 hrs a block
                        email gene underscore heskett at iolinc dot net
This messages reply content, but not any previously quoted material, is
� 2000 by Gene Heskett, all rights reserved.
-- 


------------------------------

From: "Henrik B�gh" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: ICQ masquerading problems
Date: Mon, 24 Apr 2000 10:01:35 +0200

"Jean-Sebastien Morisset" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I've installed the ICQ module, and it seems to be working fine, but my ICQ
> won't go online. If I take a look at my firewall logs, I can see the UDP
> packet being sent, but nothing comes back! Here's a snippet of my log:
>
> Apr 23 17:05:24 marvin kernel: ip_masq_icq: LOGIN
> [EMAIL PROTECTED]:13417<-60211/3429, protocol v5
> Apr 23 17:05:24 marvin kernel: Packet log: output ACCEPT eth1 PROTO=17
> 24.201.24.83:61469 205.188.153.106:4000 L=163 S=0x00 I=20702 F=0x0000
T=127
> (#84)
>
> I have full logging on (input AND output) so I would see any incoming
> packet.
>
> I'm running ICQ on a Windows98 box within my private LAN. From the logs,
you
> can see the internal IP for this box (10.1.1.20). I'm wondering if the ICQ
> server is trying to reply to this IP.
>
> Anyone had a similar problem?
I had - i found that using the following somewhat works:

    /sbin/ipchains -A input -p udp -j ACCEPT -s 0.0.0.0/0 4000 -d 10.0.0.0/8
1024:65535
    /sbin/ipchains -A input -p udp -j ACCEPT -s 0.0.0.0/0 4000 -d $EXT_IP
1024:65535
    /sbin/ipchains -A input -p udp -j ACCEPT -s 0.0.0.0/0 1024:65535 -d
10.0.0.0/8 4000
    /sbin/ipchains -A input -p udp -j ACCEPT -s 0.0.0.0/0 1024:65535 -d
$EXT_IP 4000
    /sbin/ipchains -A forward -j MASQ -p udp -s 10.0.0.0/8 -d 0.0.0.0/0 4000

Where $EXT_IP is the gateways ip-address on the internet. My problem was
that i run the default input policy is DENY. So it didn't log the responses
from the ICQ-server, since those was sendt to $EXT_IP and NOT my internal
network (10.0.0.0/8). The following can send and recieve messages, links and
so on. Chat and file-transfers doesn't work tough.

> js.

Regards
Henrik Boegh ( [EMAIL PROTECTED] )




------------------------------

Crossposted-To: comp.unix.admin
Subject: Re: Merging huge text files...
From: Vilmos Soti <[EMAIL PROTECTED]>
Date: Mon, 24 Apr 2000 08:11:25 GMT

[EMAIL PROTECTED] (Ray Van Dolson) writes:

> I have two webserver log files each of size ~2GBs.  I want to merge them 
> together into one file, however, most of the solutions I've tried so far 
> can't handle text files that large.  (cat file1 >> file2 for example).  I 
> also tried a quick Python script to do the job, but it also couldn't handle 
> that large a text file.  Do I need to write something in C to accomplish 
> this or are their some utilities out there I could try?  

I think the problem is that you are hitting the 2GB filesize limit
present on the Intel Platform.

Vilmos

------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: comp.unix.admin
Subject: Re: Merging huge text files...
Date: 24 Apr 2000 08:14:13 GMT

In comp.unix.admin Vilmos Soti <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (Ray Van Dolson) writes:

>> I have two webserver log files each of size ~2GBs.  I want to merge them 
>> together into one file, however, most of the solutions I've tried so far 
>> can't handle text files that large.  (cat file1 >> file2 for example).  I 
>> also tried a quick Python script to do the job, but it also couldn't handle 
>> that large a text file.  Do I need to write something in C to accomplish 
>> this or are their some utilities out there I could try?  

> I think the problem is that you are hitting the 2GB filesize limit
> present on the Intel Platform.
Present on *some* Intel platforms.

*BSD will allow files up to Terabytes.

> Vilmos

-- 
--
Peter H�kanson         
        Manet Networking      (At the Riverside of Gothenburg, home of Volvo)
           Sorry about my e-mail address, but i'm trying to keep spam out.
echo "peter (at) manet (dot) nu" | sed "s/(at)/@/g " | sed "s/(dot)/\./g"|sed "s/ //g"

------------------------------

From: Charlie <[EMAIL PROTECTED]>
Crossposted-To: 
ch.comp.os.linux,alt.os.linux,comp.os.linux,comp.os.linux.development,de.comp.os.unix.linux.misc
Subject: Re: Those distributions are stupid
Date: Mon, 24 Apr 2000 11:00:39 +0200

Oh yes they should make it easier for developoers. Why is for example
SAP only
supporting Red Hat!! Because they are to lazy to support others. So why
should anyone writing programms make himsely the troubles of supporting
not only one but half a dozen of dirtributions.



------------------------------

From: jauming <[EMAIL PROTECTED]>
Subject: [?] proc filesystem?
Date: Mon, 24 Apr 2000 09:01:19 GMT

[?] proc filesystem?
  what's the difference between:
"get_info" of "proc_dir_entry structure"
  and
"read" of "file_operations structure"?

thanks in advanced!:)
please also reply to:
[EMAIL PROTECTED]


--
--
regards


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

------------------------------

From: [EMAIL PROTECTED] (Chris F.A. Johnson)
Subject: Re: Creating multiple pages automatically
Date: Mon, 24 Apr 2000 08:58:29 GMT

On Fri, 21 Apr 2000 03:06:55 -0300, [EMAIL PROTECTED] wrote:
: Hi,

:  I have a huge list of guitar's tablatures (about 10 MB) and I want to make
: them available to the public, but it'd be almost impossible to only one
: person to make all the HTML files with all these tablatures.
:  My question is: are there any kind of program (for Linux, if possible; if
: not, for any other operating system) to automatically generate HTMLs using
: a list of pre-defined Links and Text and splitting them in multiple pages?
:  For example:
: I make a file called led_zeppelin.txt and this file contains:
: Song 1
: http://www.blah.org/blah/song1.txt

: Song 2
: http://www.blah.org/blah/song2.txt
: ...

:  And the program will automatically create a HTML named led_zeppelin.html,
: with the links pre-defined at led_zeppelin.txt, and having a default "style"
: of how to design the page.

Assuming that led_zeppelin.txt contains:
===== CUT HERE ===
Song 1
http://www.blah.org/blah/song1.txt

Song 2
http://www.blah.org/blah/song2.txt
===== CUT HERE ===

awk `
        BEGIN { RS = ""
                FS = "\n"
                }

        { printf "<A HREF=%s>%s</A><BR>\n", $2, $1 } 

    ` led_zeppelin.txt > led_zeppelin.html

The file led_zeppelin.html will contain:

<A HREF=http://www.blah.org/blah/song1.txt>Song 1</A><BR>
<A HREF=http://www.blah.org/blah/song2.txt>Song 2</A><BR>


Just add a header in the BEGIN section and an END section with a footer
and you're done. You can easily modify the main printf statment to format
the output differently if you like. 

If the program begins to get big, put it in its own file 
(e.g. mkhtml.awk)  and call:

awk -f mkhtml.awk led_zeppelin.txt
-- 
        Chris F.A. Johnson
        [EMAIL PROTECTED]               http://www.interlog.com/~cfaj
        -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
               Everything in moderation - including moderation  

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to