Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

debian-user-digest Digest V2007 #1833

From: <debian-user-digest-request(at)lists.debian.org>
Date: Sun Jun 24 2007 - 09:25:07 EDT


Content-Type: text/plain

debian-user-digest Digest Volume 2007 : Issue 1833

Today's Topics:

  Re: scripting - cat breaking line     [ L.V.Gandhi  ]
  Re: scripting - cat breaking line     [ L.V.Gandhi  ]
  Re: help with "apt-get purge"         [ Zach  ]
  Re: scripting - cat breaking line     [ Gabriel Parrondo  ]
  Apache 2.2 rewrite rule help needed   [ Jim Seymour  ]
  Re: Sound card not working            [ Chris Lale  ]
  Re: How Can I Setup procmail to deli [ Orestes leal <orestesleal13022@cha. ]   windows compatability issues with ft [ Micha Feigin <michf@post.tau.ac.il> ]

Date: Sat, 23 Jun 2007 18:43:19 -0700
From: L.V.Gandhi <lvgandhi@gmail.com>
To: debian-user <debian-user@lists.debian.org> Subject: Re: scripting - cat breaking line Message-ID: <d559b4c0706231843q5722b32dmf1b820103e077cc7@mail.gmail.com> Content-Type: multipart/alternative;

        boundary="----=_Part_148083_7750006.1182649399807"

------=_Part_148083_7750006.1182649399807

Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 6/23/07, Wu-Kung Sun <sunwukung@gmail.com> wrote:
>
> The bash manpage says "If the substitution appears within double
> quotes, word splitting and pathname expansion are not performed on the
> results." So try "$(cat temp1)"
> -

Do you need help?X

Thanks for the reply. However result was lvgandhi@lvgvaio:~$ for line in "$(cat temp1)";do echo "20070622,$line">>temp2 ;done
lvgandhi@lvgvaio:~$ cat temp2

20070622,3IINFOTECH,3I INFOTECH LTD.,       304.00,       307.95,
302.60,       305.55,184687
3MINDIA,3M INDIA LIMITED,      1785.00,      1823.00,      1760.00,
1819.50,1464
lvgandhi@lvgvaio:~$
I think ever line breaks are not considered.
-- 
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042

------=_Part_148083_7750006.1182649399807
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 6/23/07, Wu-Kung Sun <sunwukung@gmail.com> wrote:
Do you need more help?X
The bash manpage says "If the substitution appears within double
quotes, word splitting and pathname expansion are not performed on the
results."  So try "$(cat temp1)"
-
Thanks for the reply. However result was
lvgandhi@lvgvaio:~$ for line in "$(cat temp1)";do echo "20070622,$line">>temp2 ;done
lvgandhi@lvgvaio:~$ cat temp2
20070622,3IINFOTECH,3I INFOTECH LTD.,       304.00,       307.95,       302.60,       305.55,184687
3MINDIA,3M INDIA LIMITED,      1785.00,      1823.00,      1760.00,      1819.50,1464
lvgandhi@lvgvaio:~$
I think ever line breaks are not considered.


--
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042 ------=_Part_148083_7750006.1182649399807--

