Linux-Setup Digest #757, Volume #20 Mon, 5 Mar 01 09:13:09 EST
Contents:
Re: how to setup DDNS? ("Dave Addison")
Re: Mandrake 7.0 "cannot find screen" help!!! ("Robert Harrell")
when installing the linux, does it load the source code or not?? ("v.nagasrinivas")
Re: multiboot help ("Eric")
XFree86 4.0.2 Troubles!!! (Robert Hofmann)
fips ("chris")
Re: help:Could not determine local IP address (Steve Martin)
Re: multiboot help ("B. Jogia")
Re: multiboot help (Howard Brazee)
Re: setserial faq ? (Steve Martin)
Date in a filename (Keith O'Connell)
Re: newbie questions ("Tim Forshaw")
Re: fips ("Eric")
Re: Which Linux for a 486/4MB (Mitch Crane)
Re: Which Linux for a 486/4MB ("ne...")
Re: when installing the linux, does it load the source code or not?? (John Beardmore)
Re: SuSE 7.1 kernel compile docs incomplete? (Mike Perry)
Re: Date in a filename ("Karl W. Schaefer")
Re: Something to chew on.. (A. van Werven)
Re: Date in a filename (Michael Heiming)
----------------------------------------------------------------------------
From: "Dave Addison" <[EMAIL PROTECTED]>
Crossposted-To:
alt.comp.linux,comp.os.linux,comp.os.linux.admin,comp.os.linux.networking,comp.os.linux.questions,comp.os.linux.redhat
Subject: Re: how to setup DDNS?
Date: Mon, 5 Mar 2001 12:08:29 -0000
BIND9 and DHCP3 (still in beta but stable) from www.isc.org will handle
dynamic DNS without difficulties for Windows clients. I'v ebeen running both
for 4 months under Redhat 6.2. All the necessary information for
configuration is in the man pages for the .conf files
tin <[EMAIL PROTECTED]> wrote in message
news:3aa0098c$[EMAIL PROTECTED]...
> may i know how to setup DDNS in my office bind server?
> I using RH 7.0
>
> i want to update my win2k and win98 client IP
>
> i want to dynamic update from my home computer
>
> thx
>
>
>
------------------------------
From: "Robert Harrell" <[EMAIL PROTECTED]>
Crossposted-To: alt.linux,comp.os.linux.help,alt.os.linux.mandrake
Subject: Re: Mandrake 7.0 "cannot find screen" help!!!
Date: Mon, 5 Mar 2001 23:29:13 +1100
Yes with tnt gforce2mx card I need to upgrade the xfree86 to 4.0.2
"DOKool" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> DrakX installation always goes well up to this point... then i have to
> pick out a monitor. Every combination of one of the generic monitor
> types w/ the ATI All In Wonder card ends up w/ DrakX not finding the
> damn screen. anyone else have this problem?
>
------------------------------
From: [EMAIL PROTECTED] ("v.nagasrinivas")
Subject: when installing the linux, does it load the source code or not??
Date: 5 Mar 2001 13:32:46 +0100
This is a multi-part message in MIME format.
=======_NextPart_000_003D_01C0A59F.0624EC00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi ,
I installed Redhat 6.3. When i am trying to locate the =
source code( /usr/src)
Its not available.. Does normally the installation by default load the =
source code or not??
If not how to get source code ( because i want to read it).
If you are telling a solution , through ftp download from available =
site.,
how to get whole the directories..( because its easy to download a =
single file..)
Any easiest way...
thanks,
Srinivas.
=20
v.naga srinivas
YVL Software Consultancy
B4,Q1,6th floor,Hi-Tec city,
CyberTowers, Madhapur,
Hyderabad - 500033
Andhra Pradesh
INDIA
phone : 091-040-3110200(off)
091-040-3810616(res)
visit me: www.geocities.com/cheluvi
=======_NextPart_000_003D_01C0A59F.0624EC00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2> &nbs=
p; I=20
installed Redhat 6.3. When i am trying to locate the source code(=20
/usr/src)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Its not available.. Does normally the =
installation=20
by default load the source code or not??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If not how to get source code ( because =
i want to=20
read it).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If you are telling a solution , through =
ftp=20
download from available site.,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>how to get whole the directories..( =
because its=20
easy to download a single file..)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Any easiest way...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>thanks,<BR>Srinivas.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>v.naga srinivas<BR>YVL Software=20
Consultancy<BR>B4,Q1,6th floor,Hi-Tec city,<BR>CyberTowers,=20
Madhapur,<BR>Hyderabad - 500033<BR>Andhra Pradesh<BR>INDIA<BR>phone :=20
091-040-3110200(off)<BR> &=
nbsp; =20
091-040-3810616(res)<BR>visit me: <A=20
href=3D"http://www.geocities.com/cheluvi">www.geocities.com/cheluvi</A></=
FONT></DIV></BODY></HTML>
=======_NextPart_000_003D_01C0A59F.0624EC00==
--
Posted from ns.stph.net [196.12.32.2]
via Mailgate.ORG Server - http://www.Mailgate.ORG
------------------------------
From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: multiboot help
Date: Mon, 5 Mar 2001 13:42:23 +0100
MY GOD,
don't crosspost to so many groups!
> For college I have been given a simple assignment to set up a multi boot
> system running. MS-dos 6.22, windows 98, windows NT server 4.0 and any
> version of linux (i have redhat 5.2 , 7.0 and mandrake 7.2).
Far less simple then you may think.
That is if you want DOS and windows to be on diffrenet partitions.
You then can only succeed, if you are allowed to toggle partition ID's, and
most bootloaders cannot do that.
If DOS can share C: with windows, it gets easier.
> I have tried several attempts at getting the boot to work, so far I have
had
> little luck as red hat 7.0 and mandrake 7.2 will not install on my
computer.
Why not?
> When installing Red hat 5.2 as the last OS my computer fails to boot NT
and
> gives a error NTKRNL.EXE missing or corrupted.
Nice, heh.
NT chooses hda1 as it's C: drive too?
(Is it visible from NT?)
> and when installing NT last
> it can not overcome the lilo boot from the MBR.
>
> when I partition my HDD
> HDA1 is dos partition
> HDA2 is linux root
> HDA3 is linux swap
> HDA5 is NTFS
list `fdisk -l /dev/hda` that's more useful
> i have also found some instructions on the internet and have found that
they
> do not work with Red hat 7.0. The instructions are;
Sure they do, otherwise you found bad instructions
> Partition the HDD correctly. Install dos, win9x, nt. once nt is
successfully
> installed, install linux and make a linux boot disk.
the best order indeed.
install lilo on hda2 though. (Not in the MBR)
and make a bootfloppy
Now boot linux.
`dd if=/dev/hda of=/boot/MBR_hda bs=512 count=1`
(DO NOT FORGET THIS! It will be your way back if something fails)
adjust lilo.conf to add the other OS's
(Add this:
other=/dev/hda1
label=win98
other=/dev/hda5
label=NT
No rerun `/sbin/lilo -v`
And reboot
boot to DOS, and run fdisk \MBR
and make linux the active partition.
reboot again
choose win98 at the LILO prompt
If you now get the NT loader, use that to boot NT and win98
if not, the choice NT will bring up the NT loader.
If something fails, boot to linux again, and
`dd if=/boot/MBR_hda of=/dev/hda bs=512 count=1`
And post back here.
Eric
------------------------------
From: Robert Hofmann <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.hardware,comp.os.linux.misc,comp.os.linux.x,de.comp.os.linux,de.comp.os.linux.hardware,de.comp.os.linux.misc
Subject: XFree86 4.0.2 Troubles!!!
Date: Mon, 05 Mar 2001 13:47:20 +0100
Reply-To: Robert Hofmann <[EMAIL PROTECTED]>
Hi all,
maybe somebody can help me configuring my Linux system (SuSE 7.1 prof.). I am
not able to get a usable resolution on my two systems. Using XF336, all works.
My monitor supports 30-100kHz, 50-170Hz.
On my Compaq AP200 at work (128MB, ELSA Gloria Synergy 8MB), using XF336, I
have 1280x1024x24bit in ~85kHz. Trying it with XF402, I only get something
around 54Hz. It is not possible to work with this! Any idea how to tune XF402
to have 1280x1024x24bit in a resonable sync (somewere >75Hz)?
On my LapTop (ASUS F7400, 160MB, ATI RAGE PRO LT 8MB), i have the same problem
whan trying it with an external monitor (using Win2k, I have 1280x1024x24bit
in 75Hz.). The horizontal frequency is very very poor. Simply not usable.
Well, I am, lets say, a novice in configuring XF, so maybe it is just to my
poor know-how.
Could anybody please help me? Any hint/help is very welcome!
Kind regards,
Robert
------------------------------
From: "chris" <[EMAIL PROTECTED]>
Subject: fips
Date: Mon, 5 Mar 2001 20:48:12 +0800
hi
does anyone know what this means.
i was trying to partition using fips ..when checking root sector i get
..."partition table inconsistency" then i get "file errors.txt not found no
verbose messages available" then i get "partition table adapted" then
finally i get "last cylinder is not free"...
cheers chris.
------------------------------
From: Steve Martin <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.misc,comp.os.linux.networking,alt.linux
Subject: Re: help:Could not determine local IP address
Date: Mon, 05 Mar 2001 07:58:10 -0500
Dean Thompson wrote:
> Can I ask a silly question. I noticed that in your options.srv file you
> specify a IP address of 192.168.0.25. Is this the address you wish to
> allocate to your own local machine, because if you are dialing a ISP, then
> surely it would be giving you the IP address rather than you specifiying it.
>
> If you were specifying it, I would have though that it would have been a
> number not in the class C range.
...and, in any case, no ISP will allocate an IP address in the
192.168.0 subnet, as that falls in the range of addresses
reserved for networks not connected to the Internet.
------------------------------
From: "B. Jogia" <[EMAIL PROTECTED]>
Subject: Re: multiboot help
Date: Mon, 5 Mar 2001 13:53:28 +0100
Crossposted-To:
aus.computers.linux,comp.os.ms-windows.nt,comp.os.ms-windows.nt.setup,comp.os.ms-windows.nt.setup.hardware,comp.os.ms-windows.nt.setup.misc,microsoft.public.windowsnt,microsoft.public.windowsnt.setup
Hi Alex,
Try the following article...
http://www.linuxdoc.org/LDP/LG/issue36/larriera.html
Sonny
"Alex Zaslavsky" <[EMAIL PROTECTED]> wrote in message
news:3YGo6.62963$[EMAIL PROTECTED]...
> Thanks
>
> But is it possible to do it through NT boot manager or LILO??
>
>
> "Graeme Cooper" <[EMAIL PROTECTED]> wrote in message
> news:3aa33078$0$25509$[EMAIL PROTECTED]...
> > There are two boot managers that can cope with this -- OS/2 boot manager
> > (max 4 operating systems) and partition magic boot manager -- I don't
know
> > the limit. These have the smarts to trick each OS into thinking its on
its
> > own.
> >
> > Coops
> >
> > Alex Zaslavsky <[EMAIL PROTECTED]> wrote in message
> > news:j9Fo6.62662$[EMAIL PROTECTED]...
> > > For college I have been given a simple assignment to set up a multi
boot
> > > system running. MS-dos 6.22, windows 98, windows NT server 4.0 and any
> > > version of linux (i have redhat 5.2 , 7.0 and mandrake 7.2).
> > >
> > > I have tried several attempts at getting the boot to work, so far I
have
> > had
> > > little luck as red hat 7.0 and mandrake 7.2 will not install on my
> > computer.
> > >
> > > When installing Red hat 5.2 as the last OS my computer fails to boot
NT
> > and
> > > gives a error NTKRNL.EXE missing or corrupted. and when installing NT
> last
> > > it can not overcome the lilo boot from the MBR.
> > >
> > > when I partition my HDD
> > > HDA1 is dos partition
> > > HDA2 is linux root
> > > HDA3 is linux swap
> > > HDA5 is NTFS
> > >
> > > i have also found some instructions on the internet and have found
that
> > they
> > > do not work with Red hat 7.0. The instructions are;
> > >
> > > Partition the HDD correctly. Install dos, win9x, nt. once nt is
> > successfully
> > > installed, install linux and make a linux boot disk.
> > >
> > > boot linux and mount a floppy. Assume /mnt/floppy is mount point.
> > >
> > > using dd if=/dev/had2 of=/mnt/floppy/bootsect.lnx bs=512 count=1
> > >
> > > (if is the actual device name for the root file system)
> > >
> > > shutdown linux and boot dos/nt
> > >
> > > copy bootsect.lnx to c:
> > >
> > > edit c:\boot.ini ( in section OPERATING SYSTEMS add line
> > > C:\BOOTSECT.LNX="LINUX") this position of this line, relative to the
> > others
> > > in this section, determines the position on the boot menu.
> > >
> > > Save file and exit, restart and now your computer should have linux in
> > boot
> > > menu.
> > >
> > > Thanks in Advance
> > >
> > >
> > > Alex Zaslavsky
> > >
> > >
> >
> >
>
>
------------------------------
Date: Mon, 05 Mar 2001 05:56:43 -0700
From: Howard Brazee <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To:
aus.computers.linux,comp.os.ms-windows.nt.setup.hardware,comp.os.ms-windows.nt.setup.misc,microsoft.public.windowsnt.setup
Subject: Re: multiboot help
Alex Zaslavsky wrote:
> Thanks
>
> But is it possible to do it through NT boot manager or LILO??
I have read of people doing this. There are quite a few Web pages describing
how to do dual and multi boot. Try changing your search key-words.
I can't cross post to comp.os.ms-windows.nt nor comp.os.ms-windows.nt.setup nor
microsoft.public.windowsnt
------------------------------
From: Steve Martin <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: setserial faq ?
Date: Mon, 05 Mar 2001 08:01:39 -0500
[EMAIL PROTECTED] wrote:
>
> Does anyone know about a 'setserial' FAQ ? Most documents I've found
> (modem, serial howto's) don't speak a lot of the init.d/serial
> configuration method...
>
> Any source of information welcome !
How about "man setserial"?
Seriously, that's the only doc I've ever found on that command.
Take a look also in the files in the /etc/rc.d directory
with "grep" and find where rc.serial is being invoked.
Take note of which directory it is expected to live in;
it varies from distro to distro.
------------------------------
From: Keith O'Connell <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Date in a filename
Date: Mon, 05 Mar 2001 12:55:51 GMT
Hi,
I am teaching myself shell scripts at the moment (starting small)
I am trying to write a script to run daily to backup some key
directories on two machines and store them in a backup directory. I want
to be able to store a number of backup files for each machine. Ideally I
want to incorporate the date in the filename, in the form:
machineA_20010303.tar
machineB_20010303.tar
machineA_20010305.tar
machineB_20010305.tar
Can I (and if so how) use the current date in a script, in a file name
so it updates on each occasion it is run.
...or is there a better way to sequence tar files
Keith
--
========================================================================
[EMAIL PROTECTED] (Keith O'Connell)
========================================================================
------------------------------
From: "Tim Forshaw" <[EMAIL PROTECTED]>
Crossposted-To: aus.computers.linux
Subject: Re: newbie questions
Date: Tue, 6 Mar 2001 00:08:27 +1100
I've installed Mandrake 7.2 from the APC PocketBook on several machines - no
probs at all. I don't think that that is where this problem is hiding.
tim
"Ari" <[EMAIL PROTECTED]> wrote in message
news:3aa36f76$0$[EMAIL PROTECTED]...
> Have you tried the mandrake cdrom boot/install on another computer? If
> you're using the mandrake 7.2 bootable installation cdrom from the linux
> pocketbook then I'd say that's the problem. I've had the same trouble.
> The Mandrake 7.2 installation cdrom was produced even more poorly than the
> otehr cdroms in the pocketbook set this time around. I think they've
> learned their lesson, and will do better next time, but until then you
have
> to contact the company and have them send you out another cdrom.
>
> Ari
>
>
> "Alex Zaslavsky" <[EMAIL PROTECTED]> wrote in message
> news:OvFo6.62692$[EMAIL PROTECTED]...
> > sorry
> >
> > i forgot to mention
> >
> > it is a ide cd writer set to slave on the primary controler and the HDD
is
> a
> > 20gb seagate
> >
> > "omitted" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > >a) when booting from the cd-rom it shows that it is capable of seeing
> the
> > > >fdd, it hangs for a second then boots the hdd. The Bios is set to
boot
> > off
> > > >cdrom (the cd rom is a Sony 928e CD WRITER)
> > >
> > > have you been able to boot from other cdroms? perhaps your cdrom (or
> scsi
> > > card) does not support this?
> > >
> > > >b) when booting from dos and using autorun I get a read error from
the
> > linux
> > > >cd (tried the cd on another system worked without any problems).
> > >
> > > without the specific error, it's near impossible for anyone to fix
this.
> > >
> > > >2. When Installing mandrake 7.2 it will not mount the cd rom when
> running
> > > >install or when using linux.
> > >
> > > what exact command are you trying, and what are the errors
encountered?
> > > is it scsi/ide? if scsi do you know the channel/id/lun? if ide then
> > > do you know which controller it's on, and if it's master or slave?
> > >
> > > try to be more specific...
> > >
> > > m.
> > > --
> > > ._ ._ ._ ._
> > > _.-._)`\_.-._)`\_.-._)`\_.-._)`\_.-._
> > >
> >
> >
>
>
------------------------------
From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: fips
Date: Mon, 5 Mar 2001 14:11:03 +0100
> does anyone know what this means.
> i was trying to partition using fips ..when checking root sector i get
> ..."partition table inconsistency" then i get "file errors.txt not found
no
> verbose messages available" then i get "partition table adapted" then
> finally i get "last cylinder is not free"...
>
Sounds like a bad partition table to me,
but unless you show it to me, I can't help you with it.
Eric
------------------------------
From: [EMAIL PROTECTED] (Mitch Crane)
Subject: Re: Which Linux for a 486/4MB
Date: 5 Mar 2001 13:10:18 GMT
Thanks for the info. I'm not sure of the HD size in that box. I think it's
around 220MB. The last time I installed Linux on one of these I used
floppies DLed from GEnie on a 2400bps modem. :-)
I hope I have room on the HD. I shouldn't need to install too much. I was
thinking of mainly using the machine for sharing my internet connection.
I'm also thinking about turning the machine into a glorified caller ID
system. I can do the application developement on another system, though.
John Sage <[EMAIL PROTECTED]> wrote in
<[EMAIL PROTECTED]>:
>Mitch:
>
>I have Red Hat 5.2 running on an 80386-20 with 8mb ram and a 320mb hdd
>
>It is slow, but it certainly works; you are going to forego X entirely
>and go with a command-line interface, but then, that's *real*
>Linux anyway, isn't it ;-)
>
>With a hdd that small I needed to watch what I installed pretty closely.
>
>That can be (hdd size..) the main limitation of these old boxes.
>
>I put an ISA IDE card in it some time ago, so I've got the hdd and
>an oldish Toshiba CD-ROM in it.
>
>This box of mine is networked out to my firewall.
>
>I surf using lynx, and it works just fine!
>
>- John
------------------------------
From: "ne..." <[EMAIL PROTECTED]>
Subject: Re: Which Linux for a 486/4MB
Date: Mon, 05 Mar 2001 13:23:09 GMT
On Mar 5, 2001 at 02:14, Mitch Crane eloquently wrote:
>I've got an old 386-40 a friend bought for $5 and gave to me. I'd like to
>install Linux on it, but I don't know which distribution to get. This
>machine has no CD-ROM drive, but I do have an ISA Ethernet card I can throw
>in there if I can do some sort of FTP install.
Olde versions of Slackware.
--
Registered Linux User # 125653 (http://counter.li.org)
When there is an old maid in the house, a watch dog is unnecessary.
-- Balzac
8:20am up 28 days, 10:54, 8 users, load average: 2.60, 2.57, 2.49
------------------------------
From: John Beardmore <[EMAIL PROTECTED]>
Subject: Re: when installing the linux, does it load the source code or not??
Date: Mon, 5 Mar 2001 13:47:38 +0000
In article <004001c0a570$f1f9e420$0900a8c0@srinivas>, v.nagasrinivas
<[EMAIL PROTECTED]> writes
>Hi ,
>����������� I installed Redhat 6.3.
Was there a 6.3 ? I thought they were at 6.2 then 7.0 ?
> When i am trying to locate the source
>code( /usr/src)
>Its not available.. Does normally the installation by default load the source
>code or�not??
I don't think so, but you can request it as part of a custom install and
it's probably installable from your distro CDs.
>If not how to get source code ( because i want to read it).
>If you are telling a solution , through ftp download from available site.,
>how to get whole the directories..( because its easy to download a single
>file..)
>Any easiest way...
Try http://www.kernel.org/ which should have all you need and maybe the
source for an upgrade too.
Cheers, J/.
--
John Beardmore
------------------------------
From: [EMAIL PROTECTED] (Mike Perry)
Subject: Re: SuSE 7.1 kernel compile docs incomplete?
Date: Mon, 05 Mar 2001 13:56:33 -0000
On 5 Mar 2001 00:51:21 -0500, Paul Kimoto <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>, David Efflandt wrote:
>> I picked up SuSE 7.1 since it was on sale for $20 at Best Buy and I wanted
>> to see what additional support kernel 2.4 had for my laptop (ACPI, DVD,
>> USB, IEEE 1394, etc.). The installation was very easy, but compiling a
>> new kernel was not.
>>
>> Instead of using pcmcia and sound included with kernel 2.4, SuSE
>> apparently uses the earlier pcmcia-cs-3.1.22 and separate alsa sound
>> modules (probably to maintain compatiblility with the other 2.2.18
>> kernel). But the pcmcia-cs-3.1.22 and alsa sources are not included with
>> kernel 2.4 sources (nowhere on the system, but are on the CD).
>
>(Do any distributions integrate pcmcia-cs module source into the kernel
>source?)
>
>The Hinds pcmcia-cs drivers are not (yet) obsoleted by the 2.4 kernel
>support; see http://pcmcia-cs.sourceforge.net/ftp/README-2.4 .
>
>Why do you think that the distribution is forcing you to use the pcmcia-cs
>drivers rather than the 2.4 kernel drivers? I run Debian with both 2.2.*
>(pcmcia-cs drivers) and 2.4.* (kernel drivers).
>
>--
>Paul Kimoto
>This message was originally posted on Usenet in plain text. Any images,
>hyperlinks, or the like shown here have been added without my consent,
>and may be a violation of international copyright law.
Paul-
As a matter of interest. How do you do this? I have never been able to get
pcmcia-cs to compile from sources if it finds kernel pcmcia drivers.
Admittedly, I have only tried the 2.4.0 release. I had to go through and
"scrub" the kernel pcmcia sources before pcmcia-cs (Hinds stuff) would
complete.
--
Michael Perry
[EMAIL PROTECTED]
==================
------------------------------
From: "Karl W. Schaefer" <[EMAIL PROTECTED]>
Subject: Re: Date in a filename
Date: Mon, 5 Mar 2001 08:59:33 -0500
This also works in UNIX... you need to use the ` character. Note, that is
NOT the single quote, but the like-single quote that you find on your tilde
"~" key. And within that set of delimiters, you can use any OS command - in
this case, you want to use date.
So, I will assume you are copying everything from one directory to a tar
file, your syntax would look something like this:
tar -cf mynewtar`date +\%Y\%m\%d\%H`.tar /mysavedir/*
This would yield for today (5Mar2001) a filename of mynewtar20010305.tar.
Might I further recommend that you subsequenty compress or gzip that tar
file to save some space.
hope this helps!
--
Remove the obvious between and including
the underscores, and then you'll reach me :-)
"Keith O'Connell" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi,
>
> I am teaching myself shell scripts at the moment (starting small)
>
> I am trying to write a script to run daily to backup some key
> directories on two machines and store them in a backup directory. I want
> to be able to store a number of backup files for each machine. Ideally I
> want to incorporate the date in the filename, in the form:
>
> machineA_20010303.tar
> machineB_20010303.tar
> machineA_20010305.tar
> machineB_20010305.tar
>
> Can I (and if so how) use the current date in a script, in a file name
> so it updates on each occasion it is run.
>
> ...or is there a better way to sequence tar files
>
> Keith
>
>
> --
> ------------------------------------------------------------------------
> [EMAIL PROTECTED] (Keith O'Connell)
> ------------------------------------------------------------------------
------------------------------
From: [EMAIL PROTECTED] (A. van Werven)
Crossposted-To:
alt.os.linux,alt.os.linux.mandrake,alt.os.linux.slackware,comp.os.linux.security,comp.unix.bsd.freebsd.misc,comp.unix.bsd.openbsd.misc,linux.debian.publicity,linux.redhat.misc
Subject: Re: Something to chew on..
Date: 5 Mar 2001 13:58:46 GMT
Reply-To: [EMAIL PROTECTED]
Joern Smock:
>>> 4:34pm up 82 days, 6:04, 1 user, load average: 0.00, 0.00, 0.00
>> Not a hell of a lot is going on on that box...
> maybe. maybe not. 'uptime' don't tell.
But load average does...
Alphons
--
A. van Werven http://www.liacs.nl/~avwerven
Leiden Institute of Advanced Computer Science, The Netherlands
------------------------------
Date: Mon, 05 Mar 2001 15:07:15 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: Date in a filename
Keith O'Connell wrote:
> Hi,
>
> I am teaching myself shell scripts at the moment (starting small)
>
> I am trying to write a script to run daily to backup some key
> directories on two machines and store them in a backup directory. I want
> to be able to store a number of backup files for each machine. Ideally I
> want to incorporate the date in the filename, in the form:
>
> machineA_20010303.tar
> machineB_20010303.tar
> machineA_20010305.tar
> machineB_20010305.tar
>
> Can I (and if so how) use the current date in a script, in a file name
> so it updates on each occasion it is run.
>
> ...or is there a better way to sequence tar files
>
> Keith
>
> --
> ------------------------------------------------------------------------
> [EMAIL PROTECTED] (Keith O'Connell)
> ------------------------------------------------------------------------
Hello,
should be no problem try something like:
cat /var/log/messages | grep `date +%b`| grep ippp > ppp-log.`date -I`
In a script it's often better to use it like this:
#!/bin/sh
MONTH=`date +%y%m`
tar -cvzf filename.$MONTH.tar.gz /your/data/path
man date
for more info...
Good luck
Michael Heiming
------------------------------
** 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 by posting to comp.os.linux.setup.
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-Setup Digest
******************************