Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

debian-user-digest Digest V2007 #2844

From: <debian-user-digest-request(at)lists.debian.org>
Date: Thu Nov 22 2007 - 17:42:01 EST


Content-Type: text/plain

debian-user-digest Digest Volume 2007 : Issue 2844

Today's Topics:

  Re: Problem after upgrading           [ Florian Kulzer  ]
  verify the ip status                  [ chloe K  ]
  Re: Configuring server with a virtua  [ Andrei Popescu  ]
  Re: Configuring server with a virtua  [ Alex Samad  ]
  Re: Configuring server with a virtua  [ Andrei Popescu  ]
  Re: CLI Addressbook                   [ "Douglas A. Tutty"  ]
  Re: CLI Addressbook                   [ Alex Samad  ]
  [OT] Connecting to ssh server from p  [ Misko  ]
  Re: how to run scripts uniquely       [ Jeff D  ]
  ipv6 routing question                 [ Alex Samad  ]

Date: Thu, 22 Nov 2007 20:09:07 +0100
From: Florian Kulzer <florian.kulzer+debian@icfo.es> To: debian-user@lists.debian.org
Subject: Re: Problem after upgrading

Message-ID: <20071122190907.GA5461@pc0197>
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

[ It is better to answer inline, like I do below, so that it is easier   for others to follow our discussion. Please stop top-posting. ]

On Wed, Nov 21, 2007 at 17:34:19 -0600, Alejandro Aguila S=E1inz wrote:
> Florian thanks, here is the output:

>=20

> egrep '^\((EE|WW)\)' /var/log/Xorg.0.log :
>=20