Date: Sat, 23 Jun 2007 18:48:57 -0700 From: L.V.Gandhi <lvgandhi@gmail.com> To: "- Tong -" <mlist4suntong@yahoo.com> Cc: debian-user@lists.debian.org Subject: Re: scripting - cat breaking line Message-ID: <d559b4c0706231848w6a3d2952l71dc3017361828e6@mail.gmail.com> Content-Type: multipart/alternative; boundary="----=_Part_148099_9313054.1182649737018" ------=_Part_148099_9313054.1182649737018 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/23/07, - Tong - <mlist4suntong@yahoo.com> wrote:
>
> Wu-Kung Sun, have solve the line breaking problem.
>
> Now something else.
>
> On Sat, 23 Jun 2007 14:23:34 -0700, L.V.Gandhi wrote:
>
> > lvgandhi@lvgvaio:~/stock$ for line in $(cat temp1);do echo
> > "20070622,$line">>temp2 ;done
>
> FYI, the best approach for your above is to use sed, which can still
> maintain lighting speed even the "temp1" is 1g or 10g in size:
>
> sed 's/^/20070622,/' temp1 >> temp2
>
> Thanks for your reply.
Wu-Kung Sun's reply didn't produce desired result. However your advice gave desired result. -- L.V.Gandhi http://lvgandhi.tripod.com/ linux user No.205042 ------=_Part_148099_9313054.1182649737018 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/23/07, <b class="gmail_sendername">- Tong -</b> &lt;<a href="mailto:mlist4suntong@yahoo.com">mlist4suntong@yahoo.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Wu-Kung Sun, have solve the line breaking problem.<br><br>Now something else.<br><br>On Sat, 23 Jun 2007 14:23:34 -0700, L.V.Gandhi wrote:<br><br>&gt; lvgandhi@lvgvaio:~/stock$ for line in $(cat temp1);do echo<br>&gt; &quot;20070622,$line&quot;&gt;&gt;temp2 ;done <br><br>FYI, the best approach for your above is to use sed, which can still<br>maintain lighting speed even the &quot;temp1&quot; is 1g or 10g in size:<br><br> sed &#39;s/^/20070622,/&#39; temp1 &gt;&gt; temp2<br><br></blockquote> </div>Thanks for your reply. <br>Wu-Kung Sun&#39;s reply didn&#39;t produce desired result. However your advice gave desired result.<br>-- <br>L.V.Gandhi<br><a href="http://lvgandhi.tripod.com/">http://lvgandhi.tripod.com/ </a><br>linux user No.205042 ------=_Part_148099_9313054.1182649737018--

Date: Sun, 24 Jun 2007 00:04:49 -0400 From: Zach <netrek@gmail.com> To: debian-user@lists.debian.org Subject: Re: help with "apt-get purge" Message-ID: <ecfa260c0706232104u136e90ew9ec740ea1f9f3122@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/23/07, Christopher Nelson <chris@cavein.org> wrote:
>
> The problem with this solution being that you have to work out
> dependancy chains by yourself, where an apt-get/aptitude purge will work
> them out for you.
>
> To see for yourself, try it on any "-data" package.
That's true but I like controlling exactly what is purged and I prefer CLI over GUI. Zach

Date: Sun, 24 Jun 2007 01:37:48 -0300 From: Gabriel Parrondo <g.parrondo@gmail.com> To: debian-user@lists.debian.org Subject: Re: scripting - cat breaking line Message-Id: <1182659868.1000.0.camel@localhost.localdomain> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-fxUZKfdMbn9SYJNpcI1Z" --=-fxUZKfdMbn9SYJNpcI1Z Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable El s=C3=A1b, 23-06-2007 a las 18:43 -0700, L.V.Gandhi escribi=C3=B3:
> On 6/23/07, Wu-Kung Sun <sunwukung@gmail.com> wrote:
> The bash manpage says "If the substitution appears within
> double
> quotes, word splitting and pathname expansion are not
> performed on the
> results." So try "$(cat temp1)"
> -
> Thanks for the reply. However result was=20
> lvgandhi@lvgvaio:~$ for line in "$(cat temp1)";do echo "20070622,
> $line">>temp2 ;done
> lvgandhi@lvgvaio:~$ cat temp2
> 20070622,3IINFOTECH,3I INFOTECH LTD., 304.00, 307.95,
> 302.60, 305.55,184687
> 3MINDIA,3M INDIA LIMITED, 1785.00, 1823.00, 1760.00,
> 1819.50,1464
> lvgandhi@lvgvaio:~$
> I think ever line breaks are not considered.
>=20
Look for the IFS variable in the bash manpage. --=20 Gabriel Parrondo GNU/Linux User #404138 GnuPG Public Key ID: BED7BF43 JID: gabrielp@xmpp.us "The only difference between theory and practice is that, in theory, there'= s no difference between theory and practice." --=-fxUZKfdMbn9SYJNpcI1Z Content-Type: application/pgp-signature; name=signature.asc Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGffUbIOmrXr7Xv0MRAn6MAJ0cJyLzrbMiN9mlx8gk6mwOMd8jVwCfUJnJ QG3wNoe9JvN75OcXiZUSA1Q= =OlVE -----END PGP SIGNATURE----- --=-fxUZKfdMbn9SYJNpcI1Z--

