Linux-Misc Digest #934, Volume #27               Thu, 24 May 01 09:13:01 EDT

Contents:
  HELP! Can't install RH7.1 (Anaconda bombed) (kalimuthu pothi)
  resizing my ext2 partition ("Richard Wallis")
  How to deal and interpret time information ? (WONG SAI-KEE)
  Re: linux password (Michael Heiming)
  Re: SuSE 7.0 and PHP (Michael Heiming)
  Re: RedHat 7.1 PS2 mouse problems...
  Riva 128 with Mandrake 8.0 probs ("Neil Rayment")
  Re: How to deal and interpret time information ? (Markku Kolkka)
  Re: automount with cd's? ("Glitch")
  Re: icq + sms + linux ("Glitch")
  Re: LILO limit still there? (Dave Uhring)
  Re: LILO limit still there? ("Glitch")
  Re: fdisk help please (M. Buchenrieder)
  Re: resizing my ext2 partition ("Peet Grobler")
  Re: Riva 128 with Mandrake 8.0 probs (Lack Mr G M)
  Re: resizing my ext2 partition ("Peter T. Breuer")
  Re: can't compile qt-2.3.0 with -xft. Why? (Joerg Stadermann)
  stripping leading / (Charles Wilkins)
  Re: linux freezin (Jacob Kristensen)
  Re: LILO and Operating System Missing (Yvan Loranger)
  Re: resizing my ext2 partition (Bob Tennent)
  Re: XWindows desktop not fully coming up. Please help? (Yvan Loranger)
  Re: stripping leading / (Stefano Ghirlanda)

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

From: [EMAIL PROTECTED] (kalimuthu pothi)
Crossposted-To: comp.os.linux.setup
Subject: HELP! Can't install RH7.1 (Anaconda bombed)
Date: 24 May 2001 00:48:11 -0700

Benjamin Han <[EMAIL PROTECTED]> wrote in message 
news:<[EMAIL PROTECTED]>...
> I'm trying a fresh install on my new Compaq Presario 5000 series PC
> 
> AMD 1GHz
> 384MB PC100 RAM
> Voodoo 5 AGP graphics card
> Intel eepro 10/100 ethernet
> 30GB UDMA hard drive
> 
> I booted my RH7.1 CD and no matter what option I chose (graphical, text,
> expert install) they all bombed at Anaconda. The error message looks like
> this:
> 
> --- error msg ---
> Runnin anaconda - please wait...
> install exited abnormally -- received signal 11
> sending termination signals...done
> sending kill signals...done
> disabling swap...
> unmounting filesystems...
>   /proc/bus/usb
>   /mnt/runtime
>   /mnt/source umount failed ()
>   /dev/pts
>   /proc
> You may safely reboot your system
> --- error msg ---
> 
> I've successfully installed W2k on this machine (plus the Windows ME
> coming with the box), so hardware problems should've been ruled out.
> 
> Any suggestions on what to do next? Any 'alternative' install method that
> doesn't require running Anaconda? (I read from RH support website RH7.0
> used to have various anaconda problems - but it's RH7.1 I'm trying to
> install)
> 
> Thank you SO MUCH!
> 
> Ben

Please try your question again in Redhat website.

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

From: "Richard Wallis" <[EMAIL PROTECTED]>
Subject: resizing my ext2 partition
Date: Thu, 24 May 2001 09:32:55 +0100

Hi there, I have ran out of disk space and tried to transfer my linux
partition over onto another bigger hard disk using ghost, but afterwards i
found that it had just copied the same partition size over and not extended
it to the new size of the hard disk, is there any way of doing this without
causing linux not to boot once it's done.

Thanks in advance


Richard Wallis




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

From: WONG SAI-KEE <[EMAIL PROTECTED]>
Subject: How to deal and interpret time information ?
Date: 24 May 2001 08:43:30 GMT

I think "time" sounds so common in daily life most people doesn't need
to care it.  They interpret it as is.  

During installation, it asks whether you want GMT or ....  And in email,
we read:

Wed, 23 May 2001 11:48:32 +0800 (HKT)
Wed, 23 May 2001 11:53:32 +0800 (CST)

But really don't know how to interpret it.  What does the 11:48:32
mean related to the clock in the system which is reading the email ?
Its even complicated when I checked the system date, it says:

Thu May 24 23:15:42 CST 2001

When I really need to face the problem is, I want to copy the files
from MS-DOS to Linux.  It seems to me it sometimes retain the date,
but sometimes use the current date and lost the creation date.  So,
I use the tar to copy it.  It retains the date info but I found 
that the date info shown in DOS was 10:55 is now turned to 18:55
in Linux.

I checked the Date/Time properties of the PC Control Panel and its
GMT+08:00 the current time is 16:00; I checked the Linux, it says
Thu May 24 16:00:57 CST 2001, it doesn't change even if I set GMT
and Hong_Kong (+8:00) from LinuxConf.

Any idea why the date differ by 8 hours ?

SK

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

Date: Thu, 24 May 2001 11:00:10 +0200
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: linux password

Jeff wrote:
> 
> hi there,
> 
> sb set the password for some of the linuxs box in the students lab, I
  ^^
> don't know

sb looks like somebody with root access, "man lilo.conf" assuming this
is
your bootloader, as you don't write!

Michael Heiming

> where to unset the password, please give  me some hints.
> the password is right after choosing linux at the boot menu  ( a
> splash picture with red hat and a menu of OS for you to choose at the
> right side)
> the password waits for some seconds then gives error message and waits
> again so whole screen is full of password input and error messages.
> 
> Jeff

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

Date: Thu, 24 May 2001 11:10:35 +0200
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: SuSE 7.0 and PHP

Mike Hammock wrote:
> 
>    Have installed SuSE 7.0 (Pro version).  Standard install appears to
> have
> installed Apache and PHP.  Doing a    'rpm -q -i apache'    says that
> apache has been installed with the  PHP4 module, so I would think that
> PHP should be available....  However, when we try to 'browse' a
> xxx.php  file, the browser tries to offer to download the file (as type
> x-httpd-php) , rather than it being 'executed' on the server.
>     We did copy the php.ini to /usr/local/lib and verified that the
> appropriate AddType commands are in httpd.conf.
>   What are we missing?

I wonder, on an SuSE 7.0 (Pro version):

rpm -q -i apache | grep PHP
additional modules mod_perl and PHP3, which allows database access to 

Tells me that there is no PHP4, even PHP3 is not contained in the apache
package.

ls -al /usr/lib/apache/libphp*
-rwxr-xr-x   1 root     root      1700800 Jul 29  2000
/usr/lib/apache/libphp3.so

Again no PHP4.

rpm -q -provides mod_php
php3
php
mod_php
mod_php3
libphp3.so              

Good luck

Michael Heiming

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

From: [EMAIL PROTECTED] ()
Subject: Re: RedHat 7.1 PS2 mouse problems...
Date: 24 May 2001 09:28:48 GMT
Reply-To: [EMAIL PROTECTED]

On Wed, 23 May 2001 09:42:54 -0500, Leonard Evens <[EMAIL PROTECTED]> wrote:
> [...]
>involving the PS/2 mouse and the PCMCIA controller on Winbook
>XL laptops.   The interesting point is that in this case, once
>pcmcia is run, it claims irq 12 and keeps it at the hardware
>level even if pcmcia is stopped.

The interesting thing is that, on my system (Toshiba Portege 3490), the
mouse doesn't work in X or gpm, it is a PS/2 style (nibble) mouse, yet the
PCMCIA interface seems to use irq 11. Listing the irqs shows no conflict for
the mouse.

The mouse did work during the installation process when installing Mandrake
8.0 but did not work afterwards. In any case, Mandrake proved to be unstable
on my system so I switched to RH 7.1 which is stable. The mouse does not
work no matter what I try.  Suggestions more than welcome!

Luckily, I seldom use the mouse as most apps have keyboard shortcuts and my
RSI gets worse when I use the mouse... :<

cheers,
eric

-- 
 ........oo...ooo..o..o.o...o.o....oooo..oo...o.....o.....ooo..o..............
Eric S Fraga, University College London, www.chemeng.ucl.ac.uk/staff/fraga.html

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

From: "Neil Rayment" <[EMAIL PROTECTED]>
Subject: Riva 128 with Mandrake 8.0 probs
Date: Thu, 24 May 2001 10:49:58 +0100

