Linux-Misc Digest #759, Volume #24 Fri, 9 Jun 00 08:13:04 EDT
Contents:
Capturing info into log file ("kana_krishna")
Re: ftp und .netrc (Michael Hofmann)
[Fwd: xbackup] (Holger Jannsen)
linuxdoc page numbering ([EMAIL PROTECTED])
kernel preoblem,can't login (jeffrey)
Re: Delaying eth0 initialization (florin)
Re: NCD X-terminal (Robert)
how to import outlook mail into netscape mail? (Jonas Bieri)
Re: booting 3 OS's on one machine win98-win2k-linux ([EMAIL PROTECTED])
Re: how to import outlook mail into netscape mail? ("Peter T. Breuer")
Anyone connecting linux with psn.net? (Ramin Sina)
Re: I want to switch to Linux - Please Help (Stephen Cornell)
how to reinstall win98 without affecting lilo? ("Andrew Shiue")
----------------------------------------------------------------------------
From: "kana_krishna" <[EMAIL PROTECTED]>
Subject: Capturing info into log file
Date: Fri, 9 Jun 2000 17:34:08 +0800
I need help in configuring the web server to capture certain information
into the log file . The info that I have to capture are
- the users screen colour depth (example : 256 colour , 16 bit)
- screen resolution
- screen size
- country
- log in time of user
- type of browser used (with type of version)
- type of platform (os)
Is there any way of doing this . I know that it had to be configured in the
httpd.config file if i'm not mistaken , but I don't know the command line to
do it . Anyway the server runs on Linux 2.2.6 . Please help I'm still new to
this and confused.
------------------------------
From: Michael Hofmann <[EMAIL PROTECTED]>
Subject: Re: ftp und .netrc
Date: Fri, 09 Jun 2000 11:50:09 +0200
Mark Heisterkamp wrote:
>
> Weiss jemand Rat?
Die Chance hier Antwort zu erhalten ist wesentlich h�her wenn man sich
der englischen Sprache bedient...
SCNR,
Michael
------------------------------
Crossposted-To: de.comp.os.unix.linux.misc
From: Holger Jannsen <[EMAIL PROTECTED]>
Subject: [Fwd: xbackup]
Date: Fri, 9 Jun 2000 07:25:22 GMT
======== Original Message ========
Betreff: xbackup
Datum: Mon, 5 Jun 2000 13:26:17 GMT
Von: Holger Jannsen <[EMAIL PROTECTED]>
Firma: Phoenix EDV-Systemtechnik GmbH
Foren: comp.databases.adabas
Hi,
[SuSE-Linux, Adabas 10-D/11-D]
...I'd to backup some adabas-databases and some other stuff on tape
(Linux). So I thought of making a little script that is doing the job by
cron-daemon.
As a tool to backup the adabas-dbs I've choosen xbackup.
Now I've got a problem I couldn't solve yet. Perhaps you've some ideas?
Please take a look at my whole script (under GNU-License):
[BTW: You could get it (and some more stuff) at
"http://www.phoenix-edv.com/down/download/Linux/adabasDBsafer.tar.gz"
(it's just about 11k), too.]
==================snip=======================
#! /bin/sh
. /etc/rc.config
[ -z "$DBROOT" -o -z "$DBUSER" ] && echo -e "\error! DBROOT and DBUSER
not set in rc.config\n" && exit 1
export DBROOT DBUSER
# set variables
DBNAME=mydbl # which DB?
BACKPATH=$DBROOT/backup
TARGETDIR=$BACKPATH/data
PATHBACKDAT=$BACKPATH/media1.dat ####=media 'BACKDAT' (must be defined!)
PATHBACKLOG=$BACKPATH/media1.log ####=media 'BACKLOG' (must be defined!)
MAILTO=adabas@server1
LOG=$BACKPATH/$DBNAME.backup.log
DBBCKRUN=$DBROOT/bin/xbackup
PROZESSTMPFILE=$BACKPATH/running.proc
SAFTDAY=Fre # don't erase old friday-ones
NOW=`date +'%a_%d%b%Y_%H%M%S'`
DAY=`date +'%a'`
# OLDTIMES=`date --date '2 weeks ago' +'%s'` # seconds 2 weeks ago
(since 1970)
OLDTIMES=`date --date '2 weeks ago' +'%a_%d%b%Y_'` # timestamp 2 weeks
ago (since 1970)
rc_done="\033[71G\033[32mdone\033[m" #e.g. for use in later
versions
rc_failed="\033[71G\033[31m\033[1mfailed\033[m"
export DBNAME PATHBACKDAT PATHBACKLOG BACKPATH MAILTO LOG DBBCKRUN NOW
PROZESSTMPFILE
#write to a new logfile
echo -e "\nstarting backup of adabas-db \"$DBNAME\" on PC \"$HOSTNAME\"
at $NOW\n" | tee $LOG
#check out preferences!
test ! -d $BACKPATH && echo -e "warning: directory \"$BACKPATH\" does
not exist, trying to create..." && mkdir -p $BACKPATH
test ! -d $TARGETDIR && echo -e "warning: directory \"$TARGETDIR\" does
not exist, trying to create..." && mkdir -p $TARGETDIR
test ! -w $PATHBACKDAT && echo -e "warning: BACKDAT-media-file
\"$PATHBACKDAT\" does not exist, trying to create..." && touch
$PATHBACKDAT
test ! -w $PATHBACKLOG && echo -e "warning: BACKLOG-media-file
\"$PATHBACKLOG\" does not exist, trying to create..." && touch
$PATHBACKLOG
# $DBROOT/dbstarter/remotesql stop
# $DBROOT/dbstarter/$DBNAME restart
# remember and kill running backup-prozesses temporarily
ps xw|grep plrun.*AUTOON|grep -v grep|awk '{print $5,$6,$7,$8,$9,$10,$NF
" &"}'>$PROZESSTMPFILE
PROZESS=`ps xw|grep plrun.*AUTOON|grep -v grep|awk '{print $1}'`
if [ "$PROZESS" != "" ]
then
echo -e "\ninfo: adabas-automatic-backup processes has been detected:"
| tee -a $LOG
echo -e " ----------------------------------------" | tee -a $LOG
cat $PROZESSTMPFILE | tee -a $LOG
echo -e " ----------------------------------------" | tee -a $LOG
echo -e "info: I'll try to kill them temporarily..." | tee -a $LOG
kill -9 $PROZESS | tee -a $LOG
echo -e "info: spending some time to die..."
sleep 10
else
echo -e "info: no adabas-automatic-backup processes has been
detected, proceeding..." | tee -a $LOG
fi
# start logging
echo -e "\ninfo: monitoring backup-process..." | tee -a $LOG
LOGIT="tail -f $DBROOT/wrk/$DBNAME/control.bkl -n0"
$LOGIT >$LOG.$NOW &
LOGITPID=`ps axw | sort | grep "$LOGIT" | grep -v grep | tail -2 | head
-1|awk '{print $1}'`
echo -e "info: Log-PID to kill later: $LOGITPID \n" | tee -a $LOG
# start backup
$DBBCKRUN -a SAVEDATA -d $DBNAME -m BACKDAT -f $PATHBACKDAT -v 2>&1 |
tee -a $LOG
$DBBCKRUN -a SAVELOG -d $DBNAME -m BACKLOG -f $PATHBACKLOG -v 2>&1 | tee
-a $LOG
echo -e "\ninfo: waiting for slow ending of logging..."
sleep 10
echo -e "\ninfo: stop logging..."
kill -9 $LOGITPID | tee -a $LOG
cat $LOG.$NOW | tee -a $LOG
rm $LOG.$NOW
if [ "$PROZESS" != "" ]
then
echo -e "\ninfo: try to restart adabas-automatic-backup processes..." |
tee -a $LOG
sh $PROZESSTMPFILE &
if [ $? -ne 0 ]
then
echo -e "info: ...restarting OK!" | tee -a $LOG
else
echo -e "error: ...restarting FAILED! please try later!" | tee -a
$LOG
fi
fi
# $DBROOT/dbstarter/remotesql start
echo -e ---------------------------------------- | tee -a $LOG
echo -e "moving backup-files to clearly dated filenames and into
directory data..." | tee -a $LOG
if [ -s $PATHBACKDAT -a $PATHBACKDAT -nt $PROZESSTMPFILE ]
then
cp -v $PATHBACKDAT $TARGETDIR/`basename $PATHBACKDAT`.$NOW | tee -a
$LOG
gzip -v $TARGETDIR/`basename $PATHBACKDAT`.$NOW | tee -a $LOG
if [ "$DAY" != "$SAFTDAY" ]
then
rm -v $TARGETDIR/`basename $PATHBACKDAT`.$OLDTIMES* 2>&1 | tee
-a $LOG
else
echo "today is $DAY, I won't delete anything today"
fi
else
echo -e "error! missing $PATHBACKDAT or size is 0 byte or error in
backup-process" | tee -a $LOG
fi
if [ -s $PATHBACKLOG -a $PATHBACKLOG -nt $PROZESSTMPFILE ]
then
cp -v $PATHBACKLOG $TARGETDIR/`basename $PATHBACKLOG`.$NOW | tee -a
$LOG
gzip -v $TARGETDIR/`basename $PATHBACKLOG`.$NOW | tee -a $LOG
if [ "$DAY" != "$SAFTDAY" ]
then
rm -v $TARGETDIR/`basename $PATHBACKLOG`.$OLDTIMES* 2>&1 | tee
-a $LOG
else
echo "today is $DAY, I won't delete anything today"
fi
else
echo -e "error! missing $PATHBACKLOG or size is 0 byte or error in
backup-process" | tee -a $LOG
fi
# send log
if [ "$MAILTO" != "" ]
then
cat $LOG | mail $MAILTO -s "Adabas-Backup of \"$DBNAME\" on $HOSTNAME"
else
echo -e "no mail-account set - don't send any log-mails"
fi
==================snap=======================
For instance it may be enough to understand what I am doing or better:
what I try to do in time:
adabas@server1 >$DBROOT/bin/xbackup -a SAVEDATA -d mydbl -m BACKDAT -f
/var/db/medium.dat -v 2>&1 >backup.log
(or even:)
adabas@server1 >$DBROOT/bin/xbackup -a SAVEDATA -d mydb1 -m BACKDAT -v
For sure "BACKDAT" _is_ an existing medium created with "xcontrol" by
adabas-superuser. It's that file at "/var/db/medium.dat".
If the superuser makes a backup with the tool "xcontrol" of this
database "mydbl" there is a file been created. It looks allright and the
backup could be reintegrated. No other backup-prozess is running (e.g.
like AUTO-backup).
But now take a look at the script (see below!). Sometimes (really!!!) it
does its job fine, but on the otherhand there is no backup-file been
created. Even if there has been a valid backup-file created by "xconfig"
before there has no access to that file been noticed.
Take a look to that log-file:
==================snip=======================
xbackup: Will look for save of DB 'mydb1' on node 'server1'
xbackup: Successfully finished 'ni33_FillDBInfo':
xbackup: Will use DB 'mydb1' running in '/opt/adabas/wrk/mydb1'
xbackup: DB state is WARM
xbackup: Will use DB root directory '/opt/adabas11'
xbackup: Successfully checked 'read/write' permission on Control files
xbackup: Successfully finished 'ni38_FillCtrlInfo':
xbackup: Will use '/opt/adabas/pgm/plrun' on '/opt/adabas/pgm/backup'
xbackup: Media defined in '/opt/adabas/wrk/mydb1/control.dat'
xbackup: Found element 'SAVEDATA' (0) - 'bIsOldName' = FALSE
xbackup: Successfully finished 'ni38_FillMediumInfo':
xbackup: Will use medium 'BACKDAT' of 1 file(s)
xbackup: 1 : '/opt/adabas/backup/backupmed.dat'
xbackup:
Progname xbackup
Op.-System unspecified UNIX variant
NeedMedia TRUE
MayPipe TRUE
Action SAVEDATA
xbackup: Successfully finished 'ni30_CheckCombination'
xbackup: Combination is valid: 'SAVEDATA' on 'BACKDAT'
xbackup: Start CONTROL with action 'SAVEDATA' ...
xbackup: Exec ASYNC '/opt/adabas/pgm/plrun -b /opt/adabas/pgm/backup
mydb1 SAVEDATA BATCHSAVE BACKDAT '
xbackup: '/opt/adabas/pgm/plrun' is running with pid = 791
xbackup: Beginning to wait for process 791
xbackup: Process 791 terminated with status 0
xbackup: CONTROL finished successfully
xbackup: Database 'mydb1', action 'SAVEDATA' : SUCCESS
==================snap====================
Seems to be ok, isn't it?
So what the hell is doing wrong?
Any hints, ideas, pizzas?
ciao,
Holger
------------------------------
From: [EMAIL PROTECTED]
Subject: linuxdoc page numbering
Date: Fri, 09 Jun 2000 10:16:15 GMT
Hi all,
I am using linuxdoc to write an article. I use <toc> to generate
a table of contents. However, the automatic page numbering counts
the toc pages and as a result, the first content page is numbered
as page 3 (page 1 and page 2 are occupied by the toc), while the
toc says this page is on page 1.
Any idea on how to fix this problem?
Thanks!!!
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Fri, 09 Jun 2000 18:35:53 -0700
From: jeffrey <[EMAIL PROTECTED]>
Subject: kernel preoblem,can't login
when i start my linux,it shows a command say that i my kernel got
problem,that stuck in there,how can i solve this?
thanks
------------------------------
From: florin <[EMAIL PROTECTED]>
Crossposted-To:
alt.os.linux,alt.uu.comp.os.linux.questions,comp.os.linux.hardware,comp.os.linux.networking,tw.bbs.comp.linux
Subject: Re: Delaying eth0 initialization
Date: Fri, 09 Jun 2000 13:06:04 +0200
Joel Beach wrote:
> Hsinko Yu wrote:
>
> > Hello all,
> > I think i did buy a bad card, Dlink DFE-530TX(PCI).
>
> There's nothing wrong with this card. It worked out of the box for
> me....are you sure it's not set to use DHCP or bootp instead of a static
> address. If this is the case, it's hanging because it can't get an IP
> from the non-existent DHCP server you specified.
>
> Joel
>
> >
> > Anyone having it may now know what i say. I have tried
> > many solutions from the internet, but they all don't work
> > to me. Until now, i get the following message while booting,
> > Bringing up interface eth0
> > Delaying eth0 initialization.....[FAIL]
> > I just can't stand it anymore.
> > Please those who have the experience setting it up help me.
> > Thanks in advance.
> > ps. I use Redhat6.0 and via-rhine driver.
> > Hsinko
Ok, chek these out: first, figure out if in your BIOS setup is desactivated
the option Plug&Play system, other-else it wont't work.
Try to see on what io and irq is set your card (/proc/ioports;
/proc/interrupts),or type dmesg in the console to see your card status.
Msg me when u have all these, and be sure tu use the ne2k-pci module for
these card (i have the same one and it works fine with mandrake 6.1,on a
cable modem)
------------------------------
From: [EMAIL PROTECTED] (Robert)
Subject: Re: NCD X-terminal
Date: Fri, 09 Jun 2000 11:10:13 GMT
Hi Wojtek,
I recently set one up myself, it's an old black and white NCD
terminal.
this is what works for me.
Create a directory in the root of the filesystem called tftpboot and
place all those files you found on the net in there.
Start your Xserver with xdm ( as root ) so that others may connect.
Switch on your X-term, and if it tries to boot automactically, abort
it, and get to a prompt. ( on my machine <alt function> and <F11> does
the trick.
Now you need to tell it to boot off the network to "TFTP" the
nessasry files.
>BT <filename> <X-term's IP> <server's IP>
eg on my machine :
>BT Xncd19r 192.9.200.208 192.9.200.30
That should get things moving for you! Don't panic if it returns a
load of errors while booting up, it will look for lot's of fonts, and
if it can't find them, it will use defaults.
Once you are in the window manager, you can access the setup for the
client, and give it the correct info to do it automatically next time.
Do let me know hao you got on, if the files you have don't work, I can
easily send you some that do.
Regards,
Rob.
( [EMAIL PROTECTED] )
On 03 Jun 2000 17:03:42 -0400, Wojciech Fraczak
<[EMAIL PROTECTED]> wrote:
>
>Hi,
>
>I've problems with an old ncd X terminal I bought recently. I can see
>it on my network (or rather it can see others) I can even upload
>"dump" to other machines from the terminal. However I cannot boot
>the X server. Obviously I do not have the "boot load file" but I was
>thinking that I would be able to find one on the Internet. Effectively, I
>found a few:
>
>-rwxrwxrwx 1 root disk 1198152 May 31 16:20 Xncd15b
>-rwxrwxrwx 1 root disk 1204632 May 31 16:20 Xncd16
>-r--r--r-- 1 fraczak users 2435664 Jun 2 08:16 Xncd19r
>-rwxrwxrwx 1 fraczak users 1966080 May 20 12:13 Xncd19r.old
>-rwxrwxrwx 1 fraczak disk 1845540 May 31 16:35 Xncdxpl
>
>Still NCD X terminal complains
>
> Incorect object file
>
>for all of them. Itself by default is looking for file "Mncd19r".
>
>Any ideas?
>
>Wojtek
>
>
>
------------------------------
Date: Fri, 09 Jun 2000 13:31:32 +0200
From: Jonas Bieri <[EMAIL PROTECTED]>
Subject: how to import outlook mail into netscape mail?
does anybody know if and how i can import outlook express 5.0 mails into
linux netscape messenger 4.73?
thanx!
jonas
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: booting 3 OS's on one machine win98-win2k-linux
Date: Fri, 09 Jun 2000 11:35:38 GMT
[EMAIL PROTECTED] wrote:
>
> well, I was really hoping not to have to do that as I have already spent
> a few long working days trying to get this all accomplished. But
> here's my theory, maybe you can tell me if it's workable, lilo was
> overwritten by the nt loader on the MBR, so I need to install lilo on
> the first sector of the linux partition, peel that sector to a file
> which the boot.ini can see on the c: drive, now here's the big question,
> my c: drive (primary boot partition) is fat32, will that cause problems?
> and if it will, how would I go about partitioning a separate fat16 boot
> partition? thank you all for your responses, your help is most
> appreciated!
> -curt(smizz)
>
Did you make a copy of the bootsector for the NT loader after you ran
LILO?
Use this command:
dd if=/dev/hda5 of=bootsect.lnx bs=512 count=1
to create the bootsector image, put in on c:\, and make sure there's a
line in boot.ini that says"
c:\bootsect.lnx="Linux"
That should do it.
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: how to import outlook mail into netscape mail?
Date: 9 Jun 2000 11:39:52 GMT
Jonas Bieri <[EMAIL PROTECTED]> wrote:
: does anybody know if and how i can import outlook express 5.0 mails into
Mmm .. maybe convert them into standard mail format and then just let
netscape read them as normal?
: linux netscape messenger 4.73?
I suspect that your question should be to the outlook newsgroups "how
can I export mail in standard mail folder format"? I have no idea what
outlooks native format is. If it's text you may have some luck with
"formail" on unix to reformat it properly. If it's a binary database,
you need to attack it with a chisel and forceps.
Peter
------------------------------
From: Ramin Sina <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Anyone connecting linux with psn.net?
Date: 09 Jun 2000 07:55:32 EDT
Reply-To: [EMAIL PROTECTED]
I asked psn.net sales representative if they support linux. They said
yes. I got very excited and in disbelief asked again "you do?" They
again said "yes we do". I signed up immediately and then they
transferrerd me to the techsupport for installation. The tech support on
the other hand was emphatic that they don't support linux but can only
give me the DNS number and access numbers to dialup.
Anyway, Does anyone know what /etc/ppp files I need and what must they
contain (eg. chatscripts, etc.) The techsupport won't help me with that.
Thanks,
Ramin Sina
Red Hat 6.2
------------------------------
From: Stephen Cornell <[EMAIL PROTECTED]>
Subject: Re: I want to switch to Linux - Please Help
Date: 09 Jun 2000 13:00:00 +0100
"Kent A. Signorini" <[EMAIL PROTECTED]> writes:
> To build the kernel I do a: make xconfig, make dep, make
> clean then reboot. Then make modules, make modules_install, then reboot.
> All this is done in /usr/src/linux which is symlinked to
> /usr/src/linux-2.2.15 which has the patched source tree in it.
If you followed this procedure, then you have not, in fact, made or
installed your new kernel. After the made dep, there should be a
`make zimage' or `make bzimage', you should move the kernel image (and
also the System.map file) to the /boot directory, add an appropriate
new entry in /etc/lilo.conf, and run /sbin/lilo, so that the boot
loader knows where to find your kernel. There is a detailed procedure
for building a custom kernel in the Red Hat installation guide -
follow it to the letter.
> a good FTP client (I'm sure there is no shortage of these)
Astonishingly, no-one has mentioned gftp, which has the excellent
feature of being able to use SSH rather than FTP. If you have Gnome,
you have gftp.
> 11) Is RH 6.2 a good choice for a distribution? I've looked at Corel Linux
> running at a store and it's a very clean desktop compared to the RH 6.2
> installed one but I think it's based on Debian and I'm not sure if RH is
> better or what.
I've performed two RH 6.2 installations, and my experience is that
it's rather well integrated and fully featured, as well as somewhat
more secure than previous Red Hat releases, but unfortunately there
are also a couple of bugs. It's relatively easy to administer,
though, and there's lots of useful software in the `powertools'
directory. Debian is probably a better distro, but is more suitable
to the more experienced *nix hack; Corel is, I understand, a
dumbed-down, prettier, and buggier version of Debian.
--
Stephen Cornell [EMAIL PROTECTED] Tel/fax +44-1223-336644
University of Cambridge, Zoology Department, Downing Street, CAMBRIDGE CB2 3EJ
------------------------------
From: "Andrew Shiue" <[EMAIL PROTECTED]>
Subject: how to reinstall win98 without affecting lilo?
Date: Fri, 9 Jun 2000 03:38:57 -0400
Hi,
I have both linux and win98 in my computer and want to reinstall win98. But
if I format the c: , my lilo will be erased, too. How can I make the lilo
back or install win98 without killing the lilo?
Another question, how can I create the rescue disk of linux?
My linux is red hat 6.2.
Thanks for help,
--Andy
------------------------------
** 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
******************************