Date: Sun, 24 Jun 2007 00:49:15 -0400 From: "Edmund Jorgensen" <tomheon@gmail.com> To: debian-user@lists.debian.org Subject: Question about initrd and multiple cryptdisks Message-ID: <82f1b45f0706232149r135cb9ffjcc23f9f26e8c5fb0@mail.gmail.com> Content-Type: multipart/alternative; boundary="----=_Part_166434_1443497.1182660555755" ------=_Part_166434_1443497.1182660555755 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm using Debian 4.0, and I installed with the encrypted root / lvm option. I have a second hard drive that I would like to encrypt and add to the same lvm group. The problem is that I would have to get the initrd image to prompt for the passphrase for the second disk as well, and I can't find anything telling me how to do it... If I just add the second cryptsetup disk to /etc/crypttab, it doesn't get loaded before the root filesystem gets mounted, and since the root filesystem is an lvm volume that needs to read that second cryptdisk as well as the first... Can anyone give me some pointers on how to configure an initrd to mount both cryptdisks? Thanks very much, Edmund ------=_Part_166434_1443497.1182660555755 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,<br><br>I&#39;m using Debian 4.0, and I installed with the encrypted root / lvm option.&nbsp; I have a second hard drive that I would like to encrypt and add to the same lvm group.&nbsp; The problem is that I would have to get the initrd image to prompt for the passphrase for the second disk as well, and I can&#39;t find anything telling me how to do it...&nbsp; If I just add the second cryptsetup disk to /etc/crypttab, it doesn&#39;t get loaded before the root filesystem gets mounted, and since the root filesystem is an lvm volume that needs to read that second cryptdisk as well as the first... <br><br>Can anyone give me some pointers on how to configure an initrd to mount both cryptdisks?<br><br>Thanks very much,<br><br>Edmund<br> ------=_Part_166434_1443497.1182660555755--

Date: Sun, 24 Jun 2007 15:18:25 +1000 From: "Thomas Hoppeer" <thoppeer@gmail.com> To: debian-user@lists.debian.org Subject: Re: my DVD is'nt recognized or automounted but k3b detects it perfectly Message-ID: <f038a3680706232218i33ed251t86ed31ae2083c0bc@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Arijit, Try look at this link maybe it gives you some hints what is going on. http://www.linuxconfig.org/HowTo_mount_cdrom_in_linux On 6/23/07, Florian Kulzer <florian.kulzer+debian@icfo.es> wrote:
> On Sat, Jun 23, 2007 at 18:05:17 +0530, arijit sarkar wrote:
> > Hi,
> >
> > I am facing a peculiar problem. one of my DVD is not recognized when
> > inserted into DVD drive.
> > I've LG GSA-H10N DVD-RW.
> > When double-clicking on drive icon from nautilus, i get this error
> > message:
> >
> > mount: block device /dev/hdc is write-protected, mounting read-only
> > mount: wrong fs type, bad option, bad superblock on /dev/hdc,
> > missing codepage or other error
> > in some cases useful info is found in syslog - try
> > dmesg | tail or so
> >
> > this is the output of "dmesg | tail"
> > ----------------------------------------------------
> > cdrom: This disc doesn't have any tracks I recognize!
> > cdrom: This disc doesn't have any tracks I recognize!
> > cdrom: This disc doesn't have any tracks I recognize!
> > Unable to identify CD-ROM format.
> > Unable to identify CD-ROM format.
> > UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'Movies', timestamp
> > 2007/02/25 22:31 (114a)
> > Unable to identify CD-ROM format.
> > Unable to identify CD-ROM format.
> > UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'Movies', timestamp
> > 2007/02/25 22:31 (114a)
> > Unable to identify CD-ROM format.
> > ------------------------------------------------------
> >
> > Now, if I start k3b and try to read the disk-info from software
> > interface, the DVD got mounted and I can now browse the contents, copy
> > from it, play mp3/movies etc.
> > But if i eject it/restarts the system, same problem persists, until i
> > mount it again through k3b.
>
> Make the DVD accessible again with k3b, then run "mount" without
> arguments. Hopefully this will give you a hint how to mount the DVD
> yourself. (filesystem type, what options were used, etc.)
>
> --
> Regards, | http://users.icfo.es/Florian.Kulzer
> Florian |
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>