Xfree86 all looks good with Riva 128 graphics card except for the fact that
when I first login to KDE or Gnome everything has a shaded effect. If I
re-configure the graphics card with the drake control center app. then it
corrects this problem. Only thing is - when X-windows restarts (i.e. logout
and back in again) it goes back to looking shaded again.
Any ideas?????



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

From: Markku Kolkka <[EMAIL PROTECTED]>
Subject: Re: How to deal and interpret time information ?
Date: 24 May 2001 12:44:58 +0300

WONG SAI-KEE <[EMAIL PROTECTED]> writes:
> Wed, 23 May 2001 11:48:32 +0800 (HKT)
> Wed, 23 May 2001 11:53:32 +0800 (CST)
> 
> But really don't know how to interpret it.

The email timestamps are created by the sender, and show time in the
sender's timezone

> What does the 11:48:32
> mean related to the clock in the system which is reading the email ?

That depends on your local timezone. If you are in UTC+8 zone, then
it's the same.

> When I really need to face the problem is, I want to copy the files
> from MS-DOS to Linux.  It seems to me it sometimes retain the date,
> but sometimes use the current date and lost the creation date.  So,
> I use the tar to copy it.  It retains the date info but I found 
> that the date info shown in DOS was 10:55 is now turned to 18:55
> in Linux.

I guess Linux tar assumes the file times are in UTC, but DOS tar
writes local timestamps.

-- 
        Markku Kolkka
        [EMAIL PROTECTED]

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

From: "Glitch" <[EMAIL PROTECTED]>
Subject: Re: automount with cd's?
Date: Thu, 24 May 2001 06:14:29 -0400

In article <[EMAIL PROTECTED]>, "Florian Schmidt"
<[EMAIL PROTECTED]> wrote:

> hi..
> 
> i ws wondering, if there is a way to reach the following:
> 
> whenever i open the directory /cdrom, where i now manually mount my
> cdrom as root everytime i need it, i would like the cdrom to be
> automounted. i browsed the mountd and automount man-pages, but i just
> didn't get it..
> 

you can use the 'auto' option to and put it in your /etc/fstab file so
that the cdrom is mounted automaticaly at boot time.

if u want it mounted automatically whenever u put a new CD in the drive i
don't know if that is possible let alone if a program is available for
that

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

From: "Glitch" <[EMAIL PROTECTED]>
Subject: Re: icq + sms + linux
Date: Thu, 24 May 2001 06:15:50 -0400

In article <[EMAIL PROTECTED]>, "Andelko Horvat"
<[EMAIL PROTECTED]> wrote:

> Is there ICQ client for linux that supports sending SMS?
> 
> Thanks
> 

i read something vaguely similar to this topic in a program description
on freshmeat a few days ago.  Try doing searches and see what comes up.

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

From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: LILO limit still there?
Date: Thu, 24 May 2001 05:11:05 -0500

Vladimir Florinski wrote:

> I was installing RH7.1 for someone who has some version of Windows (60GB
> disk) and the installer would not go past the partitioning step, saying /
> is above 1024 cylinders, etc., you know the routine. My understanding is
> that in LILO this limit was lifted quite a while ago. Is Red Hat so far
> behind the times? Or is there another reason?
> 
> 
> 
It only warns you about the 1024 cylinder thingie and recommends that you 
make a boot floppy.  Unless the BIOS is horribly misconfigured.  My RH-7.1 
/boot partition starts 33GB in on a 45GB HDD.


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

From: "Glitch" <[EMAIL PROTECTED]>
Subject: Re: LILO limit still there?
Date: Thu, 24 May 2001 06:20:00 -0400

In article <[EMAIL PROTECTED]>,
"Vladimir Florinski" <[EMAIL PROTECTED]> wrote:

> I was installing RH7.1 for someone who has some version of Windows (60GB
> disk) and the installer would not go past the partitioning step, saying
> / is above 1024 cylinders, etc., you know the routine. My understanding
> is that in LILO this limit was lifted quite a while ago. Is Red Hat so
> far behind the times? Or is there another reason?
> 


i don't think *any* distro is including the version of LILO that has this
fixed but I could be wrong.  Find a way to install linux and then download a
new version of LILO....or download LILO, compile it on a different PC and
bring it over possibly to the PC u are installing Linux on now.

why not rearrange the partitions so that a small 10-15 meg partition is
at the beginning of the drive and can be used as a /boot partition for
linux?

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