> (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
> (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does
> not $
> (EE) AIGLX error: dlopen of /usr/lib/dri/i915_dri.so failed (/usr/lib/dri=
/i915_$

Is the libgl1-mesa-dri package installed on your system? (This may not be the main problem, but it should speed up your 3D graphics.)

Do you need help?X

(If this does not work then I need to see the complete error message;  the line above seems to be cut off at the $ sign.)

> (EE) AIGLX: reverting to software rendering
> (WW) Configured Mouse: No Device specified, looking for one...

>=20

> awk '/Section "Device"/,/EndSection/' /etc/X11/xorg.conf :
>=20

> Section "Device"
> Identifier "Intel Corporation 82845G/GL[Brookdale-G]/GE Chip=
set In$
> Driver "intel"
> BusID "PCI:0:2:0"
> EndSection

Try to add the line

          Option "AccelMethod" "XAA"

above the "EndSection" statement and restart X.

> lspci | egrep -i 'vga|video|display|graphic' :
>=20
> 00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-=
G]/GE Chipset Integrated Graphics Device (rev 03)

--=20

Regards,            | 
http://users.icfo.es/Florian.Kulzer
          Florian   |

Do you need more help?X

Date: Thu, 22 Nov 2007 12:11:17 -0800
From: Amit Uttamchandani <atu13439@csun.edu> To: Michael Pobega <pobega@gmail.com>
Cc: debian-user@lists.debian.org
Subject: Re: CLI Addressbook

Message-ID: <20071122121117.28976402@debian.csun.edu>
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Thu, 22 Nov 2007 11:02:56 -0500
Michael Pobega <pobega@gmail.com> wrote:  

> You're definitely looking for abook. If you plan on using abook
> alongside Mutt you may want to add this to your ~/.muttrc:
>
> # Use abook with Mutt
> set query_command="abook --mutt-query '%s'"
> macro pager A |'abook --add-email'\n
>
> That configures Mutt so that if you type Q at any time you can query
> your adress book for names (And Mutt will automatically begin composing
> an e-mail when you select the name you're looking for). It also lets you
> add e-mails to abook directly from Mutt using A. I personally use it,
> and I'd advise you should as well, it's very useful.
>

Yeah I just installed abook and been playing with it. Its nifty little app. As for MUTT I tried configuring it along with getmail and procmail but I could never get it too work right. I am using claws-mail right now and it is quite good. But I do plan to try mutt again.

Thanks for the tip!

Amit

Date: Thu, 22 Nov 2007 12:14:51 -0800
From: Amit Uttamchandani <atu13439@csun.edu> To: "Douglas A. Tutty" <dtutty@porchlight.ca> Cc: debian-user@lists.debian.org
Subject: Re: CLI Addressbook

Message-ID: <20071122121451.70f42c8e@debian.csun.edu>
Content-Type: text/plain; charset=US-ASCII
Can't find what you're looking for?X
Content-Transfer-Encoding: 7bit
Can we help you?X

On Thu, 22 Nov 2007 09:24:22 -0500
"Douglas A. Tutty" <dtutty@porchlight.ca> wrote:

> On Thu, Nov 22, 2007 at 01:14:13AM -0800, Amit Uttamchandani wrote:
> > > I always used postgresql and just did standard SQL queries, until I
> > > wrote a python front-end.
> > >
> > > Good way to learn SQL?
> > >
> > > Before that, I just used a plain-text file. Each record is a
> > > paragraph, separated by blank lines. Use standard / to search in
> > > less or vim.
> > >
> > > I suppose the best tool depends on the number of contacts and the
> > > type of queries you wan to make.
> >
> > That is actually a good idea. I love python and this could be a very
> > interesting small project. So you built a GUI using PyGTK or something
> > like that?
>
> No. plain standard readline. Could use ncurses. I don't do GUI.
> Note that the python part was just a front-end to the postgresql
> database. I didn't have to worry about storing and retreiving any data.
>

Interesting. I am sorry if this question sounds dumb but how did you patch everything together? So you have C program that uses the readline library and a python front-end for the sql database? If so, in your C program you simply call out the python script whenever you need to make a connection/read/write to the database?

Thanks.

Amit

Date: Thu, 22 Nov 2007 15:31:54 -0500
From: "H.S." <hs.samix@gmail.com>
To: debian-user@lists.debian.org
Subject: Re: configuring ADSL via a gui

Message-ID: 
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  7bit

Chris G wrote:
> On Thu, Nov 22, 2007 at 11:36:27AM -0500, H.S. wrote:

>> Hello,
>>
>> Since I started using Debian, I have always used pppoeconf command to
>> set up my ADSL connection. Now I am a situation trying to convince a few
>> others that Linux based OS is very easy to use. So, is how do I go about
>> configuring an ADSL connection via gui? Does network-manager support it?
>> And can it be done on both Testing and Unstable?
>>

> Surely nearly all routers (and who uses anything except a router
> nowadays?) have web configuration so they don't care what OS you're
> using. Just pointer your browser at the router and set it up! :-)
>
Don't know where to look next?X

That is if you want it (modem/router) to work in PPPoe mode. For bridge mode, you still have to do the configuration on your computer. Bridge mode reduces hassles of forwarding various ports in the router/modem, BTW.

In my case though, I use my modem in bridge mode and use a Debian Testing based old machine as a router. Heck of a lot of freedom I have with iptables than with the limited options in the router's firewall.

Date: Thu, 22 Nov 2007 15:48:23 -0500 (EST) From: chloe K <chloekcy2000@yahoo.ca>
To: debian-user@lists.debian.org
Subject: verify the ip status

Message-ID: <490476.61415.qm@web57416.mail.re1.yahoo.com>
Content-Type: multipart/alternative; boundary="0-1728991860-1195764503=:61415"
Content-Transfer-Encoding: 7bit

--0-1728991860-1195764503=:61415
Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

Hi=20

I have ip list in my network

I need to check which ip is unused

Confused? Frustrated?X

what is better solution?

Write the ping script or use other command

eg:=20

for i in ip.txt
ping -c 3 $i

Thank you

      =20



Looking for the perfect gift? Give the gift of Flickr! --0-1728991860-1195764503=:61415
Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi 

I have ip list in my network

I need to che= ck which ip is unused

what is better solution?

Write the pi= ng script or use other command

eg:

for i in ip.txt
ping= -c 3 $i

Thank you



Looking for the perfect gift?<a href=3D"http://www.flickr.com/gift/"><b> = Give the gift of Flickr!</b></a>
--0-1728991860-1195764503=:61415--

Date: Thu, 22 Nov 2007 23:14:03 +0200
From: Andrei Popescu <andreimpopescu@gmail.com> To: debian-user@lists.debian.org
Subject: Re: Configuring server with a virtual package Message-ID: <20071122211403.GA4524@think.homenet> Content-Type: multipart/signed; micalg=pgp-sha1;

Call Pantek today for Open Source Technical Support at 1-877-546-8934 - 24/7/365X

        protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline

--ibTvN161/egqYuK8

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 22, 2007 at 03:29:46PM +1100, Alex Samad wrote:
> Hi

>=20
> I am in the process of rebuilding one of my servers and I thought hey why=
 not=20
> build a package, that links all the other packages I need, and the=20
> corresponding configuration files.

<nitpick>
This sounds more like a meta-package.
</nitpick>

Regards,
Andrei
--=20
If you can't explain it simply, you don't understand it well enough. (Albert Einstein)

--ibTvN161/egqYuK8

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHRfEbqJyztHCFm9kRAnE7AKC0Z3QdIErE5QdrwDhvXu7Fc+7VVQCguMLV yC0Kt1B5dzr694DrbGrpGh8=
=m6zX
-----END PGP SIGNATURE----- --ibTvN161/egqYuK8--

Do you need help?X

Date: Fri, 23 Nov 2007 08:32:03 +1100
From: Alex Samad <alex@samad.com.au>
To: debian-user@lists.debian.org
Subject: Re: Configuring server with a virtual package Message-ID: <20071122213203.GC554@samad.com.au> Content-Type: multipart/signed; micalg=pgp-sha1;

        protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline

--JP+T4n/bALQSJXh8

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 22, 2007 at 11:14:03PM +0200, Andrei Popescu wrote:
> On Thu, Nov 22, 2007 at 03:29:46PM +1100, Alex Samad wrote:
> > Hi
> >=20
> > I am in the process of rebuilding one of my servers and I thought hey w=
hy not=20
> > build a package, that links all the other packages I need, and the=20
> > corresponding configuration files.

>=20

> <nitpick>
> This sounds more like a meta-package.
> </nitpick>

sounds interesting, did a quick google and found debian-med ? is this the= =20
stuff you are talking about ?
>=20

> Regards,
> Andrei
> --=20
> If you can't explain it simply, you don't understand it well enough.
> (Albert Einstein)

--JP+T4n/bALQSJXh8

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHRfVTkZz88chpJ2MRAvcXAJsFEKCcN2jVUKzFTNfldRaRjQ11wgCfb/ub dUCrHEF7iaF5vCi4qbyRn4I=
=ErJa
-----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--

Do you need more help?X

Date: Fri, 23 Nov 2007 08:43:54 +1100
From: Alex Samad <alex@samad.com.au>
To: debian-user@lists.debian.org
Subject: Re: Configuring server with a virtual package Message-ID: <20071122214354.GE554@samad.com.au> Content-Type: multipart/signed; micalg=pgp-sha1;

        protocol="application/pgp-signature"; boundary="Bu8it7iiRSEf40bY" Content-Disposition: inline

--Bu8it7iiRSEf40bY

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 23, 2007 at 08:32:03AM +1100, Alex Samad wrote:
> On Thu, Nov 22, 2007 at 11:14:03PM +0200, Andrei Popescu wrote:
> > On Thu, Nov 22, 2007 at 03:29:46PM +1100, Alex Samad wrote:
> > > Hi
> > >=20
> > > I am in the process of rebuilding one of my servers and I thought hey=
 why not=20
> > > build a package, that links all the other packages I need, and the=20
> > > corresponding configuration files.
> >=20
> > <nitpick>
> > This sounds more like a meta-package.
> > </nitpick>
> sounds interesting, did a quick google and found debian-med ? is this th=
e=20
> stuff you are talking about ?

read some more, this is not all about meta packages

this seems to be a quick howto=20

http://people.debian.org/~tille/cdd/ap-QuickIntro.en.html
> >=20
> > Regards,
> > Andrei
> > --=20
> > If you can't explain it simply, you don't understand it well enough.
> > (Albert Einstein)

>=20
>=20

--Bu8it7iiRSEf40bY

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
Can we help you?X

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHRfgakZz88chpJ2MRAmpTAJ0SU9iNAxlUXbkBKnsIL5cnVRCdMgCg7ijk pHo4p9upnyLqm3J+zLiMLqo=
=u3vP
-----END PGP SIGNATURE----- --Bu8it7iiRSEf40bY--

Date: Thu, 22 Nov 2007 23:51:00 +0200
From: Andrei Popescu <andreimpopescu@gmail.com> To: debian-user@lists.debian.org
Subject: Re: Configuring server with a virtual package Message-ID: <20071122215100.GB4524@think.homenet> Content-Type: multipart/signed; micalg=pgp-sha1;

        protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV" Content-Disposition: inline

--Y7xTucakfITjPcLV

Content-Type: text/plain; charset=us-ascii
Can't find what you're looking for?X
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable

On Fri, Nov 23, 2007 at 08:32:03AM +1100, Alex Samad wrote:
> On Thu, Nov 22, 2007 at 11:14:03PM +0200, Andrei Popescu wrote:
> > On Thu, Nov 22, 2007 at 03:29:46PM +1100, Alex Samad wrote:
> > > Hi
> > >=20
> > > I am in the process of rebuilding one of my servers and I thought hey=
 why not=20
> > > build a package, that links all the other packages I need, and the=20
> > > corresponding configuration files.
> >=20
> > <nitpick>
> > This sounds more like a meta-package.
> > </nitpick>
> sounds interesting, did a quick google and found debian-med ? is this th=
e=20
> stuff you are talking about ?

Try this for an explanation.

Don't know where to look next?X

Regards,
Andrei
--=20
If you can't explain it simply, you don't understand it well enough. (Albert Einstein)

--Y7xTucakfITjPcLV

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHRfnEqJyztHCFm9kRAgPnAJ4oe0am5TDrJoeaQJY+lxd72xgatwCffdMD C24uZibVq/NUG77SOKiAgoA=
=vpVF
-----END PGP SIGNATURE----- --Y7xTucakfITjPcLV--

Date: Thu, 22 Nov 2007 21:39:52 +0000
From: Steve Kemp <skx@debian.org>
To: debian-user@lists.debian.org
Subject: Re: Configuring server with a virtual package

Message-ID: <20071122213952.GA32469@steve.org.uk>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri Nov 23, 2007 at 08:32:03 +1100, Alex Samad wrote:

> > <nitpick>
> > This sounds more like a meta-package.
> > </nitpick>

Confused? Frustrated?X

> sounds interesting, did a quick google and found debian-med ? is this the
> stuff you are talking about ?

  debian-med is an example of a meta-package.

  A meta-package is a package which exists soley to pull in  dependencies. For example I use several packages upon  my desktop to customise my environment:

    steve-desktop

  • This package installs no files, but it depends upon things like 'iceweasel', 'emacs21', etc. This means a simple 'apt-get install steve-desktop' will get me most of the programs I care about in one go.

    steve-completion

  • Installs a bunch of files into /etc/bash_completion.d/ to give additional bash completion.

  Creation meta-packages can be done easily via the 'equivs'  package. (See 'apt-cache show equivs' for a brief intro)

  Meta-packages, and packages for configuration files, are a little  advanced for typical users, but they are remarkably useful.

Steve

-- 

Date: Thu, 22 Nov 2007 16:42:24 -0500 From: "Douglas A. Tutty" <dtutty@porchlight.ca> To: debian-user@lists.debian.org Subject: Re: CLI Addressbook Message-ID: <20071122214224.GA7164@titan.hooton> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 22, 2007 at 12:14:51PM -0800, Amit Uttamchandani wrote:
> On Thu, 22 Nov 2007 09:24:22 -0500
> "Douglas A. Tutty" <dtutty@porchlight.ca> wrote:
> > On Thu, Nov 22, 2007 at 01:14:13AM -0800, Amit Uttamchandani wrote:
> > > > I always used postgresql and just did standard SQL queries, until I
> > > > wrote a python front-end.

> > > That is actually a good idea. I love python and this could be a
> > > very interesting small project. So you built a GUI using PyGTK or
> > > something like that?
> >
> > No. plain standard readline. Could use ncurses. I don't do GUI.
> > Note that the python part was just a front-end to the postgresql
> > database. I didn't have to worry about storing and retreiving any
> > data.
>
> Interesting. I am sorry if this question sounds dumb but how did you
> patch everything together? So you have C program that uses the
> readline library and a python front-end for the sql database? If so,
> in your C program you simply call out the python script whenever you
> need to make a connection/read/write to the database?
>
No C program. Python uses readline by default. I.e. print this, raw_input that. I used python-psycopg for the database access. Doug.

Date: Thu, 22 Nov 2007 16:49:36 -0500 From: "Douglas A. Tutty" <dtutty@porchlight.ca> To: debian-user@lists.debian.org Subject: Re: how to run scripts uniquely Message-ID: <20071122214936.GB7164@titan.hooton> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 22, 2007 at 06:26:40PM +0000, cs wrote:
> I thought I'd worked out how to ensure only 1 instance of a shell script
> was running (using grep and wc) but I now see that sometimes the script
> name appears twice in the list of processes - any ideas?
Whenever I've needed to do that, I follow the 'standard' method with a file in /var/lock. Create a file with your script name and put its PID in it. Your script can then test for the existance of this file, read it, and verify the existance of the PID (remove the file if the PID is dead) and create its own lock file, removing it on successfull completion. Doug.

Date: Fri, 23 Nov 2007 09:16:39 +1100 From: Alex Samad <alex@samad.com.au> To: debian-user@lists.debian.org Subject: Re: Configuring server with a virtual package Message-ID: <20071122221639.GF554@samad.com.au> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hxkXGo8AKqTJ+9QI" Content-Disposition: inline --hxkXGo8AKqTJ+9QI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 22, 2007 at 09:39:52PM +0000, Steve Kemp wrote:
> On Fri Nov 23, 2007 at 08:32:03 +1100, Alex Samad wrote:
>=20
> > > <nitpick>
> > > This sounds more like a meta-package.
> > > </nitpick>
>=20
> > sounds interesting, did a quick google and found debian-med ? is this =
the=20
> > stuff you are talking about ?
>=20
> debian-med is an example of a meta-package.
>=20
> A meta-package is a package which exists soley to pull in
> dependencies. For example I use several packages upon
> my desktop to customise my environment:
>=20
> steve-desktop
> - This package installs no files, but it depends upon
> things like 'iceweasel', 'emacs21', etc. This means
> a simple 'apt-get install steve-desktop' will get me
> most of the programs I care about in one go.
>=20
> steve-completion
> - Installs a bunch of files into /etc/bash_completion.d/ to
> give additional bash completion.
>=20
> Creation meta-packages can be done easily via the 'equivs'
> package. (See 'apt-cache show equivs' for a brief intro)
sounds exactly like what I am trying to do, downloading equivs now >=20
> Meta-packages, and packages for configuration files, are a little
> advanced for typical users, but they are remarkably useful.
I have had a go a building some packages before, but it has been a while, a= ll i=20 do know is make changes to the code and run make mk-debs, forgotton the mag= ic=20 behind there. How do you get around the config file problem, for instance I want have a= =20 package to setup my ldap server, I would like to just go apt-get install=20 <servername>.ldap and have it bring in the depend packages like slapd, but = at=20 the end of the slapd install to actually over write the slapd.conf and othe= r=20 files. Do I mark this up as a Replaces action or do i do it via the instal= l=20 scripts ? The later seems easier and I get a chance to make backup of the= =20 files >=20
> Steve
> --=20
>=20 >=20
> --=20
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org=20
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian=
=2Eorg >=20 >=20 --hxkXGo8AKqTJ+9QI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHRf/HkZz88chpJ2MRAksGAKDiwSvdWAnNSCXdWHdrxUwUpbd2qQCgpCIC zymlrZQmNGW00pfs4gtYT9Q= =jCJZ -----END PGP SIGNATURE----- --hxkXGo8AKqTJ+9QI--

Date: Fri, 23 Nov 2007 09:19:34 +1100 From: Alex Samad <alex@samad.com.au> To: debian-user@lists.debian.org Subject: Re: CLI Addressbook Message-ID: <20071122221934.GG554@samad.com.au> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q8BnQc91gJZX4vDc" Content-Disposition: inline --Q8BnQc91gJZX4vDc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 22, 2007 at 04:42:24PM -0500, Douglas A. Tutty wrote:
> On Thu, Nov 22, 2007 at 12:14:51PM -0800, Amit Uttamchandani wrote:
> > On Thu, 22 Nov 2007 09:24:22 -0500
> > "Douglas A. Tutty" <dtutty@porchlight.ca> wrote:
> > > On Thu, Nov 22, 2007 at 01:14:13AM -0800, Amit Uttamchandani wrote:
> > > > > I always used postgresql and just did standard SQL queries, until=
I
> > > > > wrote a python front-end. =20
> =20
> > > > That is actually a good idea. I love python and this could be a
> > > > very interesting small project. So you built a GUI using PyGTK or
> > > > something like that?
> > >=20
> > > No. plain standard readline. Could use ncurses. I don't do GUI.
> > > Note that the python part was just a front-end to the postgresql
> > > database. I didn't have to worry about storing and retreiving any
> > > data.
> >=20
> > Interesting. I am sorry if this question sounds dumb but how did you
> > patch everything together? So you have C program that uses the
> > readline library and a python front-end for the sql database? If so,
> > in your C program you simply call out the python script whenever you
> > need to make a connection/read/write to the database?
> >=20
>=20
> No C program. Python uses readline by default. I.e. print this,
> raw_input that. I used python-psycopg for the database access.
coming in a bit late on the thread, but. At work they use outlook so I am= =20 stuck with putting all my stuff in to outlook, which for my use is not good= , I=20 export the outlook contacts info to a csv file and use perl to insert into = my=20 ldap database, and then I have some bash scripts to read the ldap DB to giv= e me=20 access to the information >=20
> Doug.
>=20 >=20
> --=20
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org=20
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian=
=2Eorg >=20 >=20 --Q8BnQc91gJZX4vDc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHRgB2kZz88chpJ2MRAghiAJsEEsrZjzljru/9tR8hPpb3TQX0/ACfW4O0 jw7EDbfdX7QvHWoxdf5+970= =GrYh -----END PGP SIGNATURE----- --Q8BnQc91gJZX4vDc--

Date: Thu, 22 Nov 2007 22:34:01 +0100 From: Misko <adatrg-mlist@yahoo.com.au> To: Debian User Group <debian-user@lists.debian.org> Subject: [OT] Connecting to ssh server from php script Message-ID: <20071122213401.GA3886@alfa.qvirt.zxc> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I am able to connect to telnet server from php script to log in, send some commands and log out automaticly. Now I do need to do this with ssh server. Is this possible? Please send me info how to do it or where can I find it on the web. Note that I do not know almost nothing about encryption. Misko

Date: Thu, 22 Nov 2007 14:07:18 -0800 From: Jeff D <fixedored@gmail.com> To: debian-user@lists.debian.org Cc: debian user <debian-user@lists.debian.org> Subject: Re: how to run scripts uniquely Message-ID: <4745FD96.5040903@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cs wrote:
> I thought I'd worked out how to ensure only 1 instance of a shell script
> was running (using grep and wc) but I now see that sometimes the script
> name appears twice in the list of processes - any ideas?
>
> eg (apols for wrapping) when running /home/michael/bin/backup-rsync-VERI
> we get the below where it appears twice in the list of processes...
>
> ++ mktemp /tmp/chk_procs_XXX
> + TEMPFILE=/tmp/chk_procs_220
> + trap 'date|mail -s "$0 error" michael.bane@manchester.ac.uk;echo Error
> - aborting; exit' ERR
> + ps -elf
> + grep /home/michael/bin/backup-rsync-VERI
> + grep -v grep
> + tee /tmp/chk_procs_220
> 4 R michael 20219 20218 0 83 0 - 1020 - 18:18 ?
> 00:00:00 /bin/bash -x /home/michael/bin/backup-rsync-VERI
> 1 R michael 20223 20219 0 83 0 - 1020 - 18:18 ?
> 00:00:00 /bin/bash -x /home/michael/bin/backup-rsync-VERI
> ++ cat /tmp/chk_procs_220
> ++ wc -l
> + [[ 2 -gt 1 ]]
> + date
> ++ hostname -s
> + mail -s 'ratty /home/michael/bin/backup-rsync-VERI - already running'
> michael.bane@manchester.ac.uk
> + rm /tmp/chk_procs_220
> + exit -1
>
>
>
This is what I do in situations like this: #!/bin/sh #get pid PID=$$ #check to see if a previous process is running if [ -e /var/run/sync.check ] ; then if ps -p `cat /var/run/sync.check` >> /dev/null 2>&1 ; then echo "Sync process already running, exiting" exit 1 fi fi #write out pid echo $PID > /var/run/sync.check #do stuff #end of script, remove pid file rm -f /var/run/sync.check

Date: Fri, 23 Nov 2007 09:37:19 +1100 From: Alex Samad <alex@samad.com.au> To: Debian Users <debian-user@lists.debian.org> Subject: ipv6 routing question Message-ID: <20071122223719.GI554@samad.com.au> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TdkiTnkLhLQllcMS" Content-Disposition: inline --TdkiTnkLhLQllcMS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi I have ipv6 setup on my network and I use static and dynamic addresses I us= e a=20 6to4 setup. On my server I have=20 2002:XXXX:YYYY:11::10 as my static 2002:XXXX:YYYY:11:230:834f:beaf:1cd0 as my dynamic (setup with radvd) routing info is 2002:XXXX:YYYY:11::11 dev eth0 metric 1024 expires 18267878sec mtu 9100= =20 advmss 9040 hoplimit 4294967295 2002:XXXX:YYYY:11::/64 dev eth0 metric 256 expires 14115191sec mtu 1500= =20 advmss 1440 hoplimit 4294967295 fe80::/64 dev eth0 metric 256 expires 18267549sec mtu 1500 advmss 1440=20 hoplimit 4294967295 ff00::/8 dev eth0 metric 256 expires 18267549sec mtu 1500 advmss 1440=20 hoplimit 4294967295 default via fe80::214:be3f:f346:3a0c dev eth0 proto kernel metric 1024 = =20 expires 27sec mtu 1500 advmss 1440 hoplimit 64 My problem is when this machine connects to a non local address it uses the= =20 dynamic address in preference to the static address, I am not sure how to= =20 configure it to use the static address in preference ? Alex --TdkiTnkLhLQllcMS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHRgSfkZz88chpJ2MRAr4AAKDaoYfb20iRzXG6mKAr4z1cS1p/ZACgwTPs 8jxdRjg7cMUKgi9Jxk58i7Y= =0RDk -----END PGP SIGNATURE----- --TdkiTnkLhLQllcMS-- End of debian-user-digest Digest V2007 Issue #2844 ************************************************** Received on Thu Nov 22 17:42:10 2007

Call Pantek today for Open Source Technical Support at 1-877-546-8934 - 24/7/365X

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 02:56:58 EDT

Do you need help?X

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