Date: Sun, 24 Jun 2007 08:54:05 +0100 From: Chris Lale <chrislale@untrammelled.co.uk> To: debian-user@lists.debian.org Subject: Re: backports Message-ID: <467E231D.2050406@untrammelled.co.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Florian Kulzer wrote: [...]
>=20
> An even better approach would be to download the Backports.org Archive
> Key manually and to check the signature before adding the new key to
> apt's keyring. (Installing the debian-backports-keyring package directl=
y
> means that an unverified post-installation script has root on your
> computer, therefore you cannot really trust anything after that,
> including the keys on the Debian keyring.)
>=20
> P.S. The same goes for the debian-multimedia-keyring package.
>=20
Yes, Florian, you must be right! I wonder why they offer the keyring pack= age? The instructions page [1] does give instructions about how to install the= key - and no mention of the debian-backports-keyring package: ... you can import backports.org archive=E2=80=99s key into apt: gpg --keyserver hkp://subkeys.pgp.net --recv-keys 16BA136C gpg --export | apt-key add - or wget -O - http://backports.org/debian/archive.key | apt-key add - No mention of how to check it though. Can you check the sig before instal= ling the key? [1] http://backports.org/dokuwiki/doku.php?id=3Dinstructions --=20 Chris.

Date: Sun, 24 Jun 2007 10:38:13 +0100 From: Chris Lale <chrislale@untrammelled.co.uk> To: debian-user@lists.debian.org Subject: Re: how to install ntfs-3g from etch-backports Message-ID: <467E3B85.1060405@untrammelled.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Steffen Joeris wrote:
> On Sat, 23 Jun 2007 09:25:08 pm baldyeti wrote:
>> Added the necessary line to sources.list, yet apt-get
>> won't find the package.
>>
>> # apt-get -s -t etch-backports install ntfs-3g
>>
>> I cannot seem to make this work; thanks for any help.
> The only ntfs-3g package I could find on backports.org is a backport for
> sarge. It seems that there is no backport for etch, sorry.
> If you need somebody to build the package for me, then ping me via private
> mail, but I do not really use it. Therefore, I won't maintain the backport :(
>
[...] I would guess that the reason there is no backport is that ntfs-3g seems to need kernel >= 2.6.20 and Etch is 2.6.18. The problem seems to be that an older fuse driver is built into the kernel. You can generate a new fuse module from the latest fuse tarball, but I don't know whether you can load it into the kernel and override the built-in driver. I would think not. If you are prepared to accept reduced functionality with the existing fuse driver, you can build from source. Perhaps you could upgrade your kernel too. Here is what I did (kernel 2.6.18): Download fuse from http://fuse.sourceforge.net/ Extract the tarball. $ ./configure --exec-prefix=/ $ make # make install (Make detects that fuse is already in the kernel. I did not force the generation of a kernel module.) Download fuse from http://www.ntfs-3g.org/ Extract the tarball. $ ./configure $ make # make install Read the man page $ man ntfs-3g Mount the NTFS partition # mkdir /mnt/win # ntfs-3g /dev/hda1 /mnt/win WARNING: Deficient Linux kernel detected. Some driver features are not available (swap file on NTFS, boot from NTFS by LILO), and unmount is not safe unless it's made sure the ntfs-3g process naturally terminates after calling 'umount'. If you wish this message to disappear then you should upgrade to at least kernel version 2.6.20, or request help from your distribution to fix the kernel problem. The below web page has more information: http://ntfs-3g.org/support.html#fuse26 Simple test # cd /mnt/win # ls AUTOEXEC.BAT IO.SYS ntldr RECYCLER WINNT boot.ini MSDOS.SYS pagefile.sys Setup CONFIG.SYS NTDETECT.COM Program Files TEMP # cd /mnt # umount /mnt/win Hope that helps. -- Chris.