Crossposted-To: alt.os.linux.mandrake,comp.os.linux
From: [EMAIL PROTECTED] (M. Buchenrieder)
Subject: Re: fdisk help please
Date: Thu, 24 May 2001 06:27:23 GMT

Dale Winters <[EMAIL PROTECTED]> writes:

>Am trying to change the partition Id on one of my linux part. I tried
>using sfdisk with...... /sbin/sfdisk -c /dev/hda2 85 [83] --force....
>85 is the Id it now has and I want to change it to 83. I tried lots of
>other combo's but this came the closest to working.I get an error msg
>something like "no partition 85".

[...]

Perhaps you should have done what the manpage told you?

sfdisk --change-id /dev/hda 2 83


Michael
-- 
Michael Buchenrieder * [EMAIL PROTECTED] * http://www.muc.de/~mibu
          Lumber Cartel Unit #456 (TINLC) & Official Netscum
    Note: If you want me to send you email, don't munge your address.

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

From: "Peet Grobler" <peetgr at absa.co.za>
Subject: Re: resizing my ext2 partition
Date: Thu, 24 May 2001 13:07:45 +0200

Mount the new device somewhere (/mnt/new or similar).
Create a filesystem on it (ext2 = mke2fs, reiserfs=mkreiserfs IIRC)
cp -R /<source> to /mnt/new
umount /mnt/new
mount <device> /<wherever>

If this works, boot into single mode and do the following:
put an entry in /etc/fstab to mount this at boot time.
umount the device if it's mounted
rm -rf /<source> -> Whatever you copied to the new disk
reboot

Should work.

Richard Wallis wrote in message ...
>Hi there, I have ran out of disk space and tried to transfer my linux
>partition over onto another bigger hard disk using ghost, but afterwards i
>found that it had just copied the same partition size over and not extended
>it to the new size of the hard disk, is there any way of doing this without
>causing linux not to boot once it's done.
>
>Thanks in advance
>
>
>Richard Wallis
>
>
>



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

From: [EMAIL PROTECTED] (Lack Mr G M)
Subject: Re: Riva 128 with Mandrake 8.0 probs
Date: Thu, 24 May 2001 11:45:50 BST

In article <9eila4$2m3$[EMAIL PROTECTED]>, "Neil Rayment" 
<[EMAIL PROTECTED]> writes:
|>
|> Xfree86 all looks good with Riva 128 graphics card except for the fact that
|> when I first login to KDE or Gnome everything has a shaded effect. If I
|> re-configure the graphics card with the drake control center app. then it
|> corrects this problem. Only thing is - when X-windows restarts (i.e. logout
|> and back in again) it goes back to looking shaded again.
|> Any ideas?????

   It is related to the Aurora use of a 16-bit framebuffer (the bit
which shows you the progress of the boot process).

   If you change your boot options to use an 8-bit frame buffer
(vga=0x305) you should be Ok, but then the Aurora gets washed out.  So
you can disable that by moving /lib/aurora/functions to
/lib/aurora/functions.ootw (I haven't found any configurable way to turn
it off). 



-- 
========= Gordon Lack =============== [EMAIL PROTECTED]  ============
This message *may* reflect my personal opinion.  It is *not* intended
to reflect those of my employer, or anyone else.

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: resizing my ext2 partition
Date: Thu, 24 May 2001 13:11:05 +0200

Richard Wallis <[EMAIL PROTECTED]> wrote:
> Hi there, I have ran out of disk space and tried to transfer my linux
> partition over onto another bigger hard disk using ghost, but afterwards i
> found that it had just copied the same partition size over and not extended
> it to the new size of the hard disk, is there any way of doing this without
> causing linux not to boot once it's done.

There are thosands of ways. What was wrong with "cp"?

Peter

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

From: Joerg Stadermann <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.setup
Subject: Re: can't compile qt-2.3.0 with -xft. Why?
Date: Thu, 24 May 2001 13:45:24 +0200

On Wednesday 23 May 2001 19:51 J�rgen Diez wrote:

> "Nils O. Sel�sdal" <[EMAIL PROTECTED]> wrote in
> <[EMAIL PROTECTED]>:
> 
> here's a part of the logfile which shows the error output:
> 
> make uic
> make[5]: Entering directory `/usr/local/qt-2.3.0/tools/designer'
                                                ^^^^^^^^^^^^^^^^^
                                                 qt-2.3.0 installation 
> if [ -d uic ]; then cd uic ; make; fi
> make[6]: Entering directory `/usr/local/qt-2.3.0/tools/designer/uic'
> g++ -L/usr/local/qt/lib -Wl,-rpath,/usr/local/qt/lib   -o
> /usr/local/qt/bin/uic uic.o ../shared/widgetdatabase.o
> ../shared/domtool.o
> ../integration/kdevelop/kdewidgets.o   -lqutil -L../lib -lqt
> /usr/local/qt/lib/libqt.so: undefined reference to `FT_Init_FreeType'
^^^^^^^^^^^^^^^^^^^^^^^
old installation? symlink?

Are you sure libqt.so is really pointing to libqt.so.2.3.0?
Have you sett $QTDIR to /usr/local/qt-2.3.0?

HTH,

Joerg

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

From: [EMAIL PROTECTED] (Charles Wilkins)
Subject: stripping leading /
Date: Thu, 24 May 2001 12:09:34 GMT
Reply-To: [EMAIL PROTECTED]

I am looking for the most generic way to strip the leading frontslash
character from a string from within a shell script.

I know that this is easily done in bash by using this pattern matching
operator #.

example:

file="/home/user"
echo ${file#/}  

the output in bash would be:
home/user

What is the most generic way to do this for all shell scripts?

Thanks in advance for a prompt reply.
Feel free to email me direct at [EMAIL PROTECTED]

Best regards,
Charles Wilkins



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

From: Jacob Kristensen <[EMAIL PROTECTED]>
Subject: Re: linux freezin
Date: Thu, 24 May 2001 14:21:45 +0200

alik blochin wrote me a mail:
> 
> motherboard is chaintech 7AJA
> with AMD 900 Mhz
These are the answers I got when i posted on comp.os.linux.misc a while
ago with a similar problem. Read the whole story here:
http://groups.google.com/groups?hl=da&lr=&safe=off&ic=1&th=12b10df9450ccd8e,7&seekm=3AC35956.DECBED35%40dkik.dk#p
If the link dosent work click ur way thru www.dejanews.com.
Anyways this is what I suggest:
1) Check http://www.chaintech.com.tw and see if they have any linux info
- and download the latest BIOS updates.
2) New kernels have support for new hardware so try upgrading.
3) In /proc/interrupts check that no IRQ is used by two pieces of
hardware(it is possible to share an IRQ but it can sometimes cause
conflicts).
4) Try moving a PCI card to another slot.
5) Mess around with the BIOS settings.
6) Fire up emacs, type Alt-x then doctor :-)

As u can see my gues is that it is a hardware problem. However it could
be something else(someone told me that cron/anacron sometimes can be a
problem but i know nothing about it).....
BTW. Are there any signs that the computer is going towards a
freze(heavy diskactivity, slow screen updates etc.)?
BTW. Post in the NG. That whay everybody can learn and teach - not just
u and me...

Jacob
-- 
There he goes... One of Gods own prototypes.
A high-powered mutant of some kind,
never even considered for mass production.
Too weird to live, and too rare to die.

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

From: [EMAIL PROTECTED] (Yvan Loranger)
Subject: Re: LILO and Operating System Missing
Date: 24 May 2001 12:49:15 GMT
Reply-To: [EMAIL PROTECTED] (Yvan Loranger)

John in SD ([EMAIL PROTECTED]) writes:
> On Wed, 23 May 2001 09:29:23 -0500, "LRW" <[EMAIL PROTECTED]> wrote:
>>I have WinME installed on /dev/hda1, and Linux on /dev/hdb1.
>>I set up the install the first time to accidently install LILO onto /hda1
>>instead of /hdb1. No biggie, I just had to type "dos" at the LILO: prompt to
>>boot up WinME.

If you mean lilo onto hda & not hda1 then no accident, you should have done
likewise for your reinstall below.

>>However, I had to reinstall Linux, and put LILO on /hdb1 and start from
>>floppy.
>>
>>Now when I boot up w/o the floppy, after the POST I get only "LI" of "LILO:"
>>and it stalls. With the floppy in I get the whole LILO: and it boots to
>>Linux fine, but if I try to type dos, it says partition doesn't exist.
>>During setup with Disk Druid, I made no changes to the FAT partitions.

i'd reinstall lilo to hda (mbr). 
what fat partitions?

>>IF I have to reinstall WinME, it's no big deal. My WinME OS is partioned off
>>on a seperate partition from the other FAT drive, so nothing important
>>should be hurt. (Again, I didn't make any changes to the FAT drive.)
>>
>>My followup question then is if I have to reinstall WinME back onto drive a,
>>will it change Linux on the drive b at all? I'm doubting it, since I have a
>>boot floppy for it.
>>
>>And a last question, I tried to edit the lilo.conf (sp?) file that contains
>>what OS options to boot too, and while /etc (?) has it, I mounted and ls'ed
>>the floppy and there's nothing there. How can I edit it on the floppy to
>>make sure the "dos" aprtition is an option?

"and while /etc has it" I've no idea what you're talking about :(

> When you first installed to /dev/hda1, LILO should have created a backup file
> of the boot record as /boot/boot.0301.  A restore of this record may help the
> WinME partition.  I'd look at the record with "hexdump", to see if it is a
> Windows boot record.
> 
> Otherwise, the re-install of WinME may be the only option.

--
Merci........Yvan          Pour le plein air: Club Vertige
                               http://www.ncf.ca/vertige

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

From: [EMAIL PROTECTED] (Bob Tennent)
Subject: Re: resizing my ext2 partition
Date: 24 May 2001 12:32:50 GMT
Reply-To: [EMAIL PROTECTED]

On Thu, 24 May 2001 13:11:05 +0200, Peter T. Breuer wrote:
 >Richard Wallis <[EMAIL PROTECTED]> wrote:
 >> Hi there, I have ran out of disk space and tried to transfer my linux
 >> partition over onto another bigger hard disk using ghost, but afterwards i
 >> found that it had just copied the same partition size over and not extended
 >> it to the new size of the hard disk, is there any way of doing this without
 >> causing linux not to boot once it's done.
 >
 >There are thosands of ways. What was wrong with "cp"?

To be more specific, cp -a 


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

From: [EMAIL PROTECTED] (Yvan Loranger)
Subject: Re: XWindows desktop not fully coming up. Please help?
Date: 24 May 2001 13:04:23 GMT
Reply-To: [EMAIL PROTECTED] (Yvan Loranger)

"Peter T. Breuer" ([EMAIL PROTECTED]) writes:
> LRW <[EMAIL PROTECTED]> wrote:
>> The reason I asked why I asked why is because I'm confused about why
>> this box works perfectly right out of installation without a .xinitrc
>> when it sounds as though that file is necessary.
> 
> Necessary for what? Not for "working"! That file is only "necessary"
> for forcing a menu choice automatically for a xdm-mediated login -
> and even then only if it's mentioned that way in your systemwide
> initrc. Lots of factors intervene.
> 
>> And I'm running as root because I'm having to do installations of
>> packages left and right so I thought I might as well stay as root. I've
> 
> No, DON'T run as root. Use sudo.

i'm lazy, i use su or su -
 
>> been so busy getting the machine set up right that I haven't had time
>> yet to study up on user managing enough yet to create another account
> 
> This hardly requires study! That's like saying "I've been training so
> hard that I haven't studied up on how to walk to the door of the
> breakfast room". Edit /etc/passwd and give yourself an account. This
> should absolutely be step zero in the use of any machine. How can you
> possibly test any of your installations if you don't have any users
> to test them?

even easier - use the adduser command

--
Merci........Yvan          Pour le plein air: Club Vertige
                               http://www.ncf.ca/vertige

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

From: Stefano Ghirlanda <[EMAIL PROTECTED]>
Subject: Re: stripping leading /
Date: 24 May 2001 15:08:50 +0200

[EMAIL PROTECTED] (Charles Wilkins) writes:

> I am looking for the most generic way to strip the leading frontslash
> character from a string from within a shell script.

If by 'most general' you mean 'understood by as many shells as
possible' you may be safer in using some standard external program,
such as cut:

$ FILE="/my/file"
$ echo ${FILE} | cut -c 2-
my/file

or even better sed that does the right thing when / is not there:

$ echo ${FILE} | sed -e 's/^\///'

-- 
Stefano - Hodie nono Kalendas Iunias MMI est

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


** 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.misc.

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