Can we help you?X

Date: Sun, 24 Jun 2007 10:42:16 +0100 From: andy <geek_show@dsl.pipex.com> To: debian-user@lists.debian.org Subject: Re: OT: Say NO to the Microsoft Office format as an ISO standard Message-ID: <467E3C78.3060709@dsl.pipex.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hugo Vanwoerkom wrote:
> Manon Metten wrote:
>> Hi,
>>
>> This urgent request was posted on users@openoffice.org
>> <mailto:user@openoffice.org> by Hagar de l'Est
>> < hagar_de_lest@openoffice.org <mailto:hagar_de_lest@openoffice.org>>.
>> Is not exactly Debian, but I think also of great importance for all
>> of us.
>>
>> Please sign the petition here: http://www.noooxml.org/petition.
>> (Cookies have to be enabled for this site.)
>>
>> Thanks, Manon.
>>
>
> Good show. Done
>
> Hugo
>
>
Nice one. Signed and circulated to the other lists I belong to. A -- "If they can get you asking the wrong questions, they don't have to worry about the answers." - Thomas Pynchon, "Gravity's Rainbow"

Date: Sun, 24 Jun 2007 05:51:29 -0400 From: Jim Seymour <jim@wingbarscafe.com> To: Debian-User <debian-user@lists.debian.org> Subject: Apache 2.2 rewrite rule help needed Message-ID: <20070624095129.GB899@hummingbird.wingbarscafe.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi All, Running Apache 2.2 on Debian testing and having no luck getting a rewrite rule to work. Straight out of the rewrite guide I am trying the following to force the domain name to always be displayed as www.domain.com even when it is accessed as domain.com. RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://www.domain.com/$1 [L,R] I have tried many variations of this rule in both the apache virtual configuration as well as an .htaccess file. I have verified via a dump of the modules loaded that the rewrite module is loaded. The Options FollowSymLinks is set and AllowOverride is set to FileInfo. I know the .htaccess file is being read because I can put trash in it and it will result in an Internal Server Error. Once the garbage is removed I can load the web page without error. The rewrite rule never has an effect and never gives any errors. Ideas? Thanks, Jim

Date: Sun, 24 Jun 2007 11:01:05 +0100 From: Chris Lale <chrislale@untrammelled.co.uk> To: debian-user@lists.debian.org Subject: Re: Sound card not working Message-ID: <467E40E1.4060800@untrammelled.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mike McCarty wrote:
> Chris Lale wrote:
>>
>> dmesg indicates that a Via chipset has been detected:
>> Via 686a/8233/8235 audio driver 1.9.1-ac3
>>
>> The Alsa Soundcard Matrix[1] indicates that this is built into the
>> motherboard
>> ("VIA southbridge AC97 audio").
>
> I just talked on the 'phone, and this is not a built-in card.
> It is some version or other of a SoundBlaster.
Makes me wonder whether this is the classic two card problem (PCI and built-in). Run alsaconf to check [1]. [1] http://newbiedoc.berlios.de/wiki/Sound_in_Debian_GNU/Linux#Check_your_hardware -- Chris.

Date: Sun, 24 Jun 2007 12:10:26 +0200 From: Florian Kulzer <florian.kulzer+debian@icfo.es> To: debian-user@lists.debian.org Subject: Re: backports Message-ID: <20070624101026.GA4439@localhost> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 24, 2007 at 08:54:05 +0100, Chris Lale wrote:
> Florian Kulzer wrote:
> [...]
> >=20
> > An even better approach would be to download the Backports.org Archive
> > Key manually and to check the signature before adding the new key to
> > apt's keyring. (Installing the debian-backports-keyring package directly
> > means that an unverified post-installation script has root on your
> > computer, therefore you cannot really trust anything after that,
> > including the keys on the Debian keyring.)
> >=20
> > P.S. The same goes for the debian-multimedia-keyring package.
> >=20
>=20
> Yes, Florian, you must be right! I wonder why they offer the keyring pack=
age? The keyring package allows automatic installation of new signing keys, just like debian-archive-keyring for the normal Debian pool. This is safe - or at least as "safe" as your basic trust in Debian is - provided that you perform the initial check. From the on, each new key can be verified (automatically) with the old key during a transition period and the chain of trust remains intact. (I don't know how often they will issue a new key for the backports archive, though; the normal Debian archive keys get updated at least once a year.)
> The instructions page does give instructions about how to install the key=
-
> and no mention of the debian-backports-keyring package:
>=20
> ... you can import backports.org archive=E2=80=99s key into apt:
>=20
> gpg --keyserver hkp://subkeys.pgp.net --recv-keys 16BA136C
> gpg --export | apt-key add -
>=20
> or
>=20
> wget -O - http://backports.org/debian/archive.key | apt-key add -
>=20
> No mention of how to check it though. Can you check the sig before instal=
ling
> the key?
Yes, you can: Just run the "gpg ... --recv-keys ..." command as your normal user and the new key will be added (as untrusted) to your normal user's public keyring. Then you can perform the check: $ gpg --keyring /usr/share/keyrings/debian-keyring.gpg --check-sigs 16BA136C and make sure that Joerg Jaspert's signature (key 7E7B8AC9) is valid. After that you can feed the key to apt $ gpg -a --export 16BA136C | sudo apt-key add - and you are all set. If you do not want to use sudo then you can export the key to a file before you become root: $ gpg -a --export 16BA136C > backports-archive-key.txt # apt-key add backports-archive-key.txt If you have problems with the keyserver then you can use the wget command to add the key to your public keyring: $ wget -O - http://backports.org/debian/archive.key | gpg --import - Then you can perform the same check before you tell apt to trust the key. I would avoid running anything as root except for the apt-key command. --=20 Regards, | http://users.icfo.es/Florian.Kulzer Florian |

Date: Sun, 24 Jun 2007 12:49:19 +0200 From: Matus UHLAR - fantomas <uhlar@fantomas.sk> To: debian-user@lists.debian.org Subject: Re: scripting - cat breaking line Message-ID: <20070624104919.GA9664@fantomas.sk> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 23.06.07 14:23, L.V.Gandhi wrote:
> Subject: scripting - cat breaking line

> I have a file temp1 as below
> lvgandhi@lvgvaio:~/stock$ cat temp1
> ABB,ABB LTD., 4730.00, 4779.00, 4700.00, 4726.45,59655
> ACC,ACC LIMITED, 860.00, 864.90, 844.30, 852.25
> ,228318
> When I run on command line as
> lvgandhi@lvgvaio:~/stock$ for line in $(cat temp1);do echo
> "20070622,$line">>temp2 ;done
it's not "cat" who is breaking lines. This script will fetch content of "temp1" file to the script, and bash splits fields by any whitespace charactes, including spaces and tabs, so the "echo" command is calles for every "word" in a file and echo puts newline at the end of output line by default.
> I get temp2 as
> lvgandhi@lvgvaio:~/stock$ cat temp2
> 20070622,ABB,ABB

> line is breaking at every space.
> How to avoid this?
either change IFS only to contain newline, or forget using $(cat ...) and use different cycle: while read line do echo "20070622,$line" done < temp1 > temp2 (or >>temp2 if you want to append to the "temp2" file) -- Matus UHLAR - fantomas, uhlar(at)fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Eagles may soar, but weasels don't get sucked into jet engines.

Date: Sun, 24 Jun 2007 12:50:43 +0200 From: Matus UHLAR - fantomas <uhlar@fantomas.sk> To: debian-user@lists.debian.org Subject: Re: courier-imap: IMAP_UMASK has no effect Message-ID: <20070624105043.GB9664@fantomas.sk> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 23.06.07 23:36, info@peter-thomassen.de wrote:
> I set IMAP_UMASK=077 in /etc/courier/imapd and restarted courier-imap, using
> Debian Etch. Then, I saved a message to the IMAP mailbox using KMail. The
> permissions of the message file are set to 0644, while I expected 0600.
>
> Can you reproduce that? Is it a bug?
isn't IMAP_UMASK set in courier-imap config file? if not, does courier-imapd use that variable at all? -- Matus UHLAR - fantomas, uhlar(at)fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. The early bird may get the worm, but the second mouse gets the cheese.

Date: Sun, 24 Jun 2007 12:15:11 -0000 From: seeds <catharcyst@gmail.com> To: debian-user@lists.debian.org Subject: adsl usb Message-ID: <1182687311.414397.69540@g4g2000hsf.googlegroups.com> Content-Type: text/plain; charset="iso-8859-1" how can i hook up my adsl modem using the usb instead of the ethernet connection? the modem is a netopis cayman 3300 series?

Date: Sun, 24 Jun 2007 08:48:27 -0400 From: Orestes leal <orestesleal13022@cha.jovenclub.cu> To: debian-user@lists.debian.org Subject: Re: How Can I Setup procmail to deliver into /var/mail[solved] Message-Id: <20070624084827.88ac8f4b.orestesleal13022@cha.jovenclub.cu> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 22 Jun 2007 10:32:36 +0530 Kumar Appaiah <akumar@iitm.ac.in> wrote: Yeah, you right!, I make a symlink and worked, thanks for the tip, and thanks to the list an all the folks.
> On Thu, Jun 21, 2007 at 05:57:11PM -0400, Orestes leal wrote:
> > > Why ? Why not just make a symlink?
>
> On my machine, it's symlinked already:
>
> [kumar@debian /tmp] cd /var/spool
> [kumar@debian /var/spool] ls -l mail
> lrwxrwxrwx 1 root root 7 2005-09-25 03:34 mail -> ../mail
>
> Kumar
> --
Orestes.

Can't find what you're looking for?X

Date: Sun, 24 Jun 2007 15:46:55 +0300 From: Micha Feigin <michf@post.tau.ac.il> To: debian-user <debian-user@lists.debian.org> Subject: windows compatability issues with ftpd (wrong filenames sent) Message-ID: <20070624154655.3d51dd68@litshi.luna.local> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I set up ftpd on my machine to easily trasfer the occational files to windows systems (it's usually disabled for the security aware, only enabled inside secure networks for the duration of the transfers) The problem: the file names and directories appear under windows with their time as part of the name (when browsing through windows explorer to my machine) which makes it impossible to browse using explorer (I get the error that the file doesn't exist). If I manually enter the correct file name things function properly. How do I change ftpd's behaviour to send the data in a windows compatible method? Thanks End of debian-user-digest Digest V2007 Issue #1833 ************************************************** Received on Sun Jun 24 09:25:27 2007

This archive was generated by hypermail 2.1.8 : Sun Jun 24 2007 - 09:30:02 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library