From linux-india-programmers-owner@lists.linux-india.org Sat Jul 1 00:34:34 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id 5D0FA38189 for ; Sat, 1 Jul 2000 00:34:09 -0700 (PDT) Received: from localhost.localdomain (IDENT:root@[203.197.172.174]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id NAA02319 for ; Sat, 1 Jul 2000 13:07:54 +0500 (GMT+0500) Received: (from mrinal@localhost) by localhost.localdomain (8.9.3/8.9.3) id NAA03617 for linux-india-programmers@lists.linux-india.org; Sat, 1 Jul 2000 13:03:04 +0530 Date: Sat, 1 Jul 2000 13:03:04 +0530 From: Mrinal Kalakrishnan To: The Linux India Programmers Mailing List Subject: Re: how to change password. Message-ID: <20000701130304.B3518@india.com> Mail-Followup-To: The Linux India Programmers Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000629101603.25386.qmail@web1503.mail.yahoo.com>; from vishwanath_kc@yahoo.com on Thu, Jun 29, 2000 at 03:16:03AM -0700 X-Mailer: Mutt 1.3.4i (2000-06-19) X-Operating-System: Linux 2.2.16 X-Editor: VIM - Vi IMproved 5.6 X-URL: http://www.geocities.com/mrinal/ Organization: Jobless after finishing school! X-Archive-Number: 200007/1 Hi, vishwanath kalbagilmath typed: > I am developing a module called password manager, > in which i will be managing the password issue in > whole the system. > I get a username oldpassword and new password through > mails and i should update them at the OS level i mean > in /etc/passwd and also in /etc/shadow files. Dear Sir, Please give me detailed specifications about how to use this email based password changing scheme, and where to send my mails etc, so that I can change the password for all your users. Thanking you, Yours jokingly. ;-) Actually - this is *not* a good idea. Maybe you could make a PGP key at the server, and make the users encrypt all the mails sent - with that public key. At the server end, it gets decrypted automatically (make the key without a passphrase) with the help of the private key, and then do the password changing operation. -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.2.16 || PGP:B1E86F5B || Mutt 1.3.4i (2000-06-19) || VIM 5.6 -- "What you end up with, after running an operating system concept through these many marketing coffee filters, is something not unlike plain hot water." (By Matt Welsh) From linux-india-programmers-owner@lists.linux-india.org Mon Jul 3 00:24:36 2000 Received: from scorpius.SteelCity.Durgapur (unknown [61.0.133.68]) by www.aunet.org (Postfix) with ESMTP id 78EFE384DD for ; Mon, 3 Jul 2000 00:24:26 -0700 (PDT) Received: from localhost (lists@localhost) by scorpius.SteelCity.Durgapur (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id MAA30389; Mon, 3 Jul 2000 12:51:22 +0530 From: lists@123india.com X-Authentication-Warning: scorpius.SteelCity.Durgapur: lists owned process doing -bs Date: Mon, 3 Jul 2000 12:51:22 +0530 (IST) X-Sender: lists@scorpius.SteelCity.Durgapur To: linux-svgalib Cc: li-ind-prg Subject: How to print to file in svgalib? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 200007/2 Hi, I've been struggling to get an output of my screen graphics for the last 2 months. I just need a picture in jpg/png ( a screenshot). How do I do this? I am running at 1024x768 at 256 colors (mode 12) I can dump a 1024x768 byte memory to file which I fill with gl_getbox(0,0,1024,768,memory_dump_pointer) =09 I can also get a color table of 768 bytes with gl_getpalette(color_table_pointer) =09 I save these dumps to file and use netpbm's raw2gif -s 1024 768 -p color_table_file memory_dump_file > out.gif =09 This gives just a bluish-green 1024x768 box (every time). The svgalib maintainer had suggested something like the above and also said that one has to define color tables properly. Can someone help? TIA, Indraneel --=20 /************************************************************************. # Indraneel Majumdar =A1 E-mail: indraneel@123india.com # # Bioinformatics Unit (EMBNET node), =A1 URL: http://scorpius.iwarp.com # # Centre for DNA Fingerprinting and Diagnostics, # # Hyderabad, India - 500076 # `************************************************************************/ From linux-india-programmers-owner@lists.linux-india.org Mon Jul 3 09:43:32 2000 Received: from arava.co.il (unknown [212.179.127.3]) by www.aunet.org (Postfix) with SMTP id BF0B238087 for ; Mon, 3 Jul 2000 08:19:00 -0700 (PDT) Received: (qmail 26127 invoked from network); 3 Jul 2000 15:19:49 -0000 Received: from unknown (HELO matan.arava.co.il) (mail@212.179.127.68) by 212.179.127.3 with SMTP; 3 Jul 2000 15:19:49 -0000 Received: from 127.0.0.1 by matan.arava.co.il with esmtp (MasqMail 0.0.13) id 1392Bf-0Co-00; Mon, 03 Jul 2000 12:06:43 +0300 Date: Mon, 3 Jul 2000 12:06:43 +0300 (IDT) From: Matan Ziv-Av X-Sender: matan@matan.home Reply-To: Matan Ziv-Av To: lists@123india.com Cc: linux-svgalib , li-ind-prg Subject: Re: How to print to file in svgalib? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/3 On Mon, 3 Jul 2000 lists@123india.com wrote: > I've been struggling to get an output of my screen graphics for > the last 2 months. I just need a picture in jpg/png ( a screenshot). How > do I do this? > > I am running at 1024x768 at 256 colors (mode 12) > > I can dump a 1024x768 byte memory tofile which I fill with > gl_getbox(0,0,1024,768,memory_dump_pointer) > > I can also get a color table of 768 bytes with > gl_getpalette(color_table_pointer) > > I save these dumps to file and use netpbm's > raw2gif -s 1024 768 -p color_table_file memory_dump_file > out.gif Check that the raw files are really correct: Try clearing the screen and only drawing a single pixel of color 3 at (1,1) and then dump to file and check that the file is all zeros, except for a 3 in the 1025th byte. Set the palettet to something, and see if the color table file after you run your program has the values you programmed. -- Matan Ziv-Av. matan@svgalib.org From linux-india-programmers-owner@lists.linux-india.org Mon Jul 3 19:51:30 2000 Received: from smtp.mail.yahoo.com (smtp.mail.yahoo.com [128.11.68.32]) by www.aunet.org (Postfix) with SMTP id 9601638158 for ; Mon, 3 Jul 2000 19:51:25 -0700 (PDT) Received: from unknown (HELO yahoo.com) (202.54.100.59) by smtp.mail.yahoo.com with SMTP; 4 Jul 2000 02:51:22 -0000 X-Apparently-From: Message-ID: <396150A8.B4CE8B07@yahoo.com> Date: Tue, 04 Jul 2000 08:19:13 +0530 From: Ashish kumar X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: PHP Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/4 Hi There I have installed Apache and PHP rpms. Apache runs well. Html files in /home/httpd/html easily show up on the browser, but when I try to see .php3 pages, it shows the source code. Do I need to configure PHP I run it. I have tried manuals but am not able to extract anything that works from there. How do I configure PHP, if I have to configure it. ciao Ashish __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Mon Jul 3 22:59:47 2000 Received: from scorpius.SteelCity.Durgapur (unknown [61.0.133.105]) by www.aunet.org (Postfix) with ESMTP id A0BBC383E0 for ; Mon, 3 Jul 2000 22:59:39 -0700 (PDT) Received: from localhost (lists@localhost) by scorpius.SteelCity.Durgapur (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id KAA06566; Tue, 4 Jul 2000 10:21:36 +0530 From: lists@123india.com X-Authentication-Warning: scorpius.SteelCity.Durgapur: lists owned process doing -bs Date: Tue, 4 Jul 2000 10:21:36 +0530 (IST) X-Sender: lists@scorpius.SteelCity.Durgapur To: Matan Ziv-Av Cc: linux-svgalib , li-ind-prg Subject: Re: How to print to file in svgalib? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 200007/5 hi, I managed to save the color table by using gl_getpalettecolor as I couldn't figure out how gl_getpalette was working. Then using raw2gif and the saved color table (raw2gif is from libungif, not netpbm - sorry for the mistake) I can make a .gif (uncompressed) from the screen dump. The image is fine. I found out that a color table is a file with 4 entries per line. Which will be the best format to save a 256 color image? And which library will be easy to use for that? (found out that a jpg is best for 24bit, not 8bit) TIA, Indraneel On Mon, 3 Jul 2000, Matan Ziv-Av wrote: > On Mon, 3 Jul 2000 lists@123india.com wrote: > > I've been struggling to get an output of my screen graphics for > > the last 2 months. I just need a picture in jpg/png ( a screenshot). How > > do I do this? > Check that the raw files are really correct: > Try clearing the screen and only drawing a single pixel of color 3 at > (1,1) and then dump to file and check that the file is all zeros, except > for a 3 in the 1025th byte. > Set the palettet to something, and see if the color table file after you > run your program has the values you programmed. >=20 --=20 /************************************************************************. # Indraneel Majumdar =A1 E-mail: indraneel@123india.com # # Bioinformatics Unit (EMBNET node), =A1 URL: http://scorpius.iwarp.com # # Centre for DNA Fingerprinting and Diagnostics, # # Hyderabad, India - 500076 # `************************************************************************/ From linux-india-programmers-owner@lists.linux-india.org Tue Jul 4 04:13:36 2000 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id 314F5381EF for ; Tue, 4 Jul 2000 04:13:29 -0700 (PDT) Received: from qasid.cc.iitk.ac.in (qasid.cc.iitk.ac.in [172.31.1.16]) by mail.iitk.ac.in (8.9.2/8.9.2) with ESMTP id QAA22359; Tue, 4 Jul 2000 16:44:39 +0530 (IST) Received: from ajayd.cc.iitk.ac.in (IDENT:ajayd@[172.31.80.32]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id QAA21650; Tue, 4 Jul 2000 16:38:40 +0530 (IST) Date: Tue, 4 Jul 2000 16:41:53 +0530 (IST) From: Dwivedi Ajay kumar To: li-ind-prg Cc: linux-svgalib Subject: Re: How to print to file in svgalib? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/6 On Mon, 3 Jul 2000 lists@123india.com wrote: > I've been struggling to get an output of my screen graphics for > the last 2 months. I just need a picture in jpg/png ( a screenshot). How > do I do this? > Try Screenshot in KDE. In graphics/Snapshot or $ ksnapshot Hope it helps. From linux-india-programmers-owner@lists.linux-india.org Tue Jul 4 10:28:38 2000 Received: from trishul.icsoft-us.com (unknown [203.197.134.185]) by www.aunet.org (Postfix) with ESMTP id 6C23038053 for ; Mon, 3 Jul 2000 21:46:00 -0700 (PDT) Received: (from ajay@localhost) by trishul.icsoft-us.com (8.9.3/8.9.3) id KAA00793; Tue, 4 Jul 2000 10:22:04 +0530 From: ajay@trishul.icsoft-us.com Date: Tue, 4 Jul 2000 10:22:04 +0530 To: linux-india-programmers@lists.linux-india.org Cc: ajay@trishul.icsoft-us.com Subject: Re: PHP Message-ID: <20000704102204.A749@192.168.1.4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <396150A8.B4CE8B07@yahoo.com>; from email_in@yahoo.com on Tue, Jul 04, 2000 at 08:19:13AM +0530 X-Archive-Number: 200007/7 hi, To run php3 programs you must make the following changes to file ---> /etc/httpd/conf/httpd.conf find and uncomment the fillowing lines LoadModule php3_module modules/libphp3.so AddModule mod_php3.c ---> Change the Directory index line to DirectoryIndex index.php3 index.html index.htm index.shtml index.cgi --> Check if following line exists in AddType section AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps Well that should be it. --> Restart httpd ---> Now copy yoyr php file to somewhere in the html tree. ie somewhere under the /home/httpd/html/ direrctory. --> for eg. If you copy it to /home /httpd/html/ Open it in ur browser as http://localhost/filename.php3 ajay Onr Tue, Jul 04, 2000 at 08:19:13AM +0530, Ashish kumar wrote: > Hi There > > I have installed Apache and PHP rpms. Apache runs well. Html files in > /home/httpd/html easily show up on the browser, but when I try to see .php3 > pages, it shows the source code. > Do I need to configure PHP I run it. I have tried manuals but am not able to > extract anything that works from there. > How do I configure PHP, if I have to configure it. > > ciao > Ashish > > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP From linux-india-programmers-owner@lists.linux-india.org Tue Jul 4 11:06:47 2000 Received: from web1301.mail.yahoo.com (web1301.mail.yahoo.com [128.11.23.151]) by www.aunet.org (Postfix) with SMTP id 41978380AB for ; Tue, 4 Jul 2000 11:06:40 -0700 (PDT) Received: (qmail 12405 invoked by uid 60001); 4 Jul 2000 18:06:39 -0000 Message-ID: <20000704180639.12404.qmail@web1301.mail.yahoo.com> Received: from [202.9.170.234] by web1301.mail.yahoo.com; Tue, 04 Jul 2000 11:06:39 PDT Date: Tue, 4 Jul 2000 11:06:39 -0700 (PDT) From: PRAKASH GOWRI Subject: GTK + PRGMMING - BUTTON SIZE UNCONTROLLABLE!! To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/8 HI, I am a beginer in gtk+ and I have created a window with three push buttons in it(The program is given below ). But if I increase the size of the main window, the sizes of the buttons will also increase correspondingly.Is there any way to control size of the button and increase only the size of the main window (Top Level window).Please let me know, Regards Prakash G S here is the code: #include gint closeapp(GtkWidget *widget,gpointer data) { gtk_main_quit(); return(FALSE); } GtkWidget *pack(GtkWidget *box,char *label) { GtkWidget *button; button=gtk_button_new_with_label(label); gtk_box_pack_start(GTK_BOX(box),button,FALSE,FALSE,0); gtk_widget_show(button); return (button); } int main(int argc,char *argv[]) { GtkWidget *window,*button,*box; gtk_init(&argc,&argv); window=gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_signal_connect(GTK_OBJECT(window),"delete_event",GTK_SIGNAL_FUNC(closeapp),NULL); gtk_container_set_border_width(GTK_CONTAINER(window),10); gtk_widget_set_usize(window,440,280); box=gtk_hbox_new(FALSE,0); button=pack(box,"aishu"); button=pack(box,"sonali"); button=pack(box,"kajol"); gtk_container_add(GTK_CONTAINER(window),box); gtk_widget_show(box); gtk_widget_show(window); gtk_main(); exit(0); } __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Tue Jul 4 15:41:41 2000 Received: by www.aunet.org (Postfix, from userid 1000) id B71813806D; Tue, 4 Jul 2000 14:08:36 -0700 (PDT) Date: Tue, 4 Jul 2000 14:08:36 -0700 From: Sudhakar Chandrasekharan To: linux-india-programmers@lists.linux-india.org Subject: int to string? Message-ID: <20000704140836.A6657@aunet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i X-Archive-Number: 200007/9 Hi, I am in the process of writing a program that will store some data in a temporary file. I want the temp file to be /tmp/prog_name.pid I get the process id from getpid(). The pid is an int. How do I convert this int into a string (char *), so that I can cat all of it together to come up with the path that I can pass to fopen()? Thaths -- "If there were any justice, my face would be on a bunch of crappy merchandise" -- Homer J. Simpson From linux-india-programmers-owner@lists.linux-india.org Tue Jul 4 17:40:18 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id AAE5338056 for ; Tue, 4 Jul 2000 17:40:12 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id RAA28255 for linux-india-programmers@lists.linux-india.org; Tue, 4 Jul 2000 17:39:30 -0700 Date: Tue, 4 Jul 2000 17:39:30 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: int to string? Message-ID: <20000704173930.A28245@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000704140836.A6657@aunet.org>; from thaths@aunet.org on Tue, Jul 04, 2000 at 02:08:36PM -0700 X-Archive-Number: 200007/10 On Tue, Jul 04, 2000 at 02:08:36PM -0700, Sudhakar Chandrasekharan wrote: > Hi, > > I am in the process of writing a program that will store some data > in a temporary file. I want the temp file to be /tmp/prog_name.pid > > I get the process id from getpid(). The pid is an int. How do I convert > this int into a string (char *), so that I can cat all of it together to > come up with the path that I can pass to fopen()? > sprintf. -Arun From linux-india-programmers-owner@lists.linux-india.org Tue Jul 4 22:04:01 2000 Received: from hotmail.com (f104.law3.hotmail.com [209.185.241.104]) by www.aunet.org (Postfix) with SMTP id E3512382AD for ; Tue, 4 Jul 2000 22:03:42 -0700 (PDT) Received: (qmail 68542 invoked by uid 0); 5 Jul 2000 05:03:16 -0000 Message-ID: <20000705050316.68541.qmail@hotmail.com> Received: from 203.197.178.235 by www.hotmail.com with HTTP; Tue, 04 Jul 2000 22:03:16 PDT X-Originating-IP: [203.197.178.235] From: "Muthu Mohan" To: linux-india-programmers@lists.linux-india.org Subject: Re: int to string? Date: Wed, 05 Jul 2000 10:33:16 IST Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Archive-Number: 200007/11 See atoi() or int mypid; char mypidstr[6]; mypid = getpid(); sprintf(mypidstr, "%d", mypid); /* Output go to string */ puts(mypidstr); -T. Muthu Mohan. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From linux-india-programmers-owner@lists.linux-india.org Tue Jul 4 22:38:46 2000 Received: from web5305.mail.yahoo.com (web5305.mail.yahoo.com [216.115.106.114]) by www.aunet.org (Postfix) with SMTP id E6CDA380A3 for ; Tue, 4 Jul 2000 22:38:40 -0700 (PDT) Message-ID: <20000705053840.21378.qmail@web5305.mail.yahoo.com> Received: from [203.197.102.241] by web5305.mail.yahoo.com; Tue, 04 Jul 2000 22:38:40 PDT Date: Tue, 4 Jul 2000 22:38:40 -0700 (PDT) From: Santosh Singh Subject: Re: Source & Grammar To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/12 --- Sudhakar Chandra wrote: > Uber Cracker proclaimed: > > Can i get the source code & Grammar of C & C++. > Santosh proclaims that: In order to get the grammer of C & C++ compiler you can consult Aho & Ullman's book on compiler design which is good enough to jot down your own compiler. I have already developed modules upto syntax analyser for a C like language. > For information on this and other Linux India > mailing lists check out > http://lists.linux-india.org/ __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Tue Jul 4 22:55:54 2000 Received: from web5302.mail.yahoo.com (web5302.mail.yahoo.com [216.115.106.111]) by www.aunet.org (Postfix) with SMTP id 69F05382B0 for ; Tue, 4 Jul 2000 22:55:49 -0700 (PDT) Message-ID: <20000705055548.1023.qmail@web5302.mail.yahoo.com> Received: from [203.197.102.241] by web5302.mail.yahoo.com; Tue, 04 Jul 2000 22:55:48 PDT Date: Tue, 4 Jul 2000 22:55:48 -0700 (PDT) From: Santosh Singh Subject: Re: Source & Grammar To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/13 --- Sudhakar Chandra wrote: > Uber Cracker proclaimed: > > Can i get the source code & Grammar of C & C++. > > There is no "source code" of C and C++. In fact, > the concept of source > code for a language is meaningless. What you are > probably looking for is > the source code of a compiler for these languages. > Download the source > code for open source compilers for these languages > like gcc / g++. > > Thaths > -- > Marge: Okay, but you've accomplished a lot! You've > made me very happy. > Homer: Oh, yeah, they'll put me on a stamp for that! > Sudhakar C13n http://www.aunet.org/thaths/ > Lead Indentured Slave > > ----------------------------------------------------------------------- > For information on this and other Linux India > mailing lists check out > http://lists.linux-india.org/ __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Wed Jul 5 00:46:57 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 79B1C38239 for ; Wed, 5 Jul 2000 00:46:43 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id MAA00365 for ; Wed, 5 Jul 2000 12:48:04 -0500 (GMT) Received: from delhi.tcs.co.in ([157.227.12.225]) by MAILGG2.delhi.tcs.co.in (Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) with SMTP id 65256913.002A991E; Sun, 5 Jul 1970 13:15:17 +0530 Message-ID: <3962E7F0.A0A7464F@delhi.tcs.co.in> Date: Wed, 05 Jul 2000 13:16:56 +0530 From: Rohit Singh Organization: TCS X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 Cc: linux-india-programmers@lists.linux-india.org Subject: Re: GTK + PRGMMING - BUTTON SIZE UNCONTROLLABLE!! Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/14 Hi Prakash, You need to explore "packing boxes" for this. There are functions like: void gtk_box_pack_start( GtkBox *box, GtkWidget *child, gint expand, gint fill, gint padding ); using which you can achieve packing buttons/widgets with a great amount of control and flexibility. Reading the GTK Tutorial (from www.gtk.org) Chapter 4 (4.1 Theory of Packing Boxes ") will help a lot. The tutorial is great to begin with ! Regards, Rohit PRAKASH GOWRI wrote: > I have created a window with > three push buttons in it(The program is given below ). > But if I increase the size of the main window, > the sizes of the buttons will also increase > correspondingly.Is there > any way to control size of the button and increase > only the size of > the main window (Top Level window).Please let me know, > Good judgement comes from experience. Experience comes from bad judgement. -- Jim Horning From linux-india-programmers-owner@lists.linux-india.org Wed Jul 5 02:28:04 2000 Received: from kuku.excite.com (kuku-rwcmta.excite.com [198.3.99.63]) by www.aunet.org (Postfix) with ESMTP id 6A2ED38196 for ; Wed, 5 Jul 2000 02:27:58 -0700 (PDT) Received: from neon.excite.com ([199.172.153.87]) by kuku.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000705092757.DEZI21488.kuku.excite.com@neon.excite.com> for ; Wed, 5 Jul 2000 02:27:57 -0700 Message-ID: <15469379.962789277717.JavaMail.imail@neon.excite.com> Date: Wed, 5 Jul 2000 02:27:57 -0700 (PDT) From: bharat shetty To: linux-india-programmers@lists.linux-india.org Subject: Re: int to string? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 203.197.189.166 X-Archive-Number: 200007/15 try this char file[100]; int pid = getpid(); FILE * fileptr; sprintf(file,"%s%d",argv[1],pid); /* this is assuming that argv[1] has the program name(command line param) pid = pid od proc. file is the string holding final file to be created. now U can do something like this */ fileptr = fopen(file,"w"); /* go on */ hope it is good enuff. bharat On Wed, 05 Jul 2000 10:33:16 IST, linux-india-programmers@lists.linux-india.org wrote: > See atoi() > > or > > int mypid; > char mypidstr[6]; > mypid = getpid(); > sprintf(mypidstr, "%d", mypid); /* Output go to string */ > puts(mypidstr); > > > -T. Muthu Mohan. > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers _______________________________________________________ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html From linux-india-programmers-owner@lists.linux-india.org Wed Jul 5 10:37:26 2000 Received: from web1306.mail.yahoo.com (web1306.mail.yahoo.com [128.11.23.156]) by www.aunet.org (Postfix) with SMTP id 13DA638056 for ; Wed, 5 Jul 2000 10:37:21 -0700 (PDT) Received: (qmail 2397 invoked by uid 60001); 5 Jul 2000 17:37:19 -0000 Message-ID: <20000705173719.2396.qmail@web1306.mail.yahoo.com> Received: from [202.9.170.105] by web1306.mail.yahoo.com; Wed, 05 Jul 2000 10:37:19 PDT Date: Wed, 5 Jul 2000 10:37:19 -0700 (PDT) From: PRAKASH GOWRI Subject: GTK front end to 'c' prgm - passing parameters from front end to back end? To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/16 hi, In gtk+ ,if I am calling a function written in C in which I am using fscanf and fprintf for I/O operation,can I read the whatever inputs I have entered in the EntryWidget into a file and use the contents of that file in my function. Also while outputting from my function can I output the contents into a file and use that file to output into a TEXTWIDGET. Is there any other way of handling Input/Output? thank u, prakash. __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Wed Jul 5 11:33:06 2000 Received: from netscape.com (h-205-217-237-46.netscape.com [205.217.237.46]) by www.aunet.org (Postfix) with ESMTP id D4BF2381BF for ; Wed, 5 Jul 2000 11:32:52 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e65IOXg25061 for ; Wed, 5 Jul 2000 11:24:33 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FX8M6K03.51G for ; Wed, 5 Jul 2000 11:32:44 -0700 Message-ID: <39637F4B.2E669AF5@netscape.com> Date: Wed, 05 Jul 2000 11:32:43 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Why am I not getting the results I expect... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/17 Hi, I have a piece of code where I generate a random number between 1 and n. I also want to make sure that each random number is generated only once. Here is a snippet of code: int num_of_arts; int display_article_number; int * article_displayed; /* Flags stored here */ num_of_arts = 24; /* Make enough space to store the flags */ article_displayed = (int *) calloc(num_of_arts, sizeof(int)); display_article_number = 1 + (int) (((float) num_of_arts) * random() / (RAND_MAX+1.0)); while (*(article_displayed+display_article_number-1) == 1) { display_article_number = 1 + (int) (((float) num_of_arts) * random() / (RAND_MAX+1.0)); } I expect this piece of code to generate a random number between 1 and 24. But it also generates number > 24. What am I doing wrong? I got the algo to generate a random number between 1 and n from the manpage for rand() (not random()). Thaths -- Marge: Okay, but you've accomplished a lot! You've made me very happy. Homer: Oh, yeah, they'll put me on a stamp for that! Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Wed Jul 5 21:14:19 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id D32A838056 for ; Wed, 5 Jul 2000 21:14:10 -0700 (PDT) Received: from localhost.localdomain (IDENT:root@PPP-181-156.bng.vsnl.net.in [203.197.181.156]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id JAA24069 for ; Thu, 6 Jul 2000 09:47:59 +0500 (GMT+0500) Received: (from mrinal@localhost) by localhost.localdomain (8.9.3/8.9.3) id JAA02190 for linux-india-programmers@lists.linux-india.org; Thu, 6 Jul 2000 09:43:30 +0530 Date: Thu, 6 Jul 2000 09:43:30 +0530 From: Mrinal Kalakrishnan To: The Linux India Programmers Mailing List Subject: Re: Why am I not getting the results I expect... Message-ID: <20000706094330.A2093@india.com> Mail-Followup-To: The Linux India Programmers Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39637F4B.2E669AF5@netscape.com>; from thaths@netscape.com on Wed, Jul 05, 2000 at 11:32:43AM -0700 X-Mailer: Mutt 1.3.4i (2000-06-19) X-Operating-System: Linux 2.2.16 X-Editor: VIM - Vi IMproved 5.6 X-URL: http://www.geocities.com/mrinal/ Organization: Jobless after finishing school! X-Archive-Number: 200007/18 Hi, Sudhakar Chandra typed: > display_article_number = 1 + (int) (((float) num_of_arts) * random() / > (RAND_MAX+1.0)); The only random number > 24 that you seem to get with this code is 25. When random() becomes very near RAND_MAX it seems to return 25. (Try substituting RAND_MAX for random() ). Most likely the problem is the lack of precision of float. Change float to double and things seem to work fine. But this algorithm will get slower and slower as you get to the last few random numbers. A better way to do the task would be: #include #include int main() { int num_of_arts,i,size_of_array; int display_article_number; int * article_displayed; num_of_arts=24; article_displayed= (int *) malloc(num_of_arts*sizeof(int)); for (i=0;i<24;i++) article_displayed[i]=i+1; /* Fill the array with numbers from 1 to 24 */ size_of_array=24; /* The number of remaining random numbers yet to be chosen */ do { display_article_number = (int) (((double) size_of_array) * random() / (RAND_MAX+1.0)); /* Select a random number from 0 to size_of_array-1 */ printf("%d\n",article_displayed[display_article_number]); /* Print the number in the array at that index */ article_displayed[display_article_number]= article_displayed[--size_of_array]; /* Now decrement size_of_array and move the last * element of the array to the position already * printed */ } while (size_of_array); } I hope it is self-explanatory! ;-) (Thanks to my dad for the above algorithm and for pointing out the inaccuracy of float) -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.2.16 || PGP:B1E86F5B || Mutt 1.3.4i (2000-06-19) || VIM 5.6 -- quit When the quit statement is read, the bc processor is terminated, regardless of where the quit state- ment is found. For example, "if (0 == 1) quit" will cause bc to terminate. (Seen in the manpage for "bc". Note the "if" statement's logic) From linux-india-programmers-owner@lists.linux-india.org Wed Jul 5 21:17:01 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 5ED24380A6 for ; Wed, 5 Jul 2000 21:16:52 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA25696 for ; Thu, 6 Jul 2000 09:42:56 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA10150 for ; Thu, 6 Jul 2000 09:45:24 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAAC; Thu, 6 Jul 2000 09:46:42 +0530 Date: Thu, 6 Jul 2000 09:57:16 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Sudhakar Chandra Cc: linux-india-programmers@lists.linux-india.org Subject: Re: Why am I not getting the results I expect... In-Reply-To: <39637F4B.2E669AF5@netscape.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/19 + display_article_number = 1 + (int) (((float) num_of_arts) * random() / + (RAND_MAX+1.0)); [snip] + + I expect this piece of code to generate a random number between 1 and 24. + But it also generates number > 24. What am I doing wrong? I got the algo + to generate a random number between 1 and n from the manpage for rand() + (not random()). Does not seem to be the case here. The outpt is as expected. BTW, what is the processor type? Is it because of the same "lower-order bits" thing as mentioned in rand man page (arch dependence... huh). Sharad. From linux-india-programmers-owner@lists.linux-india.org Wed Jul 5 22:28:07 2000 Received: from mail.iitk.ac.in (unknown [210.212.54.10]) by www.aunet.org (Postfix) with ESMTP id 2331938165 for ; Wed, 5 Jul 2000 22:27:53 -0700 (PDT) Received: from qasid.cc.iitk.ac.in (qasid.cc.iitk.ac.in [172.31.1.16]) by mail.iitk.ac.in (8.9.2/8.9.2) with ESMTP id KAA03668 for ; Thu, 6 Jul 2000 10:59:12 +0530 (IST) Received: from ajayd.cc.iitk.ac.in (IDENT:ajayd@[172.31.80.32]) by qasid.cc.iitk.ac.in (8.9.2/8.9.2) with ESMTP id KAA12645 for ; Thu, 6 Jul 2000 10:53:10 +0530 (IST) Date: Thu, 6 Jul 2000 10:57:35 +0530 (IST) From: Dwivedi Ajay kumar To: linux-india-programmers@lists.linux-india.org Subject: Re: Why am I not getting the results I expect... In-Reply-To: <39637F4B.2E669AF5@netscape.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/20 On Wed, 5 Jul 2000, Sudhakar Chandra wrote: I did not find any nuber greater than 24 when executed this with a printf;s etc Please send the complete code. The modifications made by me for printing were.... main() { > > int num_of_arts; > int display_article_number; > int * article_displayed; /* Flags stored here */ > > > num_of_arts = 24; > > /* Make enough space to store the flags */ > article_displayed = (int *) calloc(num_of_arts, sizeof(int)); > > > > display_article_number = 1 + (int) (((float) num_of_arts) * random() / > (RAND_MAX+1.0)); > printf("%d\n",display_article_number); > while (*(article_displayed+display_article_number-1) == 1) { //replaced this by while (1) {// I think there is some code before this line in yr orig script > display_article_number = 1 + (int) (((float) num_of_arts) * random() / > (RAND_MAX+1.0)); another printf > } > > > > I expect this piece of code to generate a random number between 1 and 24. In my case it did. ----------- #!!! If anything can go wrong, _FIX_ it. (To hell with MURPHY) Ajay kumar Dwivedi ajayd@iitk.ac.in From linux-india-programmers-owner@lists.linux-india.org Wed Jul 5 23:00:18 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id 689EC380CA for ; Wed, 5 Jul 2000 23:00:12 -0700 (PDT) Received: from linux.sankyasys (PPP-181-228.bng.vsnl.net.in [203.197.181.228]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id LAA23100 for ; Thu, 6 Jul 2000 11:34:02 +0500 (GMT+0500) Received: (from kala@localhost) by linux.sankyasys (8.9.3/8.8.7) id LAA02420 for linux-india-programmers@lists.linux-india.org; Thu, 6 Jul 2000 11:30:05 +0530 Date: Thu, 6 Jul 2000 11:30:05 +0530 From: Babu Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: Why am I not getting the results I expect... Message-ID: <20000706113005.A1490@linux.sankyasys> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: <20000706094330.A2093@india.com> X-Operating-System: Linux - Red Hat 6.1 (PCQ) X-Kernel: Kernel 2.2.12-20 on an i686 Organization: Sankya Systems & Objects (P) Ltd., Bangalore, India X-Archive-Number: 200007/21 On Thu, Jul 06, 2000 at 09:43:30AM +0530, Mrinal Kalakrishnan typed: > num_of_arts=24; > > article_displayed= (int *) malloc(num_of_arts*sizeof(int)); > > for (i=0;i<24;i++) article_displayed[i]=i+1; ^^ should be "for (i=0;i > /* Fill the array with numbers from 1 to 24 */ > > size_of_array=24; /* The number of remaining random numbers > ^^ yet to be chosen */ should be "size_of_array=num_of_arts" Kala From linux-india-programmers-owner@lists.linux-india.org Wed Jul 5 23:20:50 2000 Received: from mail.ciol.com (unknown [216.46.224.153]) by www.aunet.org (Postfix) with SMTP id 0210038150 for ; Wed, 5 Jul 2000 23:20:45 -0700 (PDT) Received: from mail.ciol.com [216.46.224.165] by mail.ciol.com (SMTPD32-4.07) id A4E6A860044; Thu, 06 Jul 2000 01:19:18 CDT From: "Venkatesh Murthy G" Reply-To: "Venkatesh Murthy G" Date: Thu, 6 Jul 100 01:19:18 CDT To: linux-india-programmers@lists.linux-india.org Subject: Re: Why am I not getting the results I expect... Message-Id: <20000706062046.0210038150@www.aunet.org> X-Archive-Number: 200007/22 >I have a piece of code where I generate a random number between 1 and n. You're running Linux, I presume? You want to try (random () % 24) + 1 ? This should also tell you the index in the array. Venkatesh -- Venkatesha Murthy G. http://www.ciol.com/content/services/forum/ From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 04:49:19 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id 90EC13805E for ; Thu, 6 Jul 2000 04:49:06 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.214]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 65256914.00410E9B; Thu, 6 Jul 2000 17:20:35 +0530 Message-ID: <3963C91B.DFFF8B57@hydbad.tcs.co.in> Date: Thu, 06 Jul 2000 05:17:39 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Linux India Programmers Subject: Elliptic curve cryptography code Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/23 hi to everybody, I am trying to find a site where I can download the Elliptic curve cryptography code in any language for Unix flavours, but I didnt any find suitable site.. Can u please help in it. Where can I download Elliptic Curve Cryptography code???? Thanks in advance & regards, Ravi Prakash From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 05:23:14 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 73E213818C for ; Thu, 6 Jul 2000 05:22:59 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id RAA21869 for ; Thu, 6 Jul 2000 17:48:54 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id RAA18434 for ; Thu, 6 Jul 2000 17:51:23 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA6D30; Thu, 6 Jul 2000 17:52:38 +0530 Date: Thu, 6 Jul 2000 18:03:15 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: " Ravi Prakash B.V." Cc: Linux India Programmers Subject: Re: Elliptic curve cryptography code In-Reply-To: <3963C91B.DFFF8B57@hydbad.tcs.co.in> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/24 + I am trying to find a site where I can download the Elliptic curve + cryptography code in any language for Unix flavours, but I didnt any + find suitable site.. I dont think you'll get any 'professional' code freely available for things like cryptography. Anyway, you can get a head start from here... http://ds.dial.pipex.com/george.barwood/crypto.htm Sharad. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 05:58:05 2000 Received: from arianne.ishoni.com (unknown [164.164.83.132]) by www.aunet.org (Postfix) with ESMTP id 9A9943805C for ; Thu, 6 Jul 2000 05:57:59 -0700 (PDT) Received: from kedar.in.ishoni.com (IDENT:kedar@kedar.in.ishoni.com [192.168.1.75]) by arianne.ishoni.com (8.9.3/8.9.3) with ESMTP id SAA27075 for ; Thu, 6 Jul 2000 18:29:42 +0530 Date: Thu, 6 Jul 2000 18:34:00 +0530 (IST) From: Kedar Patankar X-Sender: kedar@kedar.in.ishoni.com To: Linux India Programmers Subject: Re: Elliptic curve cryptography code In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/25 > + I am trying to find a site where I can download the Elliptic curve > + cryptography code in any language for Unix flavours, but I didnt any > + find suitable site.. You can try http://www.certicom.com. They have an online tutorial on elliptic curve cryptography (java code, so you should be able to do a "view source" on the page). Another source is a book named There is also a book "Cryptography and Network Security" by William Stallings. He also covers elliptic curve cryptography, and also gives a lot of source code. HTH, Kedar. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 06:35:45 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id 3BD1A38074 for ; Thu, 6 Jul 2000 06:35:33 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.214]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 65256914.004AD6CB; Thu, 6 Jul 2000 19:07:26 +0530 Message-ID: <3963E229.6C2824AD@hydbad.tcs.co.in> Date: Thu, 06 Jul 2000 07:04:33 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Sharad Joshi , Linux India Programmers Subject: Re: Elliptic curve cryptography code Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/26 Hi Sharad, It doest not contain complete code(conio.h etc is missing) and also it is for windows. Can u suggest some other alterative..... Thanks Ravi Prakash Sharad Joshi wrote: > + I am trying to find a site where I can download the Elliptic curve > + cryptography code in any language for Unix flavours, but I didnt any > + find suitable site.. > > I dont think you'll get any 'professional' code freely available for > things like cryptography. Anyway, you can get a head start from here... > http://ds.dial.pipex.com/george.barwood/crypto.htm > > Sharad. > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 07:09:58 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id DF16F38096 for ; Thu, 6 Jul 2000 07:09:47 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.214]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 65256914.004DF87F; Thu, 6 Jul 2000 19:41:38 +0530 Message-ID: <3963EA29.D9FB3E04@hydbad.tcs.co.in> Date: Thu, 06 Jul 2000 07:38:41 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Kedar Patankar , Linux India Programmers Subject: Re: Elliptic curve cryptography code Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/27 Thanks for ur information..... But it doesnt helped me.... I didnt find any java code in certicom. It is giving only ECC challenge doc as downloadable.... I am having Cryptography and Network Security book... It didnt give any source code.. not even "william stallings site" does not contain any code for it. Ravi Kedar Patankar wrote: > > + I am trying to find a site where I can download the Elliptic curve > > + cryptography code in any language for Unix flavours, but I didnt any > > + find suitable site.. > > You can try http://www.certicom.com. They have an online tutorial on > elliptic curve cryptography (java code, so you should be able to do a > "view source" on the page). Another source is a book named > > There is also a book "Cryptography and Network Security" by William > Stallings. He also covers elliptic curve cryptography, and also gives a > lot of source code. > > HTH, > Kedar. > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 08:11:37 2000 Received: from bgl2.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id CB5D83811D for ; Wed, 5 Jul 2000 23:07:03 -0700 (PDT) Received: from bgl.vsnl.net.in ([203.197.179.160]) by bgl2.vsnl.net.in (8.9.3/8.9.3) with SMTP id LAA16637 for linux-india-programmers@lists.linux-india.org; Thu, 6 Jul 2000 11:21:18 +0530 (IST) Date: Thu, 6 Jul 2000 11:21:18 +0530 (IST) Message-Id: <200007060551.LAA16637@bgl2.vsnl.net.in> From: "Venkatesha Murthy G." Reply-To: gvmt@bgl.vsnl.net.in To: linux-india-programmers@lists.linux-india.org Subject: Re: Why am I not getting the results I expect... X-Archive-Number: 200007/28 If we can safely assume that you're compiling this on a Linux machie, (you'd probably not have posted to this list otherwise, would you?) then the random () library function returns an integer (long int, actually; unless my manpages are dated; or yours). In which case you don't need to do any int-to-float-and-then-back-to-int conversions which are fraught with rounding related dangers which probably are giving you your headache. So if you have random () returning long on your machine, this should suffice ((int) (random ()) % 24) + 1 The number will, of course, also serve as the index into the array. Glad to be of assistance. Venkatesh > I have a piece of code where I generate a random number between 1 and n. I > also want to make sure that each random number is generated only once. > > Here is a snippet of code: > > int num_of_arts; > int display_article_number; > int * article_displayed; /* Flags stored here */ > > > num_of_arts = 24; > > /* Make enough space to store the flags */ > article_displayed = (int *) calloc(num_of_arts, sizeof(int)); > > > > display_article_number = 1 + (int) (((float) num_of_arts) * random() / > (RAND_MAX+1.0)); > -- Venkatesha Murthy G. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 10:00:58 2000 Received: from netscape.com (h-205-217-237-46.netscape.com [205.217.237.46]) by www.aunet.org (Postfix) with ESMTP id 99357381EE for ; Thu, 6 Jul 2000 10:00:40 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e66GqMg23533 for ; Thu, 6 Jul 2000 09:52:22 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FXACKY01.JBH for ; Thu, 6 Jul 2000 10:00:34 -0700 Message-ID: <3964BB32.59B9F2DF@netscape.com> Date: Thu, 06 Jul 2000 10:00:34 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Why am I not getting the results I expect... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/29 "Venkatesha Murthy G." proclaimed: > If we can safely assume that you're compiling this on a Linux machie, > (you'd probably not have posted to this list otherwise, would you?) > then the random () library function returns an integer (long int, > actually; unless my manpages are dated; or yours). In which case you > don't need to do any int-to-float-and-then-back-to-int conversions > which are fraught with rounding related dangers which probably are > giving you your headache. > > So if you have random () returning long on your machine, this should > suffice > > ((int) (random ()) % 24) + 1 Thanks Venkatest. I figured this out by accident yesterday. Now I know the reason why it worked. Thaths -- Marge: Okay, but you've accomplished a lot! You've made me very happy. Homer: Oh, yeah, they'll put me on a stamp for that! Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 11:27:10 2000 Received: from inbound.satyam.net.in (unknown [202.144.76.6]) by www.aunet.org (Postfix) with ESMTP id B8B2638065 for ; Thu, 6 Jul 2000 11:27:03 -0700 (PDT) Received: from tnvhydrotech (210.214.122.136) by inbound.satyam.net.in (NPlex 4.5.051) id 396474EF0000EDE4 for linux-india-programmers@lists.linux-india.org; Thu, 6 Jul 2000 18:23:56 +0000 Message-ID: <003301bfe779$1e9e1980$887ad6d2@tnvhydrotech> From: "Sharat Chandra" To: Subject: Re: Why am I not getting the results I expect... Date: Fri, 7 Jul 2000 00:03:37 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="x-user-defined" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Archive-Number: 200007/30 > > > > So if you have random () returning long on your machine, this should > > suffice > > > > ((int) (random ()) % 24) + 1 > > Thanks Venkatest. I figured this out by accident yesterday. Now I know > the reason why it worked. > > Thaths A small piece of information: The lower order bits of a random number generated by the "remainder" method are supposed to be less random than the higher order bits. Saw this in a book "Numerical Recipies in C". So, according to the book, the above method is not, academically, the best. But what the heck, it works fine if you are not running some critical scientific simulations. -Sharat- From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 13:26:04 2000 Received: from netscape.com (h-205-217-237-46.netscape.com [205.217.237.46]) by www.aunet.org (Postfix) with ESMTP id 8DA0F3804E for ; Thu, 6 Jul 2000 13:25:55 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e66KHfg23118 for ; Thu, 6 Jul 2000 13:17:41 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FXAM3603.IFR for ; Thu, 6 Jul 2000 13:25:54 -0700 Message-ID: <3964EB52.D7B0B721@netscape.com> Date: Thu, 06 Jul 2000 13:25:54 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Why am I not getting the results I expect... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/31 Sharat Chandra proclaimed: > > > So if you have random () returning long on your machine, this should > > > suffice > > > > > > ((int) (random ()) % 24) + 1 > > Thanks Venkatest. I figured this out by accident yesterday. Now I know > > the reason why it worked. > A small piece of information: > > The lower order bits of a random number generated by the "remainder" method > are supposed to be less random than the higher order bits. Saw this in a > book "Numerical Recipies in C". That is what rand()'s man page said too. That was why I was doing the whole int -> float -> int casting. random() seems to a different beast than rand(). One more thing I did not mention was that I was using that snippet of code in a module for xscreensaver. random() behaves different when used inside a xscreensaver module. It is porbably because of some of the utility functions I am linking against. Thaths -- Marge: Okay, but you've accomplished a lot! You've made me very happy. Homer: Oh, yeah, they'll put me on a stamp for that! Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 19:10:39 2000 Received: from diamond.dcs.co.in (unknown [202.9.170.178]) by www.aunet.org (Postfix) with ESMTP id CFD4B3804E for ; Thu, 6 Jul 2000 12:52:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by diamond.dcs.co.in (8.9.3/8.8.7) with ESMTP id BAA00575; Fri, 7 Jul 2000 01:08:56 +0530 Date: Fri, 7 Jul 2000 01:08:56 +0530 (IST) From: Deepak Chandrashekar X-Sender: deepakc@diamond.dcs.co.in To: linux-india-programmers@egroups.com, linux-india-programmers@lists.linux-india.org Subject: Re: [linux-india-programmers] C++ question In-Reply-To: <20000706210923.A454@vsnl.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/32 Hi, You are assigning ptr the address of the object c.(cast as an int) Hence you are accessing the memory directly.This (kind of) violates the OOPS philosophy.One of the reasons Java doesen't have pointers...... BTW, does any one have any documentation,references or resources on the web (online papers, books etc.) regarding gcc internals and the data structures used in gcc 2.95.2.(other than the original gcc manuals "Using and porting GNU CC"). Help would be most deeply appreciated Regards, Deepak Chandrashekar On Thu, 6 Jul 2000, G Gautam wrote: > Hi, > > This isn't a linux question but it does happen with g++. So that's why I have posted here. > > #include > > class tmp > { > private: > int var; > public: > void set( int i ) > { > var = i; > }; > }; > > main() > { > int *ptr; > tmp c; > > c.set( 200 ); > ptr = ( int* ) &c; > > cout << *ptr; > return 0; > } > > I really should not be seeing the value of var, right? I would appreciate any feedback. > > Thanks > Gautam > > ------------------------------------------------------------------------ > Who invented Gatorade -- and what part did it play in > winning the1967 Orange Bowl? Find out the true facts at > http://click.egroups.com/1/6212/8/_/30164/_/962898033/ > ------------------------------------------------------------------------ > From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 21:00:28 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id 4946C38051 for ; Thu, 6 Jul 2000 21:00:20 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 7 Jul 2000 09:32:09 -0500 Received: from [172.16.2.96] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 7 Jul 2000 09:27:49 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Fri, 07 Jul 2000 09:28:34 +0530 Message-Id: <002d01bfe7a2$20c801c0$161819ac@io26> From: "Mahesh" To: Subject: Re: Re: [linux-india-programmers] C++ question Date: Fri, 7 Jul 2000 09:30:08 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/33 ----- Original Message ----- From: Deepak Chandrashekar Hi Gautam, You can violate C++ concepts and even go ahead and access private variables and private virtual functions and as deepak rightly stated this is probably one of the reasons why java has no pointers. I send a sample code which will allow u to acess private variables and private virtual functions #include class tp { int x; float y; char z; public: tp():x(0),y(10.0),z('A') { } }; /* End of class */ int main() { void* p; tp t; p =(int*) (&t); cout<<*((int*)p)<; Sent: Friday, July 07, 2000 5:38 AM Subject: [LIP] Re: [linux-india-programmers] C++ question > On Thu, 6 Jul 2000, G Gautam wrote: > > > Hi, > > > > This isn't a linux question but it does happen with g++. So that's why I have posted here. > > > > #include > > > > class tmp > > { > > private: > > int var; > > public: > > void set( int i ) > > { > > var = i; > > }; > > }; > > > > main() > > { > > int *ptr; > > tmp c; > > > > c.set( 200 ); > > ptr = ( int* ) &c; > > > > cout << *ptr; > > return 0; > > } > > > > I really should not be seeing the value of var, right? I would appreciate any feedback. > > > > Thanks > > Gautam > > > > ------------------------------------------------------------------------ > > Who invented Gatorade -- and what part did it play in > > winning the1967 Orange Bowl? Find out the true facts at > > http://click.egroups.com/1/6212/8/_/30164/_/962898033/ > > ------------------------------------------------------------------------ > > > > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP > From linux-india-programmers-owner@lists.linux-india.org Thu Jul 6 22:23:40 2000 Received: from bgl2.vsnl.net.in (bgl2.vsnl.net.in [202.54.12.46]) by www.aunet.org (Postfix) with ESMTP id DBAB03802E for ; Thu, 6 Jul 2000 21:56:37 -0700 (PDT) Received: from bgl.vsnl.net.in ([203.197.179.67]) by bgl2.vsnl.net.in (8.9.3/8.9.3) with SMTP id KAA25385 for linux-india-programmers@lists.linux-india.org; Fri, 7 Jul 2000 10:23:45 +0530 (IST) Date: Fri, 7 Jul 2000 10:23:45 +0530 (IST) Message-Id: <200007070453.KAA25385@bgl2.vsnl.net.in> From: "Venkatesha Murthy G." Reply-To: venkateshg@ciol.com To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: [linux-india-programmers] C++ question X-Archive-Number: 200007/34 > I really should not be seeing the value of var, right? If you had struct X { int a ; } ; X y ; then, (int *) &y would actually give you &(y.a). A class is just a structure, internally. Non-inlined functions are replaced by function pointers; overloaded names are resolved using mangling; access to public and private variables are handled using typing; there may be "hidden" members, sometimes, as will happen in derived classes with virtual functions; a derived class will turn out to be a larger structure than the class definition would lead you to believe; but a class is essentially a structure. So it all eventually depends on how the internal structure definition is; if the declaration order is maintained and all generated members are inserted after declared members, you'll see the behaviour you're seeing. I don't think there are guarantees about that tho'. It may be instructive to see the output of the AT&T C++ to C translator, which was one of the early ways of programming with C++; it is a frontend which converts all your C++ code to C code, and uses a C compiler along with a library. If you can get hold of that, you can see how it handles classes. I guess the C++ ARM also has something about this; would anyone confirm? Venkatesh From linux-india-programmers-owner@lists.linux-india.org Fri Jul 7 02:53:16 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 067D3380C7 for ; Fri, 7 Jul 2000 02:52:54 -0700 (PDT) Received: (qmail 32733 invoked by uid 417); 7 Jul 2000 09:57:39 -0000 Received: from unknown (HELO outsight) (202.54.48.142) by smtpa.softhome.net with SMTP; 7 Jul 2000 09:57:39 -0000 Received: by localhost with Microsoft MAPI; Fri, 7 Jul 2000 15:25:48 -0000 Message-ID: <01BFE827.A06E8770.aditya.trivedi@softhome.net> From: "aditya.trivedi" To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: Elliptic curve cryptography code Date: Fri, 7 Jul 2000 15:25:47 -0000 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/35 These URL's may be useful http://www.consensus.com/ecc/wecc4.htm http://www.manning.com/Rosing/ some downloads are available at this URL http://www.geocities.com/SiliconValley/Network/2811/ec/ec_src.htm Aditya -----Original Message----- From: Ravi Prakash B.V. [SMTP:ravibv@hydbad.tcs.co.in] Sent: Thursday, July 06, 2000 5:18 AM To: Linux India Programmers Subject: [LIP] Elliptic curve cryptography code hi to everybody, I am trying to find a site where I can download the Elliptic curve cryptography code in any language for Unix flavours, but I didnt any find suitable site.. Can u please help in it. Where can I download Elliptic Curve Cryptography code???? Thanks in advance & regards, Ravi Prakash ----------------------------------------------------------------------- The LIP mailing list archives are available at: http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Fri Jul 7 03:42:10 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id 23678380CB for ; Fri, 7 Jul 2000 03:42:04 -0700 (PDT) Received: (from madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) id QAA28506 for linux-india-programmers@lists.linux-india.org; Fri, 7 Jul 2000 16:11:59 +0530 Date: Fri, 7 Jul 2000 16:11:59 +0530 From: "Madhu M. Kurup" To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: [linux-india-programmers] C++ question Message-ID: <20000707161159.C28326@exocore.com> Reply-To: "Madhu M. Kurup" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200007070453.KAA25385@bgl2.vsnl.net.in>; from venkateshg@ciol.com on Fri, Jul 07, 2000 at 10:23:45AM +0530 X-Archive-Number: 200007/36 Venkatesha Murthy G. encoded : >It may be instructive to see the output of the AT&T C++ to C translator, >which was one of the early ways of programming with C++; it is a frontend >which converts all your C++ code to C code, and uses a C compiler along >with a library. If you can get hold of that, you can see how it handles >classes. This brings me to something that I'm quite fond of - it's perfectly possible to program using OOPS in C, Logo, Basic or whatever you have. C++ only programmatically provides you features that help in writing OOP code easier. As a teacher of mine ( a certain Mr. Vijayan) said "If you really want to shoot yourself, nothing can prevent you - except C++ makes it difficult for you to do so" when we asked him a very similar question on pointers, C++, and OOPS. And when asked about Java and memory management, he said that "Java thinks that memory management is *so* important that no one expect that language should be entrusted with it." On the other hand "C++ thinks that memory management is **SO** important that no one expect the programmer should be entrusted with it!!!!" :-)). Without raising too much of a fuss, Java jumping around about being completely object oriented is a bit off. The basic types in Java are *not* objects, as compared to the similar situation in C++, which leads to some nasty issues....... Cheerio, M Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Fri Jul 7 04:01:25 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id BB0CC380F1 for ; Fri, 7 Jul 2000 04:01:05 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id QAA09028; Fri, 7 Jul 2000 16:02:13 -0500 (GMT) Received: from delhi.tcs.co.in ([157.227.12.225]) by MAILGG2.delhi.tcs.co.in (Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) with SMTP id 65256915.003CC647; Tue, 7 Jul 1970 16:33:49 +0530 Message-ID: <3965B87E.141E5B57@delhi.tcs.co.in> Date: Fri, 07 Jul 2000 16:31:18 +0530 From: Rohit Singh Organization: TCS X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: "Madhu M. Kurup" Cc: linux-india-programmers@lists.linux-india.org Subject: Re: Re: [linux-india-programmers] C++ question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/37 > Without raising too much of a fuss, Java jumping around about being > completely object oriented is a bit off. The basic types in Java are *not* > objects, as compared to the similar situation in C++, which leads to some > nasty issues....... By having primitive types, a language does not become non-object oriented. Java's types are the primitive types and reference types. Java provides us with wrapper class to wrap all primitive types. Java is a general-purpose, concurrent, class-based, object-oriented language. Regards, Rohit -- A critic is a bundle of biases held loosely together by a sense of taste. -- Whitney Balliett From linux-india-programmers-owner@lists.linux-india.org Fri Jul 7 04:12:35 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id 27B2C381DF for ; Fri, 7 Jul 2000 04:12:29 -0700 (PDT) Received: from localhost (madhu@localhost) by cix.exocore.com (8.9.3/8.8.7) with ESMTP id QAA28724; Fri, 7 Jul 2000 16:41:33 +0530 Date: Fri, 7 Jul 2000 16:41:33 +0530 (IST) From: "Madhu M. Kurup" To: Rohit Singh Cc: linux-india-programmers@lists.linux-india.org Subject: Re: Re: [linux-india-programmers] C++ question In-Reply-To: <3965B87E.141E5B57@delhi.tcs.co.in> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/38 On Fri, 7 Jul 2000, Rohit Singh wrote: > By having primitive types, a language does not become non-object > oriented. > Java's types are the primitive types and reference types. Java provides > us with wrapper class to wrap all primitive types. I never claimed it made Java non object oriented (RTFMail.... :-))). I just said that when java claims that it is *more* OO than C++, one must remember this fact! > Java is a general-purpose, concurrent, class-based, object-oriented > language. I personally use and like some elements of Java. However, if that makes me passive to what clearly are serious programmatic issues in Java, then I would be foolish. Cheerio, M p.s. a comment I heard at a Infosys seminar went "Java is write once, debug everywhere". All flames to /dev/null - that was a joke dammit! Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@exocore.com From linux-india-programmers-owner@lists.linux-india.org Fri Jul 7 04:15:16 2000 Received: from gg2ns.delhi.tcs.co.in (unknown [202.54.61.36]) by www.aunet.org (Postfix) with ESMTP id 6CA1D3807E for ; Fri, 7 Jul 2000 04:15:08 -0700 (PDT) Received: from MAILGG2.delhi.tcs.co.in (mailgg2 [157.227.2.117]) by gg2ns.delhi.tcs.co.in (8.9.1b+Sun/8.9.1) with SMTP id QAA09149 for ; Fri, 7 Jul 2000 16:16:34 -0500 (GMT) Received: from delhi.tcs.co.in ([157.227.12.225]) by MAILGG2.delhi.tcs.co.in (Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) with SMTP id 65256915.003E16ED; Tue, 7 Jul 1970 16:48:11 +0530 Message-ID: <3965BBDB.F9CA83CA@delhi.tcs.co.in> Date: Fri, 07 Jul 2000 16:45:39 +0530 From: Rohit Singh Organization: TCS X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: "linux-india-programmers@lists.linux-india.org" Subject: Re: Re: [linux-india-programmers] C++ question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/39 Mahesh wrote: > You can violate C++ concepts and even go ahead and access private > variables > and > private virtual functions and as deepak rightly stated this is probably one > of the reasons > why java has no pointers. Okay, Java has no pointers, but even in Java, if you are determined enough you can access the private members! Serialize the objects and read and interpret their state... you'll be able to read all private members that way! unless, youve made them transient... (Just for a little mirch masala...) Rohit -- A critic is a bundle of biases held loosely together by a sense of taste. -- Whitney Balliett From linux-india-programmers-owner@lists.linux-india.org Fri Jul 7 08:44:08 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id 7B34938059 for ; Fri, 7 Jul 2000 08:43:57 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.214]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 65256915.00569263; Fri, 7 Jul 2000 21:15:35 +0530 Message-ID: <396551B7.57260F9F@hydbad.tcs.co.in> Date: Fri, 07 Jul 2000 09:12:47 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Linux India Programmers Subject: Re: Problem while testing the newly installed Apache-SSL server Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/40 hi , I am trying to support apache web server with ssl. I added the apache-ssl patch to apache code... and then configure, compiled and installed..... After installation, to start, "/usr/local/apache/bin/httpsdctl start " it is giving the error message "unable to start httpd" and logged in the log file. logged message is : [crit] Required SSLCacheServerPort missing Can u help me in rectifying this error. Thanks in advance & regards, Ravi From linux-india-programmers-owner@lists.linux-india.org Fri Jul 7 10:24:34 2000 Received: from netscape.com (h-205-217-237-46.netscape.com [205.217.237.46]) by www.aunet.org (Postfix) with ESMTP id AFEF538082 for ; Fri, 7 Jul 2000 10:24:28 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e67HGBg09423 for ; Fri, 7 Jul 2000 10:16:11 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FXC8CP02.IR5 for ; Fri, 7 Jul 2000 10:24:25 -0700 Message-ID: <39661249.A3DFE65B@netscape.com> Date: Fri, 07 Jul 2000 10:24:25 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: [X11 Question] Is there a least common denominator font? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/41 Hi, I am in the process of writing a X11 program. The program basically scrolls text across a screen. I want this program to be portable across the different unices. Is there such a thing as a least common denominator font? I am currently making the program use -adobe-helvetica-* which is installed on my system. My code has a fall back mechanism in it where if it does not find the specified font it will fall back to some common font (currently, -*-times-*). Thaths -- Homer: And, these Hardy Boys books are great, too! This one's about smugglers! Bart: They're all about smugglers. Homer: No, not this one! "The Smugglers of Pirate Cove". It's about pirates. Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Sat Jul 8 04:30:03 2000 Received: from md3.vsnl.net.in (md3.vsnl.net.in [202.54.6.35]) by www.aunet.org (Postfix) with ESMTP id 275FA3807B for ; Sat, 8 Jul 2000 04:29:58 -0700 (PDT) Received: from server.mcs.com (IDENT:root@[210.212.251.41]) by md3.vsnl.net.in (8.9.3/8.9.3) with ESMTP id QAA11630 for ; Sat, 8 Jul 2000 16:56:01 +0530 (IST) Received: from trisul (trisul.mcs.com [192.168.1.7]) by server.mcs.com (8.9.3/8.8.7) with SMTP id QAA03040 for ; Sat, 8 Jul 2000 16:55:26 +0530 Message-ID: <009b01bfe8cf$32f737c0$0701a8c0@mcs.com> From: "Lakshmi Anand K." To: "LIP" Subject: JSP Performance Date: Sat, 8 Jul 2000 16:55:19 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Archive-Number: 200007/42 Am using Tomcat standalone, with the latest jdk from PCQ & Postgres. Some pages get displayed in less than a second but some take two rotations of the (IE's) globe. They take that much time even if I comment out all code, even the imports! Its just driving me crazy - please suggest what to do. ------------------ Lakshmi Anand K MSPV Group Pavoorchatram From linux-india-programmers-owner@lists.linux-india.org Sat Jul 8 18:54:25 2000 Received: from cheedu.dyndns.org (unknown [203.197.177.131]) by www.aunet.org (Postfix) with ESMTP id 1FDC33805B for ; Sat, 8 Jul 2000 18:54:16 -0700 (PDT) Received: from localhost (omicron@localhost) by cheedu.dyndns.org (8.9.3/8.8.7) with ESMTP id WAA02678 for ; Sat, 8 Jul 2000 22:36:17 +0530 From: omicron@pes.edu X-Authentication-Warning: cheedu.dyndns.org: omicron owned process doing -bs Date: Sat, 8 Jul 2000 22:34:56 +0530 (IST) X-Sender: omicron@cheedu.dyndns.org Reply-To: omicron@pes.edu To: linux-india-programmers@lists.linux-india.org Subject: Bash Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/43 hi i've got a problem. I'm trying to route all commands that a user enters in bash to go thru "sudo". I tried setting up alias but anyone can easily bypass that by using the full path of the program. Is there any method to get filter the commands in bash ,i.e, prefix them with another string ? Thanx in advance cheedu -- ******* Sridhar || mail: cheedu@grex.org II Sem, || page: http://www.geocities.com/sri_dhar_n B.E Info Tech || site: cheedu.dyndns.org PESIT || nick: omicron,cheedu Smile.. Tomorrow will be worse -- From linux-india-programmers-owner@lists.linux-india.org Sun Jul 9 07:34:01 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 8430E380A7 for ; Sun, 9 Jul 2000 07:33:54 -0700 (PDT) Received: from eth.net ([10.2.1.41]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Sun, 9 Jul 2000 20:00:06 +0530 Received: from cranks ([202.9.150.117]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Sun, 9 Jul 2000 20:01:50 +0530 Message-ID: <000a01bfe9b4$2ed72520$759609ca@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: is this possible Date: Sun, 9 Jul 2000 20:13:09 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200007/44 hi, i have to create logins to the linux box through my s/w..... basically a front end which automates the process of adding users... a call to a shell script which has the adduser command in it. now, this shell script will not always be run by the root of the system but by the super user of my s/w..... who will not be the root of the system. how can this be made possible ?? also the script must not be allowed to run from the prompt but should be allowed to be run only from my s/w... can this be made possible ?? if this is not acheivable by writing a shell script how else can it be done ?? thank you - chetu From linux-india-programmers-owner@lists.linux-india.org Sun Jul 9 14:28:33 2000 Received: from myrealbox.com (unknown [192.108.102.201]) by www.aunet.org (Postfix) with ESMTP id DC9DE38079 for ; Sun, 9 Jul 2000 14:28:27 -0700 (PDT) Received: from jayant.myrealbox.com [203.88.131.92] by myrealbox.com with Novonyx SMTP Server $Revision: 2.46 $; Sun, 09 Jul 2000 15:28:01 -0600 (MDT) Message-Id: <4.3.0.20000709042129.00b35820@imap.myrealbox.com> X-Sender: jk2k@imap.myrealbox.com X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Sun, 09 Jul 2000 04:25:27 +0530 To: linux-india-programmers@lists.linux-india.org From: jayant kumar Subject: Re: JSP Performance In-Reply-To: <009b01bfe8cf$32f737c0$0701a8c0@mcs.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200007/45 Hi, JSP takes some time to compile when run for the first time. Second time it comes almost immediately. I have been using jswdk to run jsp and got to this conclusion. Could you tell me how to configure tomcat? I had fumbled with it before I took to jswdk. Your help would be highly appreciated. I have jakarta-ant.tar, jakarta-tomcat.tar and jakarta-tools.tar which have been downloaded from the net. Thanks in advance.. ------------Jayant At 04:55 PM 7/8/00 +0530, you wrote: >Am using Tomcat standalone, with the latest jdk from PCQ & Postgres. Some >pages get displayed in less than a second but some take two rotations of >the (IE's) globe. They take that much time even if I comment out all code, >even the imports! Its just driving me crazy - please suggest what to do. >------------------ >Lakshmi Anand K >MSPV Group >Pavoorchatram > > >----------------------------------------------------------------------- >For information on this and other Linux India mailing lists check out >http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Sun Jul 9 21:06:40 2000 Received: from ausmtp02.au.ibm.com (ausmtp02.au.ibm.COM [202.135.136.105]) by www.aunet.org (Postfix) with ESMTP id 20D8B380C8 for ; Sun, 9 Jul 2000 21:06:35 -0700 (PDT) Received: from f03n05e.au.ibm.com by ausmtp02.au.ibm.com (IBM AP 1.0) with ESMTP id OAA35754 for ; Mon, 10 Jul 2000 14:00:34 +1000 From: jsojan@in.ibm.com Received: from d73mta05.au.ibm.com (f06n05s [9.185.166.67]) by f03n05e.au.ibm.com (8.8.8m3/NCO v4.91) with SMTP id OAA56122 for ; Mon, 10 Jul 2000 14:06:14 +1000 Received: by d73mta05.au.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id CA256918.00168A44 ; Mon, 10 Jul 2000 14:06:11 +1000 X-Lotus-FromDomain: IBMIN@IBMAU To: linux-india-programmers@lists.linux-india.org Message-ID: Date: Mon, 10 Jul 2000 09:33:29 +0530 Subject: Re: is this possible Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200007/46 Hi there, hmmm....wonder why you need that. I guess security is not very important in your setup. You can suid your shell script to root. As for making the script only executable via your s/w...that'll be a lil more tricky. Because it has user execute permissions ( your first requirement ) Regards, Sojan. Sojan James IBM Global Services, Linux Competency Centre Ph: 91- 80 - 5267117 ext 3027 ------------------------------ hi, i have to create logins to the linux box through my s/w..... basically a front end which automates the process of adding users... a call to a shell script which has the adduser command in it. now, this shell script will not always be run by the root of the system but by the super user of my s/w..... who will not be the root of the system. how can this be made possible ?? also the script must not be allowed to run from the prompt but should be allowed to be run only from my s/w... can this be made possible ?? From linux-india-programmers-owner@lists.linux-india.org Sun Jul 9 21:54:50 2000 Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6]) by www.aunet.org (Postfix) with ESMTP id EC00B38077 for ; Sun, 9 Jul 2000 21:54:26 -0700 (PDT) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23]) by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id KAA11667 for ; Mon, 10 Jul 2000 10:33:05 GMT Received: from wipro.com ([192.168.174.177]) by ecmail.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA166C for ; Mon, 10 Jul 2000 10:14:04 +0530 Message-ID: <396955A6.F54290CA@wipro.com> Date: Mon, 10 Jul 2000 10:18:38 +0530 From: "Rajani K" Reply-To: rajani.jay@wipro.com Organization: Enterprise Solutions X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux Subject: Hashing?? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/47 Hi!!, I do not know whether i can put this question in this group or not, but i am going ahead!!! Can any one of you tell me where i can get more information on hashing and hashing algorithms!!!??? Cheers!! Rajani -- /*********************************************************************** "It's a funny thing about life; if you refuse to accept anything but the best, you very often get it." --W. Somerset Maugham. ************************************************************************/ From linux-india-programmers-owner@lists.linux-india.org Sun Jul 9 22:00:58 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id C78BD38077 for ; Sun, 9 Jul 2000 22:00:49 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA12539 for ; Mon, 10 Jul 2000 10:30:46 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdPH5WHa; Mon Jul 10 10:30:44 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id KAA21670 for ; Mon, 10 Jul 2000 10:28:36 +0530 Message-ID: <396958E6.68C0F74B@mahindrabt.com> Date: Mon, 10 Jul 2000 10:32:30 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: JSP Performance Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/48 hi list 1. if u have the tar.gz file of binaries, just untar that to some directory 2. set environment variables like TOMCAT_HOME , JDK_HOME 3. start tomcat this is for stand-alone tomcat (default port 8080) for tomcat with apache +1 : append an include line at the end of httpd.conf abt the location of tomcat-apache.conf +2 : LoadModule mod_jserv.so : this is the plug-in for tomcat +3 : first start tomcat and then apache HTH jayant kumar wrote: > > Could you tell me how to configure tomcat? I had fumbled with it > before I took to jswdk. > Your help would be highly appreciated. I have jakarta-ant.tar, -- ---- insanity is hereditary, you can catch it from your kids Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Sun Jul 9 22:28:43 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id 14A783806C for ; Sun, 9 Jul 2000 22:28:32 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Mon, 10 Jul 2000 11:00:23 -0500 Received: from [172.16.2.106] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Mon, 10 Jul 2000 10:56:06 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Mon, 10 Jul 2000 10:53:24 +0530 Message-Id: <007a01bfea09$78deb610$161819ac@io26> From: "Mahesh" To: Subject: Re: Hashing?? Date: Mon, 10 Jul 2000 10:54:58 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/49 Hi, If u are looking for some theory, u can try tanenbaum's / cruse's book on data structures.Also try the maurice bach's book on design of the UNIX OS which talks on LRU and some kinda hashing - Mahesh mahesh@www.com ----- Original Message ----- From: Rajani K To: linux Sent: Monday, July 10, 2000 2:48 PM Subject: [LIP] Hashing?? > Hi!!, > > I do not know whether i can put this question in this > group or not, but i am going ahead!!! > > Can any one of you tell me where i can get more information > on hashing and hashing algorithms!!!??? > > Cheers!! > Rajani > > -- > /*********************************************************************** > > "It's a funny thing about life; if you refuse to accept anything > but the best, you very often get it." --W. Somerset Maugham. > ************************************************************************/ > > > > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. > From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 02:58:25 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 3DFAE3808A for ; Mon, 10 Jul 2000 02:58:14 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id PAA09937 for ; Mon, 10 Jul 2000 15:28:05 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdytUiNi; Mon Jul 10 15:28:01 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id PAA04651 for ; Mon, 10 Jul 2000 15:25:47 +0530 Message-ID: <39699E8B.8306EB4F@mahindrabt.com> Date: Mon, 10 Jul 2000 15:29:39 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Hashing?? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/50 data structure's books wiess, ulmann-hopcroft , tannenbaum etc. etc. Rajani K wrote: > > Can any one of you tell me where i can get more information > on hashing and hashing algorithms!!!??? > > Cheers!! > Rajani -- ---- insanity is hereditary, you can catch it from your kids Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 04:09:59 2000 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id D17863808E for ; Mon, 10 Jul 2000 04:09:42 -0700 (PDT) Received: from accord-soft.com (R.k.patil [192.168.1.15]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id QAA18442 for ; Mon, 10 Jul 2000 16:35:41 +0530 Message-ID: <3969AE03.1E533A25@accord-soft.com> Date: Mon, 10 Jul 2000 16:35:39 +0530 From: RK Patil Organization: Accord Software & Systems Pvt. Ltd. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: is this possible Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/51 If your aim is only to write a script to automate the "adduser" functionality try using "Expect" automation tool. If you search http://expect.nist.gov/ you may get the script file that you are looking for. --bye rk From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 04:46:15 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 2886D3807B for ; Mon, 10 Jul 2000 04:46:01 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id RAA28036 for ; Mon, 10 Jul 2000 17:11:34 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id RAA17615 for ; Mon, 10 Jul 2000 17:14:04 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA6EA1; Mon, 10 Jul 2000 17:15:20 +0530 Date: Mon, 10 Jul 2000 17:26:20 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: Rajani K Cc: linux Subject: Re: Hashing?? In-Reply-To: <396955A6.F54290CA@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/52 Hi Rajani, + Can any one of you tell me where i can get more information + on hashing and hashing algorithms!!!??? You can look here... http://citeseer.nj.nec.com/SoftwareEngineering/DataStructures/Hashing/ For a more generic link, follow http://www.google.com/search?q=hashing+algorithms+papers&num=10&meta=hl%3Den%26lr%3D&safe=off HTH, Sharad. From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 06:13:35 2000 Received: from universe.nextset.com (unknown [209.157.151.228]) by www.aunet.org (Postfix) with ESMTP id 2100238073 for ; Mon, 10 Jul 2000 06:13:29 -0700 (PDT) Received: from nextset.com ([203.199.224.5]) by universe.nextset.com (8.10.0/8.10.0) with ESMTP id e6AD48n04293 for ; Mon, 10 Jul 2000 06:04:11 -0700 (PDT) Message-ID: <3969CF74.2E44CA6@nextset.com> Date: Mon, 10 Jul 2000 18:58:20 +0530 From: Anurag Shekhar Organization: OrchidSoft India (P) Ltd. X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: X tree and r tree Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/53 Has any one worked on these trees ? Or anything similar ? Some paper's on X and R tree was presented in VLDB 96 but I am not able to locate the links for those. Please send the links if available. thanks anurag From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 06:37:32 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 5506F3805B for ; Mon, 10 Jul 2000 06:37:25 -0700 (PDT) Received: from eth.net ([10.2.1.41]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Mon, 10 Jul 2000 19:03:36 +0530 Received: from cranks ([202.9.170.58]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Mon, 10 Jul 2000 19:04:29 +0530 Message-ID: <000901bfea75$4ff51c00$3aaa09ca@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: setuid() Date: Mon, 10 Jul 2000 19:12:53 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200007/54 hi, will somebody please give me a small code demonstrating the use of setuid(). i went through the man pages but could not understand anything. it seems to do something abt bypassing the permissions of a file for a certain time. a small code segment ( need not be working ) which will explain what it is meant for and how it is to be used will be a LOT of help. thank you - chetu From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 06:43:16 2000 Received: from e4.ny.us.ibm.com (e4.ny.us.ibm.com [32.97.182.104]) by www.aunet.org (Postfix) with ESMTP id 78AC838065 for ; Mon, 10 Jul 2000 06:43:12 -0700 (PDT) Received: from northrelay03.pok.ibm.com (northrelay03.pok.ibm.com [9.117.200.23]) by e4.ny.us.ibm.com (8.9.3/8.9.3) with ESMTP id JAA74110 for ; Mon, 10 Jul 2000 09:40:53 -0400 Received: from DemiUrge.in.ibm.com (demiurge.in.ibm.com [9.184.199.132]) by northrelay03.pok.ibm.com (8.8.8m3/NCO v4.92) with ESMTP id JAA50914 for ; Mon, 10 Jul 2000 09:42:36 -0400 Received: by DemiUrge.in.ibm.com (Postfix, from userid 1001) id 38BC858812; Mon, 10 Jul 2000 19:13:12 +0530 (IST) Subject: Re: setuid() From: Syed Khader Vali URL: http://www.sidcarter.com/ Operating-System: Turing OS XCVII Disclaimer: Not speaking for anyone in any way, shape, or form. Copyright: Copyright 2000 Syed Khader Vali - All Rights Reserved To: linux-india-programmers@lists.linux-india.org Reply-To: sidgeek@austin.ibm.com Organization: IBM Global Services - India Date: 10 Jul 2000 19:13:11 +0530 In-Reply-To: "Chetan Gopal Kashinath"'s message of "Mon, 10 Jul 2000 19:12:53 +0530" Message-ID: <867laut828.fsf@DemiUrge.in.ibm.com> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/55 >>>>> On Mon, 10 Jul 2000 19:12:53 +0530, "Chetan Gopal Kashinath" said: Chetan> hi, will somebody please give me a small code Chetan> demonstrating the use of setuid(). i went through the man Chetan> pages but could not understand anything. it seems to do Chetan> something abt bypassing the permissions of a file for a Chetan> certain time. Chetan, This is not the answer to your question, but I would suggest that if you want a proper understanding of what setuid() and other set*() commands do and a much better understanding of UNIX, I would suggest that you get the "Advanced UNIX programming" and "Advanced Network Programming" By Richard Stevens. These books will help you a lot more than you can think of. HTH Regards Carter -- Linux poses a real challenge for those with a taste for late-night hacking (and/or conversations with God). Syed Khader Vali (Siddiq) (sid at sidcarter.com) Debian GNU/Linux (Woody) http://www.sidcarter.com From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 07:54:15 2000 Received: from www.cdfd.org.in (unknown [202.54.67.145]) by www.aunet.org (Postfix) with ESMTP id 2D5D638077 for ; Sun, 9 Jul 2000 21:59:44 -0700 (PDT) Received: from localhost (indraneel@localhost) by www.cdfd.org.in (980427.SGI.8.8.8/970903.SGI.AUTOCF) via SMTP id KAA57650 for ; Mon, 10 Jul 2000 10:34:42 -0700 (PDT) Date: Mon, 10 Jul 2000 10:34:42 -0700 (PDT) From: Indraneel Majumdar X-Sender: indraneel@www.cdfd.org.in To: linux Subject: test mail (please ignore) In-Reply-To: <396955A6.F54290CA@wipro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/56 From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 08:38:13 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id E4AA3380E6 for ; Mon, 10 Jul 2000 08:37:48 -0700 (PDT) Received: from eth.net ([10.2.1.41]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Mon, 10 Jul 2000 21:02:53 +0530 Received: from cranks ([202.9.150.36]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Mon, 10 Jul 2000 21:04:28 +0530 Message-ID: <003401bfea86$12e0c1a0$249609ca@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: Re: is this possible Date: Mon, 10 Jul 2000 20:49:18 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200007/57 ----- Original Message ----- From: Subject: Re: [LIP] is this possible > Hi there, > hmmm....wonder why you need that. I guess security is not very > important in your setup. You can suid your shell script to root. > > As for making the script only executable via your s/w...that'll be a lil > more tricky. > Because it has user execute permissions ( your first requirement ) hi sojan, the requirement is not to make it user executable, but to restrict the script to be executed only by my s/w. since the s/w can be run by anybody not just the root of the system ) i had given the first requirement. now assuming that the script does not have user execute permissions, how can i make only my s/w execute it? also can a certain permission be set only to certain users ( who may or may not exist in the same group ) like directory A has write access to only user1 and user2 and read access to everybody. user1 and user2 may or may not exist in the same group. even if user3 exists in the same group as user1 he should not be given write access. - chetu From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 20:56:35 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id C8EA638060 for ; Mon, 10 Jul 2000 20:56:22 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Tue, 11 Jul 2000 09:28:14 -0500 Received: from [202.86.162.224] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Tue, 11 Jul 2000 09:23:33 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Tue, 11 Jul 2000 09:13:24 +0530 Message-Id: <000b01bfeac4$ac101d10$161819ac@io26> From: "Mahesh" To: Subject: Re: setuid() Date: Tue, 11 Jul 2000 09:15:00 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/58 Hi Chetan, May be i am wrong but ne way here is what i feel about your query. You may have some programs developed in certain environment and ned to ship it to your client. But at the clients place the hierarchy of the file system directory structure ) etc may be different and may not be according to the need of your program. To create certain folders in certain directories you may need super user rights and for that you may use setuid(0) ( set the rights of the current program to super user rights ) and it may work out well. Another way to look at this example is to have a hacker set this program and get it uploaded into your machine somehow and run this program with superuser rights... Well there are ways possible to retain the uid and euid of the program and cause destruction to your system. bye - Mahesh mahesh@www.com ----- Original Message ----- From: Chetan Gopal Kashinath To: LIP Sent: Monday, July 10, 2000 11:42 PM Subject: [LIP] setuid() > hi, > > will somebody please give me a small code demonstrating the use of > setuid(). i went through the man pages but could not understand anything. it > seems to do something abt bypassing the permissions of a file for a certain > time. > > a small code segment ( need not be working ) which will explain what it > is meant for and how it is to be used will be a LOT of help. > > thank you > - chetu > > \\|// (O-O) _______oOO_(_)_OOo____ | | | Mahesh V | | LTITL Bangalore | |_______________________ | o00O O00o From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 22:56:51 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 4D6EE3806B for ; Mon, 10 Jul 2000 22:56:38 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2130415 for ; Tue, 11 Jul 2000 11:31:10 +0530 From: "Linux List " Subject: Urgent: jdbc connection to PostGRESQL To: X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Tue, 11 Jul 2000 11:31:10 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200007/59 hi all, I tried the jdbc connection to the PostGRESQL server. The HOWTO says that u will have a file called Postgresql.jar ,which you have to export to ur classpath. I didn't find such a file anywhere in my installation. When i run the program i get an exception that the driver is not found but the docs says u do have a driver shipped with the PostGresql package. I installed all the postgresql packages(jdbc,perl,phython,tcl,etc).Also i found the perl example working very well. Any pointers,help. Thanx in advance vinu From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 23:09:15 2000 Received: from indiainfo.com (unknown [203.199.69.21]) by www.aunet.org (Postfix) with ESMTP id 8410C3808C for ; Mon, 10 Jul 2000 23:09:07 -0700 (PDT) Received: from [203.197.182.50] (account ) by indiainfo.com (CommuniGate Pro WebUser 3.2.4) with HTTP id 926796 for ; Tue, 11 Jul 2000 11:37:43 +0530 From: "Krishna Srinivasan" Subject: MySQL+PHP not working in tandem. To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.2.4 Date: Tue, 11 Jul 2000 11:37:43 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200007/60 Hi, I have installed MySQL on redhat 6.1 machine. Both Mysql & PHP work fine individually, but not in tandem. The error reads like "Fatal error: Call to unsupported or undefined function mysql_connect() in /home/httpd/html/krishna/sql.php3 on line 9" Need help desperately. Thanks in advance. Krishna Srinivasan --------------------------------------------------------------------- Mind boggling features only at http://mail.indiainfo.com From linux-india-programmers-owner@lists.linux-india.org Mon Jul 10 23:23:01 2000 Received: from svrsdfbldg.tcscal.co.in (unknown [206.103.11.137]) by www.aunet.org (Postfix) with SMTP id 1F6E13806B for ; Mon, 10 Jul 2000 23:22:46 -0700 (PDT) Received: from iname.com ([172.18.10.102]) by svrsdfbldg.tcscal.co.in (Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) with SMTP id 65256919.0023457B; Tue, 11 Jul 2000 11:55:15 +0530 Message-ID: <396ABD6A.E609542@iname.com> Date: Tue, 11 Jul 2000 11:53:38 +0530 From: Robin Chatterjee Organization: Tata Consultancy Services X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: MySQL+PHP not working in tandem. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/61 check the archives , you need a php with mysql support, try mandrake php rpms Krishna Srinivasan wrote: > > Hi, > > I have installed MySQL on redhat 6.1 machine. Both Mysql & PHP work fine > individually, but not in tandem. The error reads like > > "Fatal error: Call to unsupported or undefined function mysql_connect() > in /home/httpd/html/krishna/sql.php3 on line 9" > > Need help desperately. Thanks in advance. > > Krishna Srinivasan > --------------------------------------------------------------------- > Mind boggling features only at http://mail.indiainfo.com > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. -- _END_ Robin S Chatterjee Yahoo pager ID -Robinchatterjee mailto:robinsc@iname.com mailto:robins_chatterjee@tcscal.co.in FAX 1-(815)550-6171 Robin's Poetry Pages http://www.geocities.com/singerosongs Robin's Perl Pages http://www.geocities.com/robinchatterjee From linux-india-programmers-owner@lists.linux-india.org Tue Jul 11 03:25:41 2000 Received: from goa1.dot.net.in (goa1.dot.net.in [202.54.17.30]) by www.aunet.org (Postfix) with ESMTP id 4B1A93806B; Tue, 11 Jul 2000 03:25:11 -0700 (PDT) Received: from gaurav ([210.212.160.34]) by goa1.dot.net.in (8.9.2/8.9.2) with SMTP id PAA07944; Tue, 11 Jul 2000 15:56:44 +0530 (GMT) Message-ID: <007801bfeb22$67ec0640$22a0d4d2@gaurav> From: "Gaurav Priyolkar" To: , Subject: Ideas for software projects Date: Tue, 11 Jul 2000 15:53:15 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-Archive-Number: 200007/62 Hi all, I hope this is appropriate on these lists. I am a final year Computer Engineering student. We have to take up a project in the final year as a part of our course. Choice of topic is left to the student. I was interested in taking up a Linux based software project. Could anyone suggest possible topics? I already know C, C++, shell and am currently working with Perl although I would be willing to learn anything else required. The first question most people I have asked is usually what type of application I am interested in. So I will try and deal with that right here: Anything. (Except, perhaps, something totally database oriented) Expecting some valuable ideas (and perhaps some help later during the course of the project :-) ) -Gaurav From linux-india-programmers-owner@lists.linux-india.org Tue Jul 11 03:59:39 2000 Received: from proxy.netbase.stpn.soft.net (unknown [12.10.193.131]) by www.aunet.org (Postfix) with ESMTP id 6FC3A38091 for ; Tue, 11 Jul 2000 03:59:26 -0700 (PDT) Received: by proxy.netbase.stpn.soft.net with Internet Mail Service (5.5.2650.21) id <3V0XW45Y>; Tue, 11 Jul 2000 16:32:09 +0530 Message-ID: <616EA43AB295D311B06E00508B44A0200D9F40@proxy.netbase.stpn.soft.net> From: Paramdeep Singh To: "'linux-india-programmers@lists.linux-india.org'" Subject: Web Server Info Reqd Date: Tue, 11 Jul 2000 16:32:08 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200007/63 Hi Friends, I have recently joined this List. I am looking for your precious advice for setting my my web server on linux as I want to host some commercial sites on my Linux Machine. My only problem is that I do not know about the web features provided by Linux as I have mostly worked on Windows platfoms(IIS,Site Server). I would greatly appreciate your advice on how to go about this. Thanks and regards Paramdeep singh From linux-india-programmers-owner@lists.linux-india.org Tue Jul 11 05:03:37 2000 Received: from exchange.satyam.net.in (unknown [202.144.12.32]) by www.aunet.org (Postfix) with ESMTP id A94C338069 for ; Tue, 11 Jul 2000 05:03:24 -0700 (PDT) Received: from hqbng01ex01.mindtree.com ([202.144.95.250]) by exchange.satyam.net.in (8.9.3/8.9.3) with ESMTP id RAA24034 for ; Tue, 11 Jul 2000 17:31:32 +0530 Received: from mindtree.com (puneetg.mindtree.com [172.20.21.190]) by hqbng01ex01.mindtree.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NPQPKC7N; Tue, 11 Jul 2000 17:28:28 +0530 Message-ID: <396B0C0C.D7CB3798@mindtree.com> Date: Tue, 11 Jul 2000 17:29:08 +0530 From: Puneet Gupta X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Web Server Info Reqd Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/64 Paramdeep Singh wrote: > > Hi Friends, > > I have recently joined this List. > > I am looking for your precious advice for setting my my web server on linux > as I want to host some commercial sites on my Linux Machine. > > My only problem is that I do not know about the web features provided by > Linux as I have mostly worked on Windows platfoms(IIS,Site Server). > > I would greatly appreciate your advice on how to go about this. > > Thanks and regards > > Paramdeep singh > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP Apache is the answer. look up HOWTOs for setting up apache to yur config. its a fairly simple job. for databse u may use MySQL or PostGresql. ASP counterpart here is PHP. and dont forget to install mod_php and mod_perl for apache puneet -- Congratulations! You are the one-millionth user to log into our system. If there's anything special we can do for you, anything at all, don't hesitate to ask! From linux-india-programmers-owner@lists.linux-india.org Tue Jul 11 05:41:03 2000 Received: from www.cdfd.org.in (unknown [202.54.67.145]) by www.aunet.org (Postfix) with ESMTP id EA45738190 for ; Tue, 11 Jul 2000 05:40:55 -0700 (PDT) Received: from localhost (indraneel@localhost) by www.cdfd.org.in (980427.SGI.8.8.8/970903.SGI.AUTOCF) via SMTP id SAA09875; Tue, 11 Jul 2000 18:15:38 -0700 (PDT) Date: Tue, 11 Jul 2000 18:15:38 -0700 (PDT) From: Indraneel Majumdar To: Paramdeep Singh Cc: "'linux-india-programmers@lists.linux-india.org'" Subject: Re: Web Server Info Reqd In-Reply-To: <616EA43AB295D311B06E00508B44A0200D9F40@proxy.netbase.stpn.soft.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/65 Hi, 'Apache' is already installed on your box, or is on your CD. First install that and then edit the /etc/httpd.conf file. If you want to enable PHP you might need to enable the proper cgi-bin directory for PHP in httpd.conf . Also you might need to install some more packages to enable 'asp' (check PCQCD or freshmeat). The Apache docs are available in html format with the apache package. Also there is a book by O'Reilly (probably no Indian edition). best wishes, Indraneel On Tue, 11 Jul 2000, Paramdeep Singh wrote: > Hi Friends, > > I have recently joined this List. > > I am looking for your precious advice for setting my my web server on linux > as I want to host some commercial sites on my Linux Machine. > > My only problem is that I do not know about the web features provided by > Linux as I have mostly worked on Windows platfoms(IIS,Site Server). > > I would greatly appreciate your advice on how to go about this. > > Thanks and regards > > Paramdeep singh > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP > From linux-india-programmers-owner@lists.linux-india.org Tue Jul 11 07:54:49 2000 Received: from exchange.satyam.net.in (unknown [202.144.12.32]) by www.aunet.org (Postfix) with ESMTP id 119383809A for ; Tue, 11 Jul 2000 07:54:29 -0700 (PDT) Received: from hqbng01ex01.mindtree.com ([202.144.95.250]) by exchange.satyam.net.in (8.9.3/8.9.3) with ESMTP id UAA01151 for ; Tue, 11 Jul 2000 20:22:33 +0530 Received: from mindtree.com (puneetg.mindtree.com [172.20.21.190]) by hqbng01ex01.mindtree.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NPQPKDNM; Tue, 11 Jul 2000 20:19:29 +0530 Message-ID: <396B3420.15386AAE@mindtree.com> Date: Tue, 11 Jul 2000 20:20:09 +0530 From: Puneet Gupta X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Solaris vs Linux Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/66 hi i have a systme related query. if i have few P-3 linux boxes and a solaris enterprise class server. can i put all of them onto NFS such that i can use distributed computing (LSF,etc) for my apps? how will it compare to having solaris on the P-3 machines as well.? Having solaris environ is necessary for the apps i need to run. puneet From linux-india-programmers-owner@lists.linux-india.org Tue Jul 11 08:05:40 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 68E7B3820F for ; Tue, 11 Jul 2000 08:05:28 -0700 (PDT) Received: from eth.net ([10.2.1.41]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Tue, 11 Jul 2000 20:30:00 +0530 Received: from cranks ([202.9.145.149]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Tue, 11 Jul 2000 20:28:10 +0530 Message-ID: <009601bfeb4a$2c0203a0$959109ca@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: Re: setuid() Date: Tue, 11 Jul 2000 20:02:55 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200007/67 ----- Original Message ----- From: Mahesh Subject: Re: [LIP] setuid() > > Hi Chetan, > May be i am wrong but ne way here is what i feel about your query. here is what i am trying to do. my application creates application forms to be printed and scans the filled up forms for recognition. now there may be an application form that has been designed by user A and wants to share it with user B without any duplication ( maybe B should be allowed to change it too ) now user A writes his permissions into a file. an executable owned by user A will be run by User B. this executable checks the permission file to see if user B has the permissions... if he has then setuid is called and the effective userid is set o the owner of the executable ( User A ) and i will read the file through my executable. is there a better way of doing it ??? this project should get over in 10 days. hoping something will work out.... bye - chetu From linux-india-programmers-owner@lists.linux-india.org Tue Jul 11 08:37:26 2000 Received: from web1303.mail.yahoo.com (web1303.mail.yahoo.com [128.11.23.153]) by www.aunet.org (Postfix) with SMTP id C3F033809A for ; Tue, 11 Jul 2000 08:37:19 -0700 (PDT) Received: (qmail 5400 invoked by uid 60001); 11 Jul 2000 15:37:19 -0000 Message-ID: <20000711153719.5399.qmail@web1303.mail.yahoo.com> Received: from [203.197.183.28] by web1303.mail.yahoo.com; Tue, 11 Jul 2000 08:37:19 PDT Date: Tue, 11 Jul 2000 08:37:19 -0700 (PDT) From: PRAKASH GOWRI Subject: TO CONTROL DIALOG BOX SIZE To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/68 HI, GTK PROGRAMMING IN LINUX 6.1 I am using a dialog box to display some message, but my problem is that dialog box and main window size are the same. Is there any way to reduce size of the dialog box. Please let me know., RAGHU __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Tue Jul 11 09:47:18 2000 Received: from bom3.vsnl.net.in (bom3.vsnl.net.in [202.54.4.24]) by www.aunet.org (Postfix) with ESMTP id 31AB4382A8; Tue, 11 Jul 2000 09:47:06 -0700 (PDT) Received: from trantor.org ([202.54.92.160]) by bom3.vsnl.net.in (8.9.0/8.9.0) with ESMTP id WAA06472; Tue, 11 Jul 2000 22:16:50 +0530 (IST) Received: from localhost (rohit@localhost) by trantor.org (8.9.3/8.9.3) with ESMTP id WAA00464; Tue, 11 Jul 2000 22:07:56 +0530 (IST) (envelope-from rohit@ieee.org) X-Authentication-Warning: trantor.org: rohit owned process doing -bs Date: Tue, 11 Jul 2000 22:07:56 +0530 (IST) From: rohit sharma X-Sender: rohit@localhost To: linux-india-programmers@lists.linux-india.org Cc: linux-india-help@lists.linux-india.org Subject: Re: Ideas for software projects In-Reply-To: <007801bfeb22$67ec0640$22a0d4d2@gaurav> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/69 Hey, Get in touch with akshay adhikari from pune. He had written a network layer for linux as his project. adhikari@vsnl.com I'm sure he can give you some ideas. -rohit On Tue, 11 Jul 2000, Gaurav Priyolkar wrote: > Hi all, > > I hope this is appropriate on these lists. > > I am a final year Computer Engineering student. We have to take up a > project in the final year as a part of our course. Choice of topic is left > to the student. > SIGTERM -rohit ---------------------------------------------------------------- Rohit Sharma rohit@ieee.org Public Relations Officer, IEEE K.J.Somaiya college of Engineering Student Branch. A friend with weed is a friend indeed. From linux-india-programmers-owner@lists.linux-india.org Tue Jul 11 19:12:59 2000 Received: from bucky.excite.com (bucky-rwcmex.excite.com [198.3.99.218]) by www.aunet.org (Postfix) with ESMTP id 38A0F38073 for ; Tue, 11 Jul 2000 19:12:51 -0700 (PDT) Received: from slippery ([199.172.153.106]) by bucky.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000712021249.RYVW5354.bucky.excite.com@slippery> for ; Tue, 11 Jul 2000 19:12:49 -0700 Message-ID: <21431439.963367969457.JavaMail.imail@slippery> Date: Tue, 11 Jul 2000 19:12:49 -0700 (PDT) From: "K.Uday kumar" To: linux-india-programmers@lists.linux-india.org Subject: Re: TO CONTROL DIALOG BOX SIZE Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Excite Inbox X-Sender-Ip: 203.197.253.20 X-Archive-Number: 200007/70 Hi, Use gtk_widget_set_usize() On Tue, 11 Jul 2000 08:37:19 -0700 (PDT), linux-india-programmers@lists.linux-india.org wrote: > HI, > GTK PROGRAMMING IN LINUX 6.1 > I am using a dialog box to display some message, but > my problem is=20 > that dialog box and main window size are the same. Is > there any way to=20 > reduce size of the dialog box. >=20=20 > Please let me know., > RAGHU >=20=20 > __________________________________________________ > Do You Yahoo!? > Get Yahoo! Mail =96 Free email you can access from anywhere! > http://mail.yahoo.com/ >=20=20 > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP _______________________________________________________ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 02:29:14 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 7B920380E9 for ; Wed, 12 Jul 2000 02:28:52 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id OAA02418 for ; Wed, 12 Jul 2000 14:58:38 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpduhh1SF; Wed Jul 12 14:58:35 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id OAA14293 for ; Wed, 12 Jul 2000 14:56:26 +0530 Message-ID: <396C3AAD.8D9B6EB8@mahindrabt.com> Date: Wed, 12 Jul 2000 15:00:21 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: NoClassDefFound error Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/71 hi list had sun jdk installed on one machine and everything was / is working fine there. got a new machine for server and installed sun jdk there also. set the path , classpath etc. which java shows java in /usr/local/jdk1.2.2/bin javac compiles a program , test.java and produces test.class however when i try to run it i get the following error message : Exception in thread main : java.lang NoClassDefFound Error : test the same program is working fine on earlier machine. paths are set correctly. so why it is unable to find test.class ?? any hepls/suggestions ?? regards -- ---- why i am doing this ? it's the 'Tina' factor , There is no alternative Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 02:50:36 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id 878903810D for ; Wed, 12 Jul 2000 02:50:28 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Wed, 12 Jul 2000 15:22:10 -0500 Received: from [202.86.162.117] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Wed, 12 Jul 2000 15:17:45 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Wed, 12 Jul 2000 15:18:59 +0530 Message-Id: <005401bfebc0$e684e320$161819ac@io26> From: "Mahesh" To: Subject: Re: NoClassDefFound error Date: Wed, 12 Jul 2000 15:20:32 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/72 Hi Rajeev I know your error. Just encapsulate your code in a class and it will work eg class mytest { public static void main() { System.out.println("Hi Java"); } } bye Mahesh mahesh@www.com ----- Original Message ----- From: Rajeev Jha To: Sent: Wednesday, July 12, 2000 7:30 PM Subject: [LIP] NoClassDefFound error > hi list > had sun jdk installed on one machine and everything was / is working > fine there. got a new machine for server and installed sun jdk there > also. set the path , classpath etc. > which java shows java in /usr/local/jdk1.2.2/bin > javac compiles a program , test.java and produces test.class > however when i try to run it i get the following error message : > Exception in thread main : java.lang NoClassDefFound Error : test > > the same program is working fine on earlier machine. paths are set > correctly. > so why it is unable to find test.class ?? > > any hepls/suggestions ?? > > regards > > > > -- > ---- why i am doing this ? it's the 'Tina' factor , > There is no alternative > > > Rajeev Jha Email: rajeevj@mahindrabt.com > Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com > ----------------------------------------------------------------------- > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 03:57:39 2000 Received: from moses.myownemail.com (unknown [208.24.118.204]) by www.aunet.org (Postfix) with SMTP id 955E33806B for ; Wed, 12 Jul 2000 03:57:36 -0700 (PDT) Received: from jazzandjava.com [208.24.118.204] by moses.myownemail.com (SMTPD32-6.00) id A1781C900F6; Wed, 12 Jul 2000 06:07:36 -0500 Message-ID: <232812000731211736437@jazzandjava.com> X-EM-Version: 5, 0, 0, 4 X-EM-Registration: #01E0520310450300B900 X-Priority: 3 X-Mailer: My Own Email v4.00 alpha From: "Sandeep Sundaram" To: linux-india-programmers@lists.linux-india.org Subject: Re:NoClassDefFound error Date: Wed, 12 Jul 2000 06:07:36 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Archive-Number: 200007/73 Hi, This problem usually occurs if the Class path is not set properly. Try to unset the class path and set it again to the current directory, i.e CLASSPATH = $CLASSPATH:. This might work. Regards Sandeep Sundaram People say that there is a WOMAN behind the SUCCESS of every MAN. Well, experience says that FARTHER the woman, MORE the success !! _____________________________________________ Free email with personality! Over 200 domains! http://www.MyOwnEmail.com From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 04:46:50 2000 Received: from ausmtp02.au.ibm.com (ausmtp02.au.ibm.COM [202.135.136.105]) by www.aunet.org (Postfix) with ESMTP id 54585380D9 for ; Wed, 12 Jul 2000 04:46:41 -0700 (PDT) Received: from f03n05e.au.ibm.com by ausmtp02.au.ibm.com (IBM AP 1.0) with ESMTP id VAA207724 for ; Wed, 12 Jul 2000 21:40:42 +1000 From: tgravik@in.ibm.com Received: from d73mta05.au.ibm.com (f06n05s [9.185.166.67]) by f03n05e.au.ibm.com (8.8.8m3/NCO v4.91) with SMTP id VAA24886 for ; Wed, 12 Jul 2000 21:46:24 +1000 Received: by d73mta05.au.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id CA25691A.0040A9D3 ; Wed, 12 Jul 2000 21:46:17 +1000 X-Lotus-FromDomain: IBMIN@IBMAU To: linux-india-programmers@lists.linux-india.org Message-ID: Date: Wed, 12 Jul 2000 16:01:49 +0530 Subject: Re: NoClassDefFound error Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200007/74 You probably donot have "." the current directory in ur classpath. Correct the same and try running "java" on the class file Kiran Rajeev Jha on 07/12/2000 03:00:21 PM Please respond to linux-india-programmers@lists.linux-india.org To: linux-india-programmers@lists.linux-india.org cc: (bcc: Ravikiran G Thirumalai/India/IBM) Subject: [LIP] NoClassDefFound error hi list had sun jdk installed on one machine and everything was / is working fine there. got a new machine for server and installed sun jdk there also. set the path , classpath etc. which java shows java in /usr/local/jdk1.2.2/bin javac compiles a program , test.java and produces test.class however when i try to run it i get the following error message : Exception in thread main : java.lang NoClassDefFound Error : test the same program is working fine on earlier machine. paths are set correctly. so why it is unable to find test.class ?? any hepls/suggestions ?? regards -- ---- why i am doing this ? it's the 'Tina' factor , There is no alternative Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- ----------------------------------------------------------------------- The LIP mailing list archives are available at: http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 06:18:39 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 435FA3808B for ; Wed, 12 Jul 2000 06:18:27 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id SAA20692 for ; Wed, 12 Jul 2000 18:48:22 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpd2dpBqu; Wed Jul 12 18:48:16 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id SAA07627 for ; Wed, 12 Jul 2000 18:46:07 +0530 Message-ID: <396C7084.E2271D3C@mahindrabt.com> Date: Wed, 12 Jul 2000 18:50:04 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: port 8080 vs. port 80 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/75 hi list the problem was of not having PWD in path. solved thanks list. i am using tomcat with apache using mod_jserv. in apache httpd.conf when i am including tomcat.conf and do lynx http://localhost/examples/jsp nothing is shown( returns an error) however when i include tomcat-apache.conf and do lynx http://localhost/examples/jsp example page is shown but i am unable to execute any jsps( document contains no data error) when i do lynx http://localhost:8080/examples/jsp the example page is shown and i can execute jsps. if apache is listening on port 80 and tomcat on 8080 and apache redirects jsp requests to tomcat via mod_jserv why do i need to specify port 8080 ? that means i am requesting pages from tomcat only? what do i need to do to make sure that request goes to apache and then to tomcat via mod_jserv ? means i should be able to execute jsps by typing lynx http://localhost/examples/jsp , why i am unable to do so ? apache is returning no errors for LoadModule jserv_module libexec/mod_jserv.so directive. would appreciate any clarification on this 80 vs. 8080 issue tia and regards Sandeep Sundaram wrote: > > Hi, > > This problem usually occurs if the Class path is not set properly. > Try to unset the class path and set it again to the current directory, i.e > > CLASSPATH = $CLASSPATH:. -- ---- why i am doing this ? it's the 'Tina' factor , There is no alternative Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 09:28:17 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 5DAE438076 for ; Wed, 12 Jul 2000 09:28:04 -0700 (PDT) Received: from eth.net ([10.2.1.41]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Wed, 12 Jul 2000 21:52:44 +0530 Received: from cranks ([202.9.150.191]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Wed, 12 Jul 2000 21:53:45 +0530 Message-ID: <000501bfec1f$47404980$bf9609ca@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: set-user-id Date: Wed, 12 Jul 2000 22:04:58 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200007/76 hi, how do i change the effective user id of a process to the user id of the owner of the file ? ( how do i implement the set-user-ID program ) please reply back soon..... - chetu From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 10:40:15 2000 Received: from giasdl01.vsnl.net.in (giasdl01.vsnl.net.in [202.54.15.1]) by www.aunet.org (Postfix) with ESMTP id 7BFAF38080 for ; Wed, 12 Jul 2000 10:40:05 -0700 (PDT) Received: from deepak ([203.197.193.81]) by giasdl01.vsnl.net.in (8.9.2/8.9.2) with SMTP id XAA19263 for ; Wed, 12 Jul 2000 23:12:32 +0500 (GMT+0500) Message-Id: <200007121812.XAA19263@giasdl01.vsnl.net.in> Date: Wed, 12 Jul 2000 23:9:36 +0500 From: deepak yadav Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: lynx for windows ? X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/77 hi is there a version of lynx for win95 ? i need some browser for win95 which can create a log of what it is doing . something like u get using lynx with -trace option. ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- The value of a program is proportional to the weight of its output. From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 10:40:28 2000 Received: from giasdl01.vsnl.net.in (giasdl01.vsnl.net.in [202.54.15.1]) by www.aunet.org (Postfix) with ESMTP id 79AA538080 for ; Wed, 12 Jul 2000 10:40:15 -0700 (PDT) Received: from deepak ([203.197.193.81]) by giasdl01.vsnl.net.in (8.9.2/8.9.2) with SMTP id XAA14399 for ; Wed, 12 Jul 2000 23:12:43 +0500 (GMT+0500) Message-Id: <200007121812.XAA14399@giasdl01.vsnl.net.in> Date: Wed, 12 Jul 2000 23:9:48 +0500 From: deepak yadav Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: servlets X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/78 hi i am having problem running servlets on win95. i know this is not the right mailing list for win95 probs. but it deals with java which is platform independent so hope someone out here knows this. i am new to servlet programming,so i tried to run the Duke's bookstore example. first it gave problem during compiling, it could not locate the servlet classes. when i mentioned the classpath in the command line, it does not recognize "database" and "cart" packages. then i moved all *.java files in DATABASE and CART dir to the parent dir. and changed the code of some *.java files so that "database" and "cart" are no longer packages. After doing this they got compiled. i am using the Java WEB Server (came in this month's PCQ). i added all the classes of type *servlet.class (7 of 12 classes) after connecting to port 9090. then i entered the url 127.0.0.1:8080/servlet/bookstore in browser. the first page shows up. my problem start now. it does not shows any catalog or details of book which has link on the main page. then i tried using JSDK 2.0 so i stopped the servlet servicing part of java web server. copied the all *.class files to examples dir of jsdk2.0 . added the entry of all *servlet.class files in the configuration file in that dir. & started servletrunner. same problem repeats here, first page shows up. on clicking catalog, not found error. plz help thanks ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- There's got to be more to life than compile-and-go. From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 10:55:36 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id 9D34C3805B for ; Wed, 12 Jul 2000 10:55:25 -0700 (PDT) Received: from localhost.localdomain (IDENT:root@[203.200.0.19]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id XAA17452 for ; Wed, 12 Jul 2000 23:29:20 +0500 (GMT+0500) Received: (from mrinal@localhost) by localhost.localdomain (8.9.3/8.9.3) id XAA03197 for linux-india-programmers@lists.linux-india.org; Wed, 12 Jul 2000 23:25:19 +0530 Date: Wed, 12 Jul 2000 23:25:18 +0530 From: Mrinal Kalakrishnan To: The Linux India Programmers Mailing List Subject: Re: lynx for windows ? Message-ID: <20000712232518.A3136@india.com> Mail-Followup-To: The Linux India Programmers Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200007121812.XAA19263@giasdl01.vsnl.net.in>; from deepak2000@softhome.net on Wed, Jul 12, 2000 at 11:09:36PM +0500 X-Mailer: Mutt 1.3.4i (2000-06-19) X-Operating-System: Linux 2.2.16 X-Editor: VIM - Vi IMproved 5.6 X-URL: http://www.geocities.com/mrinal/ Organization: Jobless after finishing school! X-Archive-Number: 200007/79 Hi, deepak yadav typed: > is there a version of lynx for win95 ? i need some browser for > win95 which can create a log of what it is doing . something like u > get using lynx with -trace option. Oh, sure there is! Follow the links at http://lynx.browser.org/ -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.2.16 || PGP:B1E86F5B || Mutt 1.3.4i (2000-06-19) || VIM 5.6 -- Linux is obsolete (Andrew Tanenbaum) From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 12:59:52 2000 Received: from myrealbox.com (unknown [192.108.102.201]) by www.aunet.org (Postfix) with ESMTP id 9F3943805D for ; Wed, 12 Jul 2000 12:59:39 -0700 (PDT) Received: from jayant.myrealbox.com [203.88.133.43] by myrealbox.com with Novonyx SMTP Server $Revision: 2.46 $; Wed, 12 Jul 2000 13:59:32 -0600 (MDT) Message-Id: <4.3.0.20000712163808.00b488e0@imap.myrealbox.com> X-Sender: jk2k@imap.myrealbox.com X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Wed, 12 Jul 2000 16:40:45 +0530 To: linux-india-programmers@lists.linux-india.org From: jayant kumar Subject: Re: JSP Performance In-Reply-To: <396958E6.68C0F74B@mahindrabt.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200007/80 At 10:32 AM 7/10/00 +0530, you wrote: >hi list >1. if u have the tar.gz file of binaries, just untar that to some >directory I do not have the tar.gz of binaries. I have .tar file of source. I tried to compile it but the compilation does not proceed far. It gives an error "srcdir not found" and exits. If possible could you give me the site from where I could download the required binaries to run jakarta-tomcat. Thanks again -------Jayant >2. set environment variables like TOMCAT_HOME , JDK_HOME >3. start tomcat >this is for stand-alone tomcat (default port 8080) >for tomcat with apache >+1 : append an include line at the end of httpd.conf abt the location of >tomcat-apache.conf >+2 : LoadModule mod_jserv.so : this is the plug-in for tomcat >+3 : first start tomcat and then apache > >HTH > >jayant kumar wrote: > > > > > Could you tell me how to configure tomcat? I had fumbled with it > > before I took to jswdk. > > Your help would be highly appreciated. I have jakarta-ant.tar, > > >-- > ---- insanity is hereditary, you can catch it from your kids > > > Rajeev Jha Email: rajeevj@mahindrabt.com > Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com > ----------------------------------------------------------------------- > >----------------------------------------------------------------------- >For more information on the LIP mailing list see: >http://lists.linux-india.org/lists/LIP From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 13:00:51 2000 Received: from myrealbox.com (unknown [192.108.102.201]) by www.aunet.org (Postfix) with ESMTP id A98D5380F8 for ; Wed, 12 Jul 2000 13:00:40 -0700 (PDT) Received: from jayant.myrealbox.com [203.88.133.43] by myrealbox.com with Novonyx SMTP Server $Revision: 2.46 $; Wed, 12 Jul 2000 13:59:38 -0600 (MDT) Message-Id: <4.3.0.20000712170032.00b47d50@imap.myrealbox.com> X-Sender: jk2k@imap.myrealbox.com X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Wed, 12 Jul 2000 17:06:09 +0530 To: linux-india-programmers@lists.linux-india.org From: jayant kumar Subject: Re: Urgent: jdbc connection to PostGRESQL In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200007/81 The driver for PostGRESQL is there in PCQuest. I have seen it but have not used it. It would be better if you search for "postgresql.jar" file on google.com. Put it somewhere in some directory and add it to the CLASSPATH. It should work. It works on my PC!! -------Jayant At 11:31 AM 7/11/00 +0530, you wrote: >hi all, > I tried the jdbc connection to the PostGRESQL server. >The HOWTO says that u will have a file called Postgresql.jar >,which you have to export to ur classpath. >I didn't find such a file anywhere in my installation. >When i run the program i get an exception that the >driver is not found but the docs says u do have a driver >shipped with the PostGresql package. >I installed all the postgresql packages(jdbc,perl,phython,tcl,etc).Also >i found the >perl example working very well. >Any pointers,help. >Thanx in advance >vinu > > >----------------------------------------------------------------------- >LIP is all for free speech. But it was created for a purpose - to help >people discuss technical programming related issues about Linux. If >your messages are counterproductive to this purpose, your privileges to >submit messages can and will be revoked. From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 13:08:16 2000 Received: from myrealbox.com (unknown [192.108.102.201]) by www.aunet.org (Postfix) with ESMTP id 4CAC53805D for ; Wed, 12 Jul 2000 13:08:04 -0700 (PDT) Received: from jayant.myrealbox.com [203.88.133.43] by myrealbox.com with Novonyx SMTP Server $Revision: 2.46 $; Wed, 12 Jul 2000 14:07:53 -0600 (MDT) Message-Id: <4.3.0.20000712171848.00b4c4b0@imap.myrealbox.com> X-Sender: jk2k@imap.myrealbox.com X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Wed, 12 Jul 2000 17:19:47 +0530 To: linux-india-programmers@lists.linux-india.org From: jayant kumar Subject: Re: Web Server Info Reqd In-Reply-To: <616EA43AB295D311B06E00508B44A0200D9F40@proxy.netbase.stpn. soft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200007/82 Hi I do not know much about web-servers. But I know that Linux comes with the world's best web server - apache. Try it out. -----Jayant At 04:32 PM 7/11/00 +0530, you wrote: >Hi Friends, > >I have recently joined this List. > >I am looking for your precious advice for setting my my web server on linux >as I want to host some commercial sites on my Linux Machine. > >My only problem is that I do not know about the web features provided by >Linux as I have mostly worked on Windows platfoms(IIS,Site Server). > >I would greatly appreciate your advice on how to go about this. > >Thanks and regards > >Paramdeep singh > >----------------------------------------------------------------------- >For more information on the LIP mailing list see: >http://lists.linux-india.org/lists/LIP From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 19:45:35 2000 Received: from fortune.excite.com (fortune-rwcmta.excite.com [198.3.99.203]) by www.aunet.org (Postfix) with ESMTP id 60EA538052 for ; Wed, 12 Jul 2000 19:45:25 -0700 (PDT) Received: from doodle.excite.com ([199.172.153.125]) by fortune.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000713024506.ECDF13200.fortune.excite.com@doodle.excite.com> for ; Wed, 12 Jul 2000 19:45:06 -0700 Message-ID: <32915437.963456306070.JavaMail.imail@doodle.excite.com> Date: Wed, 12 Jul 2000 19:45:06 -0700 (PDT) From: "K.Uday kumar" To: linux-india-programmers@lists.linux-india.org Subject: Re: port 8080 vs. port 80 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 203.197.253.20 X-Archive-Number: 200007/83 hi, Firstly check that the module is installed in the right place for apache to locate it.(libexecs/mod_jserv.so)Try and RESTART the apache webserver only AFTER starting tomcat. If you are making any changes to tomcat-apache.conf those changes will be over-written when the server is restarted so take care you place your configuration in server.xml that is one possible error. You could also solve your problem by adding a ScriptAlias in the httpd.conf file similar to the cgi-bin one and try to execute *.jsp's in that directory. It worked well for me should do so for you as well. BEST of LUCK uday. > the problem was of not having PWD in path. solved thanks list. i am > using tomcat with apache using mod_jserv. in apache httpd.conf when i am > including tomcat.conf and do > lynx http://localhost/examples/jsp > nothing is shown( returns an error) however when i include > tomcat-apache.conf > and do > lynx http://localhost/examples/jsp > example page is shown but i am unable to execute any jsps( document > contains no data error) > when i do lynx http://localhost:8080/examples/jsp > the example page is shown and i can execute jsps. > > if apache is listening on port 80 and tomcat on 8080 and apache > redirects jsp requests to tomcat via mod_jserv why do i need to specify > port 8080 ? that means i am requesting pages from tomcat only? what do i > need to do to make sure that request goes to apache and then to tomcat > via mod_jserv ? > means i should be able to execute jsps by typing > lynx http://localhost/examples/jsp , why i am unable to do so ? apache > is returning no errors for LoadModule jserv_module libexec/mod_jserv.so > directive. > > would appreciate any clarification on this 80 vs. 8080 issue > > tia and regards > Sandeep Sundaram wrote: > > > > Hi, > > > > This problem usually occurs if the Class path is not set properly. > > Try to unset the class path and set it again to the current directory, i.e > > > > CLASSPATH = $CLASSPATH:. > > > -- > ---- why i am doing this ? it's the 'Tina' factor , > There is no alternative > > > Rajeev Jha Email: rajeevj@mahindrabt.com > Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com > ----------------------------------------------------------------------- > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ _______________________________________________________ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 21:40:36 2000 Received: from svrsdfbldg.tcscal.co.in (unknown [206.103.11.137]) by www.aunet.org (Postfix) with SMTP id A86A738084 for ; Wed, 12 Jul 2000 21:40:16 -0700 (PDT) Received: from iname.com ([172.18.10.102]) by svrsdfbldg.tcscal.co.in (Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) with SMTP id 6525691B.0019E206; Thu, 13 Jul 2000 10:12:42 +0530 Message-ID: <396D4863.1D59FADF@iname.com> Date: Thu, 13 Jul 2000 10:11:07 +0530 From: Robin Chatterjee Organization: Tata Consultancy Services X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: MySQL+PHP not working in tandem. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/84 Check the archives this questions was answered at least 4 times in the past month Krishna Srinivasan wrote: > > Hi, > > I have installed MySQL on redhat 6.1 machine. Both Mysql & PHP work fine > individually, but not in tandem. The error reads like > > "Fatal error: Call to unsupported or undefined function mysql_connect() > in /home/httpd/html/krishna/sql.php3 on line 9" > > Need help desperately. Thanks in advance. > > Krishna Srinivasan > --------------------------------------------------------------------- > Mind boggling features only at http://mail.indiainfo.com > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. -- _END_ Robin S Chatterjee Yahoo pager ID -Robinchatterjee mailto:robinsc@iname.com mailto:robins_chatterjee@tcscal.co.in FAX 1-(815)550-6171 Robin's Poetry Pages http://www.geocities.com/singerosongs Robin's Perl Pages http://www.geocities.com/robinchatterjee From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 21:56:18 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id BEF2A38066 for ; Wed, 12 Jul 2000 21:56:08 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA18188 for ; Thu, 13 Jul 2000 10:26:01 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdlXzQSp; Thu Jul 13 10:25:59 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id KAA29682 for ; Thu, 13 Jul 2000 10:23:45 +0530 Message-ID: <396D4C48.F8B4114C@mahindrabt.com> Date: Thu, 13 Jul 2000 10:27:44 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: port 8080 vs. port 80 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/85 hi list nah ! the mod_jserv.so was in right place, but the problem was that it was not the mod_jserv.so for tomcat. actually i had got it ready-made from someone. so yesterday downloaded the source files, made mod_jserv.so and now sure enough plug-in is working and i have disabled port 8080 for tomcat. "K.Uday kumar" wrote: > > hi, > Firstly check that the module is installed in the right place for > apache to locate it.(libexecs/mod_jserv.so)Try and RESTART the apache > webserver only AFTER starting tomcat. -- ---- why i am doing this ? it's the 'Tina' factor , There is no alternative Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 22:02:41 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 6AF2E380A2 for ; Wed, 12 Jul 2000 22:02:30 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA19552 for ; Thu, 13 Jul 2000 10:32:22 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdSAM7zg; Thu Jul 13 10:32:20 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id KAA00544 for ; Thu, 13 Jul 2000 10:30:02 +0530 Message-ID: <396D4DC2.87C2E94D@mahindrabt.com> Date: Thu, 13 Jul 2000 10:34:02 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: JSP Performance Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/86 hi list i am sure the following links would help you : http://jakarta.apache.org/downloads/binindex.html for downloading the binary release of tomcat jakarta-tomcat_tar.gz file , for downloading the source files: http://jakarta.apache.org/downloads/sourceindex.html binary release is ok for all purposes , u might want the source files for making your own mod_jserv.so. normally for compiling the source -code u have to change to src directory of distribution. HTH jayant kumar wrote: > > At 10:32 AM 7/10/00 +0530, you wrote: > >hi list > >1. if u have the tar.gz file of binaries, just untar that to some > >directory > > I do not have the tar.gz of binaries. I have .tar file of source. I tried > to compile it but the compilation does not proceed far. It gives an error > "srcdir not found" and exits. -- ---- why i am doing this ? it's the 'Tina' factor , There is no alternative Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 22:04:32 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id 0B2F5380B9 for ; Wed, 12 Jul 2000 22:04:25 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA20028 for ; Thu, 13 Jul 2000 10:34:22 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpduQrPIm; Thu Jul 13 10:34:14 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id KAA01484 for ; Thu, 13 Jul 2000 10:31:59 +0530 Message-ID: <396D4E37.92A0FD8@mahindrabt.com> Date: Thu, 13 Jul 2000 10:35:59 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: NoClassDefFound error Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/87 putting . in classpath solves the problem , but why do we need the current directory in classpath ? it should first look in the current directory only , is n't it ? tgravik@in.ibm.com wrote: > > You probably donot have "." the current directory in ur classpath. Correct > the same and try running "java" on the class file > -- ---- why i am doing this ? it's the 'Tina' factor , There is no alternative Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Wed Jul 12 22:08:46 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id E16E838096 for ; Wed, 12 Jul 2000 22:08:27 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA20742 for ; Thu, 13 Jul 2000 10:38:22 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdakXbJP; Thu Jul 13 10:38:16 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id KAA03302 for ; Thu, 13 Jul 2000 10:35:51 +0530 Message-ID: <396D4F1E.B4E1A50D@mahindrabt.com> Date: Thu, 13 Jul 2000 10:39:50 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Web Server Info Reqd Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/88 hi list anyone using web-sphere ? i got one CD containing it from IBM devconn; as everything is on apache right now , don't wany to play with the server , but any obvious advantages/disadvantages vis-a-vis apache ? magazine and site ratings of web-servers invariably put apache below web-sphere so plain curious and no i do not want to start a flame war ... tia and regards jayant kumar wrote: > > Hi > I do not know much about web-servers. But I know that Linux comes > with the world's best web server - apache. Try it out. > -- ---- why i am doing this ? it's the 'Tina' factor , There is no alternative Rajeev Jha Email: rajeevj@mahindrabt.com Tring Tring : +91(20)5424301 Xtn: 1126 web: http://www.rajeevjha.com ----------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Thu Jul 13 02:01:29 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id 8F1D038164 for ; Thu, 13 Jul 2000 02:01:21 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Thu, 13 Jul 2000 14:33:05 -0500 Received: from [172.16.2.42] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Thu, 13 Jul 2000 14:28:47 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Thu, 13 Jul 2000 14:30:46 +0530 Message-Id: <00c001bfeca9$4372d310$161819ac@io26> From: "Mahesh" To: Subject: SNMP For Linux Date: Thu, 13 Jul 2000 14:33:51 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/89 Hi People, Can anybody tell me where can i find some sample programs and some reading material for implementing SNMP under Linux or any flavour of UNIX. I read the man pages of mib_api and snmp_api but i was unable to try out something. I need to implement my mib under Linux. Any pointers would be helpful Thanks in advance - Mahesh mahesh@www.com From linux-india-programmers-owner@lists.linux-india.org Thu Jul 13 21:01:46 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id 8633C3804E for ; Thu, 13 Jul 2000 21:01:35 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 14 Jul 2000 09:32:08 -0500 Received: from [172.16.2.28] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 14 Jul 2000 09:27:50 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Fri, 14 Jul 2000 09:28:31 +0530 Message-Id: <002601bfed48$36303360$161819ac@io26> From: "Mahesh" To: Subject: Samba Connectivity Date: Fri, 14 Jul 2000 09:31:38 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/90 Hi People, I am trying to run samba ( connect a Windows NT Workstation machine to a Linux server) but I am not sure of the correct steps. Can somebody please guide me thro ? Thanks - Mahesh mahesh@www.com From linux-india-programmers-owner@lists.linux-india.org Thu Jul 13 21:35:20 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id D0D3F3813A for ; Thu, 13 Jul 2000 21:35:08 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.214]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 6525691C.00195531; Fri, 14 Jul 2000 10:06:42 +0530 Message-ID: <396DEF7B.572F2B12@hydbad.tcs.co.in> Date: Thu, 13 Jul 2000 22:04:03 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Mahesh , Linux India Programmers Subject: Re: Samba Connectivity Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/91 Hi Mahesh, There is a detailled description in the HOWTO, u can just go through it. It includes the code to add while configuring. Default path: /usr/docs/HOWTO/SMB-HOWTO or u can get from net. Ravi Mahesh wrote: > Hi People, > > I am trying to run samba ( connect a Windows NT Workstation machine to a > Linux server) > but I am not sure of the correct steps. Can somebody please guide me thro ? > Thanks > - Mahesh > mahesh@www.com > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Thu Jul 13 21:49:22 2000 Received: from gwa2.fe.bosch.de (gwa2.fe.bosch.de [194.39.218.2]) by www.aunet.org (Postfix) with ESMTP id 4F828380BA for ; Thu, 13 Jul 2000 21:49:14 -0700 (PDT) Received: (from uucp@localhost) by gwa2.fe.bosch.de (8.9.1/8.9.1) id EAA24216 for ; Fri, 14 Jul 2000 04:49:12 GMT Received: from fez8019.fe.bosch.de(virus-out.fe.internet.bosch.de 10.4.4.19) by gwa2.fe.bosch.de via smap (V2.1) id xma023994; Fri, 14 Jul 00 04:48:45 GMT Received: by fez7163.server.bosch.de with Internet Mail Service (5.5.2651.58) id <37GYL1JV>; Fri, 14 Jul 2000 06:48:40 +0200 Message-ID: From: "Harpreet Singh (RBIN/DCA-NMP)" To: linux-india-programmers@lists.linux-india.org Subject: RE: Samba Connectivity Date: Fri, 14 Jul 2000 06:48:39 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2651.58) Content-Type: text/plain X-Archive-Number: 200007/92 Regarding Samba Connectivity I don't have the file...... Can someone please send it to me > -----Original Message----- > From: Ravi Prakash B.V. [SMTP:ravibv@hydbad.tcs.co.in] > Sent: Thursday, July 13, 2000 10:04 PM > To: Mahesh; Linux India Programmers > Subject: Re: [LIP] Samba Connectivity > > Hi Mahesh, > There is a detailled description in the HOWTO, u can just go through it. > It > includes the code to add while configuring. > Default path: /usr/docs/HOWTO/SMB-HOWTO or u can get from net. > > Ravi > > > Mahesh wrote: > > > Hi People, > > > > I am trying to run samba ( connect a Windows NT Workstation machine > to a > > Linux server) > > but I am not sure of the correct steps. Can somebody please guide me > thro ? > > Thanks > > - Mahesh > > mahesh@www.com > > > > ----------------------------------------------------------------------- > > For information on this and other Linux India mailing lists check out > > http://lists.linux-india.org/ > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Fri Jul 14 02:11:30 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id 0CED73804F for ; Fri, 14 Jul 2000 02:10:03 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.214]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 6525691C.00328153; Fri, 14 Jul 2000 14:41:39 +0530 Message-ID: <396E2FE0.2F5E114@hydbad.tcs.co.in> Date: Fri, 14 Jul 2000 02:38:48 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: "Harpreet Singh (RBIN/DCA-NMP)" , Linux India Programmers Subject: Re: Samba Connectivity Content-Type: multipart/mixed; boundary="------------32870183920F8BF4EDA12BE2" X-Archive-Number: 200007/93 This is a multi-part message in MIME format. --------------32870183920F8BF4EDA12BE2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi u can see it in the attachment...... "Harpreet Singh (RBIN/DCA-NMP)" wrote: > Regarding Samba Connectivity > I don't have the file...... Can someone please send it to me > > > -----Original Message----- > > From: Ravi Prakash B.V. [SMTP:ravibv@hydbad.tcs.co.in] > > Sent: Thursday, July 13, 2000 10:04 PM > > To: Mahesh; Linux India Programmers > > Subject: Re: [LIP] Samba Connectivity > > > > Hi Mahesh, > > There is a detailled description in the HOWTO, u can just go through it. > > It > > includes the code to add while configuring. > > Default path: /usr/docs/HOWTO/SMB-HOWTO or u can get from net. > > > > Ravi > > > > > > Mahesh wrote: > > > > > Hi People, > > > > > > I am trying to run samba ( connect a Windows NT Workstation machine > > to a > > > Linux server) > > > but I am not sure of the correct steps. Can somebody please guide me > > thro ? > > > Thanks > > > - Mahesh > > > mahesh@www.com > > > > > > ----------------------------------------------------------------------- > > > For information on this and other Linux India mailing lists check out > > > http://lists.linux-india.org/ > > > > > > ----------------------------------------------------------------------- > > For information on this and other Linux India mailing lists check out > > http://lists.linux-india.org/ > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. --------------32870183920F8BF4EDA12BE2 Content-Type: text/plain; charset=iso-8859-1; name="SMB-HOWTO" Content-Transfer-Encoding: 8bit Content-Disposition: inline; filename="SMB-HOWTO" SMB HOWTO David Wood, dwood@plugged.net.au v1.1.1, 25 June 1999 This is the SMB HOWTO. This document describes how to use the Server Message Block (SMB) protocol, also called the Session Message Block, NetBIOS or LanManager protocol, with Linux. ______________________________________________________________________ Table of Contents 1. Introduction 2. Further Information 3. Installation 4. Running The Daemons 5. General Configuration (/etc/smb.conf) 6. Sharing A Linux Drive With Windows Machines 7. Sharing A Windows Drive With Linux Machines 8. Sharing A Linux Printer With Windows Machines 9. Sharing A Windows Printer With Linux Machines 10. Backing Up Windows Machines to a Linux Host 11. Copyright 12. Acknowledgements ______________________________________________________________________ 1. Introduction This is the SMB HOWTO. This document describes how to use the Server Message Block (SMB) protocol, also called the Session Message Block, NetBIOS or LanManager protocol, with Linux. Although this document is Linux-centric, Samba runs on most Unix-like operating systems. This document is maintained by David Wood (dwood@plugged.net.au). Additions, modifications or corrections may be mailed there for inclusion in the next release. Much more Samba documentation is available at the Samba Web site, located at http://www.samba.org/ . You also might try the comp.protocols.smb newsgroup. The SMB protocol is used by Microsoft Windows 3.11, NT and 95/98 to share disks and printers. Using the Samba suite of tools by Andrew Tridgell (Andrew.Tridgell@anu.edu.au), UNIX (including Linux) machines can share disk and printers with Windows hosts. The smbfs tools by Paal-Kr. Engstad (engstad@intermetrics.com) and Volker Lendecke (lendecke@namu01.gwdg.de) enable Unix machines to mount SMB shares from Windows or Samba hosts. There are four things that one can do with Samba: 1. Share a Linux drive with Windows machines. 2. Share a Windows drive with Linux machines. 3. Share a Linux printer with Windows machines. 4. Share a Windows printer with Linux machines. All of these are covered in this document. Disclaimer: The procedures and scripts either work for the author or have been reported to work by the people that provided them. Different configurations may not work with the information given here. If you encounter such a situation, you may e-mail the author with suggestions for improvement in this document, but the author guarantees nothing. What did you expect? The author is, after all, a consultant... Please note that for Windows 3.x machines to access SMB shares, they must have a TCP/IP stack and the Win32s DLLs. Both of these are available on Microsoft's Web site (http://www.microsoft.com ). 2. Further Information This HOWTO attempts to explain how to configure basic SMB file and print services on a Linux machine. Samba is a very complex and complete package. There would be no point in attempting to duplicate all of the documentation for Samba here. For further information, please see the following documents: · The Samba documentation, available as part of the Samba distribution. The distribution is available at: ftp://ftp.samba.org/ · The Linux Printing HOWTO. · The Print2Win Mini-HOWTO. · Protocol Standard For A NetBIOS Service On A TCP/UDP Transport. RFC 1001 Concepts and Methods. RFC 1002 Detailed Specifications. 3. Installation First, in order to use Samba your machines must be on a single ethernet LAN segment using the TCP/IP protocol. Samba will not work using other network protocols. This is generally easy since Linux and Windows 95/98/NT ship with TCP/IP support. However, if you are using Windows 3.X machines TCP/IP support will need to be added. SMB services cannot be used across routers. If you want to do something like that, you would need to set up an IP tunnel which is beyond the scope of this document. To get the latest source version of Samba, go to this URL and pick the closest mirror site to you: ftp://ftp.samba.org/ . However, if you have installed the RedHat distribution of Linux, you have the option of installing it as a package. Some other distributions also include the Samba binaries. The following two daemons are required for the Samba package. They are typically installed in /usr/sbin and run either on boot from the systems startup scripts or from inetd. Example scripts are shown in ``Running the Daemons''. ______________________________________________________________________ smbd (The SMB daemon) nmbd (Provides NetBIOS nameserver support to clients) ______________________________________________________________________ Please note that the name service provided by the nmbd daemon is different from the name service provided by the Domain Name Service (DNS). NetBIOS name service is a 'Windows-style' name service used for SMB. In other words, having DNS name service tells you nothing about the state of the ability for Samba to resolve host names. Typically, the following Samba binaries are installed in /usr/bin or /usr/local/samba/bin, although the location is optional. ______________________________________________________________________ smbclient (An SMB client for UNIX machines) smbprint (A script to print to a printer on an SMB host) smbprint.sysv (As above, but for SVR4 UNIX machines) smbstatus (Lists the cuurent SMB connections for the local host) smbrun (A 'glue' script to facilitate runnning applciations on SMB hosts) ______________________________________________________________________ The binaries for smbfs file system support are discussed later in this document. Additionally, a script called 'print' is included with this HOWTO, which serves as a useful front end to the smbprint script. The Samba package is simple to install. Simply retrieve the source from the location mentioned above, and read the file README in the distribution. There is also a file called docs/INSTALL.txt in the distribution that provides a simple step-by-step set of instructions. Following installation, place the daemons in /usr/sbin and the binaries in /usr/bin. Install the man pages in /usr/local/man. When you made the Samba package, you would have specified in the Makefile the location for the configuration file, smb.conf. This is generally in /etc, but you can put it anywhere you like. For these directions, we will presume that you specified the location of the configuration file as /etc/smb.conf, the log file location as log file = /var/log/samba-log.%m and the lock directory as lock directory = /var/lock/samba. Install the configuration file, smb.conf. Go to the directory where Samba was built. Look in the subdirectory examples/simple and read the file README. Copy the file smb.conf found in that directory to /etc. BE CAREFUL! If you have a Linux distribution that already has Samba installed, you may already have a Samba configuration file in /etc. You should probably start with that one. If you don't want to have your configuration file in /etc, put it wherever you want to, then put a symlink in /etc: ______________________________________________________________________ ln -s /path/to/smb.conf /etc/smb.conf ______________________________________________________________________ 4. Running The Daemons The two SMB daemons are /usr/sbin/smbd and /usr/sbin/nmbd. You can run the Samba daemons from inetd or as stand-alone processes. Samba will respond slightly faster as a standalone daemon than running from inetd. In either case, you should check the file /etc/services for lines that look like this: ______________________________________________________________________ netbios-ns 137/tcp nbns netbios-ns 137/udp nbns netbios-dgm 138/tcp nbdgm netbios-dgm 138/udp nbdgm netbios-ssn 139/tcp nbssn ______________________________________________________________________ Make sure they are all uncommented. Depending on your distribution, you may even need to add them. Samba will not be able to bind to the appropriate ports unless /etc/services has these entries. To run the daemons from inetd, place the following lines in the inetd configuration file, /etc/inetd.conf: ______________________________________________________________________ # SAMBA NetBIOS services (for PC file and print sharing) netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd ______________________________________________________________________ Then restart the inetd daemon by running the command: ______________________________________________________________________ kill -HUP `cat /var/run/inetd.pid` ______________________________________________________________________ To run the daemons from the system startup scripts, put the following script in file called /etc/rc.d/init.d/smb (for a RedHat distribution) and symbolically link it to the files specified in the comments: ______________________________________________________________________ #!/bin/sh # # /etc/rc.d/init.d/smb - starts and stops SMB services. # # The following files should be synbolic links to this file: # symlinks: /etc/rc.d/rc1.d/K35smb (Kills SMB services on shutdown) # /etc/rc.d/rc3.d/S91smb (Starts SMB services in multiuser mode) # /etc/rc.d/rc6.d/K35smb (Kills SMB services on reboot) # # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 # See how we were called. case "$1" in start) echo -n "Starting SMB services: " daemon smbd -D daemon nmbd -D echo touch /var/lock/subsys/smb ;; stop) echo -n "Shutting down SMB services: " killproc smbd killproc nmbd rm -f /var/lock/subsys/smb echo "" ;; *) echo "Usage: smb {start|stop}" exit 1 esac ______________________________________________________________________ If when starting Samba you get an error that says something about the daemon failing to bind to port 139, then you probably have another Samba process already running that hasn't yet shut down. Check a process list (with 'ps auxww | grep mbd') to determine if another Samba service is running. 5. General Configuration (/etc/smb.conf) Samba configuration on a Linux (or other UNIX machine) is controlled by a single file, /etc/smb.conf. This file determines which system resources you want to share with the outside world and what restrictions you wish to place on them. Since the following sections will address sharing Linux drives and printers with Windows machines, the smb.conf file shown in this section is as simple as you can get, just for introductory purposes. Don't worry about the details, yet. Later sections will introduce the major concepts. Each section of the file starts with a section header such as [global], [homes], [printers], etc. The [global] section defines a few variables that Samba will use to define sharing for all resources. The [homes] section allows a remote users to access their (and only their) home directory on the local (Linux) machine). That is, users trying to connect to this share from Windows machines, will be connected to their personal home directories. Note that to do this, they must have an account on the Linux box. The sample smb.conf file below allows remote users to get to their home directories on the local machine and to write to a temporary directory. For a Windows user to see these shares, the Linux box has to be on the local network. Then the user simply connects a network drive from the Windows File Manager or Windows Explorer. Note that in the following sections, additional entries for this file will be given to allow more resources to be shared. ______________________________________________________________________ ; /etc/smb.conf ; ; Make sure and restart the server after making changes to this file, ex: ; /etc/rc.d/init.d/smb stop ; /etc/rc.d/init.d/smb start [global] ; Uncomment this if you want a guest account ; guest account = nobody log file = /var/log/samba-log.%m lock directory = /var/lock/samba share modes = yes [homes] comment = Home Directories browseable = no read only = no create mode = 0750 [tmp] comment = Temporary file space path = /tmp read only = no public = yes ______________________________________________________________________ Having written a new smb.conf, it is useful to test it to verify its correctness. You can test the correctness of a smb.conf file , using the 'testparm' utility (man page: testparm); if testparm reports no problems, smbd will correctly load the configuration file. Here's a good trick: If your Samba server has more than one ethernet interface, the smbd may bind to the wrong one. If so, you can force it to bind to the intended one by adding a line that looks like this to the [global] section of /etc/smb.conf: ______________________________________________________________________ interfaces = 192.168.1.1/24 ______________________________________________________________________ where you replace the IP address above with the one that is assigned to the correct ethernet interface. The "24" is correct for a Class C network, but may have to be recalculated if you have subnetted the network. The number relates to the netmask. Numbers for other classes of networks are given in the IP-Masquerade mini-HOWTO. There is now a GUI configuration tool for Samba: GtkSamba. See http://www.open-systems.com/gtksamba.html . 6. Sharing A Linux Drive With Windows Machines As shown in the simple smb.conf above, sharing Linux drives with Windows users is easy. However, like everything else with Samba, you can control things to a large degree. Here are some examples: To share a directory with the public, create a clone of the [tmp] section above by adding something like this to smb.conf: ______________________________________________________________________ [public] comment = Public Stuff path = /home/public public = yes writable = yes printable = no ______________________________________________________________________ To make the above directory readable by the public, but only writable by people in group staff, modify the entry like this: ______________________________________________________________________ [public] comment = Public Stuff path = /home/public public = yes writable = yes printable = no write list = @staff ______________________________________________________________________ It used to be that easy; you would now be able to start Samba and browse the shares from a Windows PC. However, Microsoft has recently made life slightly more difficult for those using Samba. Windows 98, Windows NT (service pack 3 or higher) and later builds of Windows 95 now use encrypted passwords by default. Samba uses unencrypted passwords by default. You can't browse servers when either the client or server is using encrypted passwords, because a connection cannot be made anonymously. You can tell if you have a password type mismatch between client and server if when you try to connect to a share you see a dialog box which reads something like "You are not authorized to access that account from this machine". You can either configure your Samba server to use encrypted passwords, or configure the Windows machines to use unencrypted passwords. To get Windows to work with encrypted SMB passwords: Windows 95/98 ============= Using the registry editor (regedit), create the registry setting HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP Add a new DWORD value: Value Name: EnablePlainTextPassword Data: 0x01. Windows NT ========== Using the registry editor (regedit), create the registry setting HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Rdr\Parameters Add a new DWORD value: Value Name: EnablePlainTextPassword Data: 0x01 Once these registry changes have been made, reboot the Windows machine and try to map a network drive on the Samba server again. It should work as long as the Samba server is using plain text passwords. To configure Samba to use encrypted passwords: In the [global] section of /etc/smb.conf, add the following lines: ______________________________________________________________________ encrypt passwords = yes smb passwd file = /etc/smbpasswd ______________________________________________________________________ You are highly encouraged to read the files ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation before doing this! If your clients and server are using encrypted passwords, you will not be able to browse the available shares on the server until an initial connection has been made with the appropriate authentication. To get the initial connection, enter the share name manually in the Windows File Manager or Explorer dialog box, in the form '\\\'. Log onto the server with a username and password that is valid on the server! If you suspect that your NetBIOS name service is not correctly configured (perhaps because you get 'host not found' errors when trying to connect), try using just the IP address of the server: '\\\'. In order to get filenames to appear correctly, you may also need to set some options in the appropriate share section. These work for Windows 95/98/NT clients, but may need to be modified if you have Windows 3.X clients: ______________________________________________________________________ ; Mangle case = yes seems to give the correct filenames ; for Win95/98/NT. mangle case = yes ; If samba is case sensitive when looking for files case sensitive = no ; Default case of files that are created default case = lower ; Preserve case for all filenames preserve case = yes ; Preserve case for dos (8.3) filenames short preserve case = no ______________________________________________________________________ For other tricks to play with drive shares, see the Samba documentation or man pages. ______________________________________________________________________ interfaces = 192.168.1.1/24 ______________________________________________________________________ Note: The bit after the / is a reference to the subnet mask. "24" is the value to use for an unsegmented Class C network. For more information on subnet calculations, you might want to see http://www.ziplink.net/~ralphb/IPSubnet/index.html . There is a lot more to Samba configuration than this, but this will get you started. If you want to do something more advanced, I refer you to the Samba Web site mentioned above. 7. Sharing A Windows Drive With Linux Machines An SMB client program for UNIX machines is included with the Samba distribution. It provides an ftp-like interface on the command line. You can use this utility to transfer files between a Windows 'server' and a Linux client. To see which shares are available on a given host, run: ______________________________________________________________________ /usr/sbin/smbclient -L host ______________________________________________________________________ where 'host' is the name of the machine that you wish to view. this will return a list of 'service' names - that is, names of drives or printers that it can share with you. Unless the SMB server has no security configured, it will ask you for a password. Get it the password for the 'guest' account or for your personal account on that machine. For example: ______________________________________________________________________ smbclient -L zimmerman ______________________________________________________________________ The output of this command should look something like this: ______________________________________________________________________ Server time is Sat Aug 10 15:58:27 1996 Timezone is UTC+10.0 Password: Domain=[WORKGROUP] OS=[Windows NT 3.51] Server=[NT LAN Manager 3.51] Server=[ZIMMERMAN] User=[] Workgroup=[WORKGROUP] Domain=[] Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin public Disk Public C$ Disk Default share IPC$ IPC Remote IPC OReilly Printer OReilly print$ Disk Printer Drivers This machine has a browse list: Server Comment --------- ------- HOPPER Samba 1.9.15p8 KERNIGAN Samba 1.9.15p8 LOVELACE Samba 1.9.15p8 RITCHIE Samba 1.9.15p8 ZIMMERMAN ______________________________________________________________________ The browse list shows other SMB servers with resources to share on the network. To use the client, run: ______________________________________________________________________ /usr/sbin/smbclient service ______________________________________________________________________ where 'service' is a machine and share name. For example, if you are trying to reach a directory that has been shared as 'public' on a machine called zimmerman, the service would be called \\zimmerman\public. However, due to shell restrictions, you will need to escape the backslashes, so you end up with something like this: ______________________________________________________________________ /usr/sbin/smbclient \\\\zimmerman\\public mypasswd ______________________________________________________________________ where 'mypasswd' is the literal string of your password. You will get the smbclient prompt: ______________________________________________________________________ Server time is Sat Aug 10 15:58:44 1996 Timezone is UTC+10.0 Domain=[WORKGROUP] OS=[Windows NT 3.51] Server=[NT LAN Manager 3.51] smb: \> ______________________________________________________________________ Type 'h' to get help using smbclient: ______________________________________________________________________ smb: \> h ls dir lcd cd pwd get mget put mput rename more mask del rm mkdir md rmdir rd prompt recurse translate lowercase print printmode queue cancel stat quit q exit newer archive tar blocksize tarmode setmode help ? ! smb: \> ______________________________________________________________________ If you can use ftp, you shouldn't need the man pages for smbclient. Although you can use smbclient for testing, you will soon tire of it for real work. For that you will probably want to use the smbfs package. Smbfs comes with two simple utilties, smbmount and smbumount. They work just like mount and umount for SMB shares. The smbfs package is now included in most Linux distributions. One important thing to note: You must have smbfs support compiled into your kernel to use these utilities! 8. Sharing A Linux Printer With Windows Machines To share a Linux printer with Windows machines, you need to make certain that your printer is set up to work under Linux. If you can print from Linux, setting up an SMB share of the printer is stright forward. See the Printing HOWTO to set up local printing. Since the author used a printer connected to a Windows NT machine (a long time ago - before converting our network nearly totally to Linux), this section should not be taken as definitive, but merely a suggestion. Anyone with details to share, please send them to dwood@plugged.net.au so this section can be completed. Add printing configuration to your smb.conf: ______________________________________________________________________ [global] printing = bsd printcap name = /etc/printcap load printers = yes log file = /var/log/samba-log.%m lock directory = /var/lock/samba [printers] comment = All Printers security = server path = /var/spool/lpd/lp browseable = no printable = yes public = yes writable = no create mode = 0700 [ljet] security = server path = /var/spool/lpd/lp printer name = lp writable = yes public = yes printable = yes print command = lpr -r -h -P %p %s ______________________________________________________________________ Make certain that the printer path (in this case under [ljet]) matches the spool directory in /etc/printcap! The lines: ______________________________________________________________________ printcap name = /etc/printcap load printers = yes ______________________________________________________________________ controls whether all the printers in /etc/printcap should be loaded by default. If you do this, there is no reason to set up printers individually. The section [printers] specifies options for the printers that you wish to explicitly difine. If the printing subsystem you are using doesn't work this way (BSD), you need to set up a fake printcap file (or to use the 'print command' technique, see below). For more information on the printcap system see the Printing HOWTO. A useful technique to test the network connection is to change the print command to: ______________________________________________________________________ print command = cp %S /tmp/print.%P.%S ______________________________________________________________________ The resulting file can then be analyzed. NOTE: There are some problems sharing printers on UNIX boxes with Windows NT machines using Samba. One problem is with NT seeing the shared printer properly. To fix this, see the notes in the Samba distribution in the file docs/WinNT.txt. The other deals with password problems. See the comments in the same file for an annoying gain of understanding and failure to fix the problem. Oleg L. Machulskiy (machulsk@shade.msu.ru) suggests that a better print command to use in the above example would be: ______________________________________________________________________ print command = smb2ps %s | lpr -r -h -P %p ______________________________________________________________________ where 'smb2ps' is a script which transforms the spool file received from Windows into usual a usable Postscript file. It must cut off first 3 lines and last 2 lines, because these lines contain some PJL or PCL codes. That approach is only needed if your Windows machine is printing PCL and not real Postscript. I have found that Windows 95/98/NT don't have a generic Postscript driver per se, but the "Digital turbo Printserver 20" driver acts as a good general Postscript driver for most setups. I have also heard that the "Apple LaserWriter II NTX" driver works for this purpose. Jeff Stern (jstern@eclectic.ss.uci.edu) reported the following that may be of help to some of you: --------------------------%<---------------------------------- Problem I was having was that I could print via lpd/lpr to my Linux printer, from the Linux box itself. But I couldn't get it to print from a remote Win95 machine. When I tried smbclient \\eclectic\belen -P and then tried to print myfile I got errors about access denied. SO I reset the permissions on my /var/spool/lpd/lp1 directory to 777. I'm sorry, but that's what I had to do. I suppose alternatively I could have message with putting everyone on the Linux box in the 'lp' group, or made the directory be owned by the group 'users', etc.. But for now, this works (with ownership root:lp). Finally, the other thing administrators should know is that the name of the account on the WIndows machine (which is trying to use the Linux printer via Samba) should have an equivalently-named account on the Linux box. Thus, if there is a user named 'joe' on the Windows machine, (\\eclectic\belen) then there should be a user named 'joe' on the Linux box. Then 'joe's login password will be the password to access eclectic's belen printer. This password will be asked for on the Windows machine when setting up the printer on the Windows box with Printers|Add Printer. I kind of thought maybe this wouldn't be the case, since I have set up my printer to be 'public' in the smb.conf. But apparently it still asks for password. (The windows box unfortunately doesn't give you the opportunity to supply a different user name to the remote (Linux) printer. It just uses your local user name which you signed in as when you started up Win95. --------------------------%<---------------------------------- Dr. Michael Langner (langner@fiz-chemie.de points out that write permission problems on the /var/spool/lpd/ tree could be avoided by use something like "path = /tmp" and "print command = lpr -r -P%p %s" instead. Sometimes, a Postscript parsing error will occur with Postscript printing from Windows machines that causes an extra page to be printed at the end of every print job. The last page will always have "%%[ Lastpage ]%%" at the top of it. This seems to happen with Windows 95 and 98 only and is because the Postscript is malformed. One way to handle that is to use a script to remove that bit of bad Postscript from the spooled jobs. Another way is to try to find a better Windows Postscript driver. Probably the best way is to us LPRng instead of Postscript to print to a Samba server. Erik Ratcliffe (erik@caldera.com) Caldera tells me that using LPRng means that any printer driver can be used from Windows machines. On the Samba server, they used an /etc/printcap entry that looked like this: ______________________________________________________________________ raw:\ :rw:sh: :lp=/dev/lp1 :sd=/var/spool/lpd/raw :fx=flp ______________________________________________________________________ LPRng doesn't require :\ at the end of every line. A printer entry will still need to be made in /etc/smb.conf for the physical printer. The print command line needs to use the "raw" entry in /etc/printcap and data must be sent to the printer in binary form. Try a print command line like this: ______________________________________________________________________ print command = lpr -b -Praw %s ______________________________________________________________________ You may also need to set the spooling on the Windows95 end to print directly to the printer instead of spooling. 9. Sharing A Windows Printer With Linux Machines To share a printer on a Windows machine, you must do the following: 1. You must have the proper entries in /etc/printcap and they must correspond to the local directory structure (for the spool directory, etc). 2. You must have the script /usr/bin/smbprint. This comes with the Samba source, but not with all Samba binary distributions. A slightly modifed copy is discussed below. 3. If you want to convert ASCII files to Postscript, you must have nenscript, or its equivalent. nenscript is a Postscript converter and is generally installed in /usr/bin. 4. You may wish to make Samba printing easier by having an easy-to-use front end. A simple perl script to handle ASCII, Postscript or created Postscript is given below. 5. You could also use MagicFilter to do the above. The details on setting up MagicFilter are given below the perl script. MagicFilter has advantages because it knows how to automatically convert a lot of file formats. 6. a. The /etc/printcap entry below is for an HP 5MP printer on a Windows NT host. The entries are as follows: ________________________________________________________________ cm - comment lp - device name to open for output sd - the printer's spool directory (on the local machine) af - the accounting file mx - the maximum file size (zero is unlimited) if - name of the input filter (script) ________________________________________________________________ For more information, see the Printing HOWTO or the man page for printcap. ___________________________________________________________________ # /etc/printcap # # //zimmerman/oreilly via smbprint # lp:\ :cm=HP 5MP Postscript OReilly on zimmerman:\ :lp=/dev/lp1:\ :sd=/var/spool/lpd/lp:\ :af=/var/spool/lpd/lp/acct:\ :mx#0:\ :if=/usr/bin/smbprint: ___________________________________________________________________ Make certain that the spool and accounting directories exist and are writable. Ensure that the 'if' line holds the proper path to the smbprint script (given below) and make sure that the proper device is pointed to (the /dev special file). Next is the smbprint script itself. It is usually placed in /usr/bin and is attributable to Andrew Tridgell, the person who created Samba as far as I know. It comes with the Samba source distribution, but is absent from some binary distributions, so I have recreated it here. You may wish to look at this carefully. There are some minor alterations that have shown themselves to be useful. ___________________________________________________________________ #!/bin/sh -x # This script is an input filter for printcap printing on a unix machine. It # uses the smbclient program to print the file to the specified smb-based # server and service. # For example you could have a printcap entry like this # # smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint # # which would create a unix printer called "smb" that will print via this # script. You will need to create the spool directory /usr/spool/smb with # appropriate permissions and ownerships for your system. # Set these to the server and service you wish to print to # In this example I have a WfWg PC called "lapland" that has a printer # exported called "printer" with no password. # # Script further altered by hamiltom@ecnz.co.nz (Michael Hamilton) # so that the server, service, and password can be read from # a /usr/var/spool/lpd/PRINTNAME/.config file. # # In order for this to work the /etc/printcap entry must include an # accounting file (af=...): # # cdcolour:\ # :cm=CD IBM Colorjet on 6th:\ # :sd=/var/spool/lpd/cdcolour:\ # :af=/var/spool/lpd/cdcolour/acct:\ # :if=/usr/local/etc/smbprint:\ # :mx=0:\ # :lp=/dev/null: # # The /usr/var/spool/lpd/PRINTNAME/.config file should contain: # server=PC_SERVER # service=PR_SHARENAME # password="password" # # E.g. # server=PAULS_PC # service=CJET_371 # password="" # # Debugging log file, change to /dev/null if you like. # logfile=/tmp/smb-print.log # logfile=/dev/null # # The last parameter to the filter is the accounting file name. # spool_dir=/var/spool/lpd/lp config_file=$spool_dir/.config # Should read the following variables set in the config file: # server # service # password # user eval `cat $config_file` # # Some debugging help, change the >> to > if you want to same space. # echo "server $server, service $service" >> $logfile ( # NOTE You may wish to add the line `echo translate' if you want automatic # CR/LF translation when printing. echo translate echo "print -" cat ) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $user -N -P >> $logfile ___________________________________________________________________ Most Linux distributions come with nenscript for converting ASCII documents to Postscript. The following perl script makes life eas­ ier be providing a simple interface to Linux printing via smbprint. ___________________________________________________________________ Usage: print [-a|c|p] -a prints as ASCII -c prints formatted as source code -p prints as Postscript If no switch is given, print attempts to guess the file type and print appropriately. ___________________________________________________________________ Using smbprint to print ASCII files tends to truncate long lines. This script breaks long lines on whitespace (instead of in the mid­ dle of a word), if possible. The source code formatting is done with nenscript. It takes an ASCII file and foramts it in 2 columns with a fancy header (date, filename, etc). It also numbers the lines. Using this as an exam­ ple, other types of formatting can be accomplished. Postscript documents are already properly formatted, so they pass through directly. ___________________________________________________________________ #!/usr/bin/perl # Script: print # Authors: Brad Marshall, David Wood # Plugged In Communications # Date: 960808 # # Script to print to a Postscript printer via Samba. # Purpose: Takes files of various types as arguments and # processes them appropriately for piping to a Samba print script. # # Currently supported file types: # # ASCII - ensures that lines longer than $line_length characters wrap on # whitespace. # Postscript - Takes no action. # Code - Formats in Postscript (using nenscript) to display # properly (landscape, font, etc). # # Set the maximum allowable length for each line of ASCII text. $line_length = 76; # Set the path and name of the Samba print script $print_prog = "/usr/bin/smbprint"; # Set the path and name to nenscript (the ASCII-->Postscript converter) $nenscript = "/usr/bin/nenscript"; unless ( -f $print_prog ) { die "Can't find $print_prog!"; } unless ( -f $nenscript ) { die "Can't find $nenscript!"; } &ParseCmdLine(@ARGV); # DBG print "filetype is $filetype\n"; if ($filetype eq "ASCII") { &wrap($line_length); } elsif ($filetype eq "code") { &codeformat; } elsif ($filetype eq "ps") { &createarray; } else { print "Sorry..no known file type.\n"; exit 0; } # Pipe the array to smbprint open(PRINTER, "|$print_prog") || die "Can't open $print_prog: $!\n"; foreach $line (@newlines) { print PRINTER $line; } # Send an extra linefeed in case a file has an incomplete last line. print PRINTER "\n"; close(PRINTER); print "Completed\n"; exit 0; # --------------------------------------------------- # # Everything below here is a subroutine # # --------------------------------------------------- # sub ParseCmdLine { # Parses the command line, finding out what file type the file is # Gets $arg and $file to be the arguments (if the exists) # and the filename if ($#_ < 0) { &usage; } # DBG # foreach $element (@_) { # print "*$element* \n"; # } $arg = shift(@_); if ($arg =~ /\-./) { $cmd = $arg; # DBG # print "\$cmd found.\n"; $file = shift(@_); } else { $file = $arg; } # Defining the file type unless ($cmd) { # We have no arguments if ($file =~ /\.ps$/) { $filetype = "ps"; } elsif ($file =~ /\.java$|\.c$|\.h$|\.pl$|\.sh$|\.csh$|\.m4$|\.inc$|\.html$|\.htm$/) { $filetype = "code"; } else { $filetype = "ASCII"; } # Process $file for what type is it and return $filetype } else { # We have what type it is in $arg if ($cmd =~ /^-p$/) { $filetype = "ps"; } elsif ($cmd =~ /^-c$/) { $filetype = "code"; } elsif ($cmd =~ /^-a$/) { $filetype = "ASCII" } } } sub usage { print " Usage: print [-a|c|p] -a prints as ASCII -c prints formatted as source code -p prints as Postscript If no switch is given, print attempts to guess the file type and print appropriately.\n "; exit(0); } sub wrap { # Create an array of file lines, where each line is < the # number of characters specified, and wrapped only on whitespace # Get the number of characters to limit the line to. $limit = pop(@_); # DBG #print "Entering subroutine wrap\n"; #print "The line length limit is $limit\n"; # Read in the file, parse and put into an array. open(FILE, "<$file") || die "Can't open $file: $!\n"; while() { $line = $_; # DBG #print "The line is:\n$line\n"; # Wrap the line if it is over the limit. while ( length($line) > $limit ) { # DBG #print "Wrapping..."; # Get the first $limit +1 characters. $part = substr($line,0,$limit +1); # DBG #print "The partial line is:\n$part\n"; # Check to see if the last character is a space. $last_char = substr($part,-1, 1); if ( " " eq $last_char ) { # If it is, print the rest. # DBG #print "The last character was a space\n"; substr($line,0,$limit + 1) = ""; substr($part,-1,1) = ""; push(@newlines,"$part\n"); } else { # If it is not, find the last space in the # sub-line and print up to there. # DBG #print "The last character was not a space\n"; # Remove the character past $limit substr($part,-1,1) = ""; # Reverse the line to make it easy to find # the last space. $revpart = reverse($part); $index = index($revpart," "); if ( $index > 0 ) { substr($line,0,$limit-$index) = ""; push(@newlines,substr($part,0,$limit-$index) . "\n"); } else { # There was no space in the line, so # print it up to $limit. substr($line,0,$limit) = ""; push(@newlines,substr($part,0,$limit) . "\n"); } } } push(@newlines,$line); } close(FILE); } sub codeformat { # Call subroutine wrap then filter through nenscript &wrap($line_length); # Pipe the results through nenscript to create a Postscript # file that adheres to some decent format for printing # source code (landscape, Courier font, line numbers). # Print this to a temporary file first. $tmpfile = "/tmp/nenscript$$"; open(FILE, "|$nenscript -2G -i$file -N -p$tmpfile -r") || die "Can't open nenscript: $!\n"; foreach $line (@newlines) { print FILE $line; } close(FILE); # Read the temporary file back into an array so it can be # passed to the Samba print script. @newlines = (""); open(FILE, "<$tmpfile") || die "Can't open $file: $!\n"; while() { push(@newlines,$_); } close(FILE); system("rm $tmpfile"); } sub createarray { # Create the array for postscript open(FILE, "<$file") || die "Can't open $file: $!\n"; while() { push(@newlines,$_); } close(FILE); } ___________________________________________________________________ Now the MagicFilter way. Thanks to Alberto Menegazzi (flash.egon@iol.it) for this information. Alberto says: --------------------------%<---------------------------------- 1) Install MagicFilter with the filter for the printers you need in /usr/bin/local but DON'T fill /etc/printcap with the suggestion given by the documentation from MagicFilter. 2) Write the /etc/printcap like this way (it's done for my LaserJet 4L): lp|ljet4l:\ :cm=HP LaserJet 4L:\ :lp=/dev/null:\ # or /dev/lp1 :sd=/var/spool/lpd/ljet4l:\ :af=/var/spool/lpd/ljet4l/acct:\ :sh:mx#0:\ :if=/usr/local/bin/main-filter: You should explain that the lp=/dev/... is opened for locking so "virtual" devices one for every remote printer should be used. Example creating with : touch /dev/ljet4l 3) Write the filter /usr/local/bin/main-filter the same you suggest using the ljet4l-filter instead of cat. Here's mine. #! /bin/sh logfile=/var/log/smb-print.log spool_dir=/var/spool/lpd/ljet4l ( echo "print -" /usr/local/bin/ljet4l-filter ) | /usr/bin/smbclient "\\\\SHIR\\HPLJ4" -N -P >> $logfile P.S. : here is the quote from the Print2Win mini-Howto about lock­ ing and why creating virtual printers ---Starts here Hint from Rick Bressler : Good tip sheet. I use something very similar. One helpful tip, this is not a particularly good idea: :lp=/dev/null:\ lpr does an 'exclusive' open on the file you specify as lp=. It does this in order to prevent multiple processes from trying to print to the dame printer at the same time. The side effect of this is that in your case, eng and colour can't print at the same time, (usually more or less transparent since they probably print quickly and since they queue you probably don't notice) but any other process that tries to write to /dev/null will break! On a single user system, probably not a big problem. I have a sys­ tem with over 50 printers. It would be a problem there. The solution is to create a dummy printer for each. Eg: touch /dev/eng. I have modified the lp entries in the printcap file above to take into account Rick's suggestion. I did the following: #touch /dev/eng #touch /dev/colour ---Ends here --------------------------%<---------------------------------- 10. Backing Up Windows Machines to a Linux Host Adam Neat (adamneat@ipax.com.au) kindly contributed the following script to back up Windows machines to a Linux host, using the smbclient utility. Adam says that it is used to backup Windows 3.x and NT machines to a Linux based DAT SCSI Drive. Adam is not proud of the coding style used here, but it works. As I like to say, "If it works and its stupid, then it is not stupid". In this script, the string 'agnea1' is the username on the Linux machine that does the backups. ___________________________________________________________________ #!/bin/bash clear echo Initialising ... checkdate=`date | awk '{print $1}'` if [ -f "~agnea1/backup-dir/backup-data" ]; then echo "ERROR: No config file for today!" echo "FATAL!" exit 1 fi if [ -d "~agnea1/backup-dir/temp" ]; then echo "ERROR: No tempoary directory found!" echo echo "Attempting to create" cd ~agnea1 cd backup-dir mkdir temp echo "Directory Made - temp" fi if [ "$1" = "" ]; then echo "ERROR: enter in a machine name (ie: cdwriter)" exit 1 fi if [ "$2" = "" ]; then echo "ERROR: enter in a SMB (Lan Manager) Resource (ie: work)" exit 1 fi if [ "$3" = "" ]; then echo "ERROR: enter in an IP address for $1 (ie: 130.xxx.xxx.52)" exit 1 fi ############################################################################# # Main Section # ############################################################################# cd ~agnea1/backup-dir/temp rm -r ~agnea1/backup-dir/temp/* cd ~agnea1/backup-dir/ case "$checkdate" in Mon) echo "Backuping for Monday" cat backup-data | /usr/local/samba/bin/smbclient \\\\$1\\$2 -I$3 -N echo "Complete" if [ -d "~agnea1/backup-dir/Monday" ]; then echo "Directory Monday Not found ... making" mkdir ~agnea1/backup-dir/Monday fi echo "Archiving ..." cd ~agnea1/backup-dir/temp tar -cf monday.tar * echo "done ..." rm ~agnea1/backup-dir/Monday/monday.tar mv monday.tar ~agnea1/backup-dir/Monday ;; Tue) echo "Backuping for Tuesday" cat backup-data | /usr/local/samba/bin/smbclient \\\\$1\\$2 -I$3 -N echo "Complete" if [ -d "~agnea1/backup-dir/Tuesday" ]; then echo "Directory Tuesday Not found ... making" mkdir ~agnea1/backup-dir/Tuesday fi echo "Archiving ..." cd ~agnea1/backup-dir/temp tar -cf tuesday.tar * echo "done ..." rm ~agnea1/backup-dir/Tuesday/tuesday.tar mv tuesday.tar ~agnea1/backup-dir/Tuesday ;; Wed) echo "Backuping for Wednesday" cat backup-data | /usr/local/samba/bin/smbclient \\\\$1\\$2 -I$3 -N echo "Complete" if [ -d "~agnea1/backup-dir/Wednesday" ]; then echo "Directory Wednesday Not found ... making" mkdir ~agnea1/backup-dir/Wednesday fi echo "Archiving ..." cd ~agnea1/backup-dir/temp tar -cf wednesday.tar * echo "done ..." rm ~agnea1/backup-dir/Wednesday/wednesday.tar mv wednesday.tar ~agnea1/backup-dir/Wednesday ;; Thu) echo "Backuping for Thrusday" cat backup-data | /usr/local/samba/bin/smbclient \\\\$1\\$2 -I$3 -N echo "Complete" if [ -d "~agnea1/backup-dir/Thursday" ]; then echo "Directory Thrusday Not found ... making" mkdir ~agnea1/backup-dir/Thursday fi echo "Archiving ..." cd ~agnea1/backup-dir/temp tar -cf thursday.tar * echo "done ..." rm ~agnea1/backup-dir/Thursday/thursday.tar mv thursday.tar ~agnea1/backup-dir/Thursday ;; Fri) echo "Backuping for Friday" cat backup-data | /usr/local/samba/bin/smbclient \\\\$1\\$2 -I$3 -N echo "Complete" if [ -d "~agnea1/backup-dir/Friday" ]; then echo "Directory Friday Not found ... making" mkdir ~agnea1/backup-dir/Friday fi echo "Archiving ..." cd ~agnea1/backup-dir/temp tar -cf friday.tar * echo "done ..." rm ~agnea1/backup-dir/Friday/friday.tar mv friday.tar ~agnea1/backup-dir/Friday ;; *) echo "FATAL ERROR: Unknown variable passed for day" exit 1;; esac ########### ___________________________________________________________________ 11. Copyright This HOWTO is copyright 1996-9 by David Wood. It may be reproduced in any form and freely distributed as long as the file stays intact, including this statement. 12. Acknowledgements Brad Marshall (bmarshall@plugged.net.au) and Jason Parker (jparker@plugged.net.au) contributed time, patience, scripting and research. Adam Neat (adamneat@ipax.com.au) contributed the bash script used to back up Windows machines to a Linux host. Matthew Flint () told me about the use of the 'interfaces' option in smb.conf. Oleg L. Machulskiy (machulsk@shade.msu.ru), Jeff Stern (jstern@eclectic.ss.uci.edu), Dr. Michael Langner (langner@fiz- chemie.de and Erik Ratcliffe (erik@caldera.com) suggested modifications to the section on Sharing A Linux Printer With Windows Machines. Alberto Menegazzi (flash.egon@iol.it) contributed the MagicFilter setup to enable a Linux machine to share a Windows printer. Andrea Girotto (icarus@inca.dei.unipd.it) contributed a number of valuable suggestions throughout the document. Thanks, also, to all of the international translators that have brought this HOWTO to the non-English speaking world: Takeo Nakano (nakano@apm.seikei.ac.jp), Klaus-Dieter Schumacher (Klaus- Dieter.Schumacher@fernuni-hagen.de), Andrea Girotto (icarus@inca.dei.unipd.it) and many others for whom I don't have contact details. --------------32870183920F8BF4EDA12BE2-- From linux-india-programmers-owner@lists.linux-india.org Fri Jul 14 02:43:27 2000 Received: from alice.bombay.retortsoft.com (unknown [203.197.60.54]) by www.aunet.org (Postfix) with ESMTP id 570F038066 for ; Fri, 14 Jul 2000 02:43:12 -0700 (PDT) Received: from jediland.bombay.retortsoft.com (binand.bombay.retortsoft.com [192.168.100.33]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id PAA06943 for ; Fri, 14 Jul 2000 15:20:48 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id UAA04162 for linux-india-programmers@lists.linux-india.org; Fri, 14 Jul 2000 20:47:06 +0530 Date: Fri, 14 Jul 2000 20:47:06 +0530 From: "Binand Raj S." To: Linux India Programmers Subject: Re: Samba Connectivity Message-ID: <20000714204705.H1962@bombay.retortsoft.com> Mail-Followup-To: Linux India Programmers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <396E2FE0.2F5E114@hydbad.tcs.co.in>; from ravibv@hydbad.tcs.co.in on Fri, Jul 14, 2000 at 02:38:48AM +0530 X-Operating-System: Linux 2.2.12-20 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200007/94 Ravi Prakash B.V. forced the electrons to say: > u can see it in the attachment...... Dear Ravi, You don't have to attach an HOWTO that is available at scores of sites across the globe, not to mention every Linux CD which has the LDP in it. Not only this wastes bandwidth, but it is also not within the scope of this list. Next time, a pointer to a URL/Path please... Binand -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Fri Jul 14 08:45:12 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id 658A23804F for ; Fri, 14 Jul 2000 02:30:49 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 14 Jul 2000 15:02:32 -0500 Received: from [172.16.2.75] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Fri, 14 Jul 2000 14:57:56 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Fri, 14 Jul 2000 14:59:44 +0530 Message-Id: <008401bfed76$7995af80$161819ac@io26> From: "Mahesh" To: Subject: Re: Samba Connectivity Date: Fri, 14 Jul 2000 15:02:48 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/95 Thanks guys for helping me. Probably this is one of the Lists where people help the most and it is really encouraging to post a question here Thanks once again - Mahesh mahesh@www.com ----- Original Message ----- From: Ravi Prakash B.V. To: Harpreet Singh (RBIN/DCA-NMP) ; Linux India Programmers Sent: Friday, July 14, 2000 2:38 AM Subject: Re: [LIP] Samba Connectivity > hi > u can see it in the attachment...... > > > "Harpreet Singh (RBIN/DCA-NMP)" wrote: > > > Regarding Samba Connectivity > > I don't have the file...... Can someone please send it to me > > > > > -----Original Message----- > > > From: Ravi Prakash B.V. [SMTP:ravibv@hydbad.tcs.co.in] > > > Sent: Thursday, July 13, 2000 10:04 PM > > > To: Mahesh; Linux India Programmers > > > Subject: Re: [LIP] Samba Connectivity > > > > > > Hi Mahesh, > > > There is a detailled description in the HOWTO, u can just go through it. > > > It > > > includes the code to add while configuring. > > > Default path: /usr/docs/HOWTO/SMB-HOWTO or u can get from net. > > > > > > Ravi > > > > > > > > > Mahesh wrote: > > > > > > > Hi People, > > > > > > > > I am trying to run samba ( connect a Windows NT Workstation machine > > > to a > > > > Linux server) > > > > but I am not sure of the correct steps. Can somebody please guide me > > > thro ? > > > > Thanks > > > > - Mahesh > > > > mahesh@www.com > > > > > > > > ----------------------------------------------------------------------- > > > > For information on this and other Linux India mailing lists check out > > > > http://lists.linux-india.org/ > > > > > > > > > ----------------------------------------------------------------------- > > > For information on this and other Linux India mailing lists check out > > > http://lists.linux-india.org/ > > > > ----------------------------------------------------------------------- > > LIP is all for free speech. But it was created for a purpose - to help > > people discuss technical programming related issues about Linux. If > > your messages are counterproductive to this purpose, your privileges to > > submit messages can and will be revoked. > ---------------------------------------------------------------------------- ---- > SMB HOWTO > David Wood, dwood@plugged.net.au > v1.1.1, 25 June 1999 > > This is the SMB HOWTO. This document describes how to use the Server > Message Block (SMB) protocol, also called the Session Message Block, > NetBIOS or LanManager protocol, with Linux. > ______________________________________________________________________ > > Table of Contents > > 1. Introduction > > 2. Further Information > > 3. Installation > > 4. Running The Daemons > > 5. General Configuration (/etc/smb.conf) > > 6. Sharing A Linux Drive With Windows Machines > > 7. Sharing A Windows Drive With Linux Machines > > 8. Sharing A Linux Printer With Windows Machines > > 9. Sharing A Windows Printer With Linux Machines > > 10. Backing Up Windows Machines to a Linux Host > > 11. Copyright > > 12. Acknowledgements > > ______________________________________________________________________ > > 1. Introduction > > This is the SMB HOWTO. This document describes how to use the Server > Message Block (SMB) protocol, also called the Session Message Block, > NetBIOS or LanManager protocol, with Linux. Although this document is > Linux-centric, Samba runs on most Unix-like operating systems. > > This document is maintained by David Wood (dwood@plugged.net.au). > Additions, modifications or corrections may be mailed there for > inclusion in the next release. > > Much more Samba documentation is available at the Samba Web site, > located at http://www.samba.org/ . You also > might try the comp.protocols.smb newsgroup. > > The SMB protocol is used by Microsoft Windows 3.11, NT and 95/98 to > share disks and printers. Using the Samba suite of tools by Andrew > Tridgell (Andrew.Tridgell@anu.edu.au), UNIX (including Linux) machines > can share disk and printers with Windows hosts. The smbfs tools by > Paal-Kr. Engstad (engstad@intermetrics.com) and Volker Lendecke > (lendecke@namu01.gwdg.de) enable Unix machines to mount SMB shares > from Windows or Samba hosts. > > There are four things that one can do with Samba: > > 1. Share a Linux drive with Windows machines. > > 2. Share a Windows drive with Linux machines. > > 3. Share a Linux printer with Windows machines. > > 4. Share a Windows printer with Linux machines. > > All of these are covered in this document. > > Disclaimer: The procedures and scripts either work for the author or > have been reported to work by the people that provided them. > Different configurations may not work with the information given here. > If you encounter such a situation, you may e-mail the author with > suggestions for improvement in this document, but the author > guarantees nothing. What did you expect? The author is, after all, a > consultant... > > Please note that for Windows 3.x machines to access SMB shares, they > must have a TCP/IP stack and the Win32s DLLs. Both of these are > available on Microsoft's Web site (http://www.microsoft.com > ). > > 2. Further Information > > This HOWTO attempts to explain how to configure basic SMB file and > print services on a Linux machine. Samba is a very complex and > complete package. There would be no point in attempting to duplicate > all of the documentation for Samba here. > > For further information, please see the following documents: > > · The Samba documentation, available as part of the Samba > distribution. The distribution is available at: > ftp://ftp.samba.org/ > > · The Linux Printing HOWTO. > > · The Print2Win Mini-HOWTO. > > · Protocol Standard For A NetBIOS Service On A TCP/UDP Transport. > > RFC 1001 > Concepts and Methods. > > RFC 1002 > Detailed Specifications. > > 3. Installation > > First, in order to use Samba your machines must be on a single > ethernet LAN segment using the TCP/IP protocol. Samba will not work > using other network protocols. This is generally easy since Linux and > Windows 95/98/NT ship with TCP/IP support. However, if you are using > Windows 3.X machines TCP/IP support will need to be added. > > SMB services cannot be used across routers. If you want to do > something like that, you would need to set up an IP tunnel which is > beyond the scope of this document. > > To get the latest source version of Samba, go to this URL and pick the > closest mirror site to you: ftp://ftp.samba.org/ > . > However, if you have installed the RedHat distribution of Linux, you > have the option of installing it as a package. Some other > distributions also include the Samba binaries. > > The following two daemons are required for the Samba package. They > are typically installed in /usr/sbin and run either on boot from the > systems startup scripts or from inetd. Example scripts are shown in > ``Running the Daemons''. > > ______________________________________________________________________ > smbd (The SMB daemon) > nmbd (Provides NetBIOS nameserver support to clients) > ______________________________________________________________________ > > Please note that the name service provided by the nmbd daemon is > different from the name service provided by the Domain Name Service > (DNS). NetBIOS name service is a 'Windows-style' name service used > for SMB. In other words, having DNS name service tells you nothing > about the state of the ability for Samba to resolve host names. > > Typically, the following Samba binaries are installed in /usr/bin or > /usr/local/samba/bin, although the location is optional. > > ______________________________________________________________________ > smbclient (An SMB client for UNIX machines) > smbprint (A script to print to a printer on an SMB host) > smbprint.sysv (As above, but for SVR4 UNIX machines) > smbstatus (Lists the cuurent SMB connections for the local host) > smbrun (A 'glue' script to facilitate runnning applciations > on SMB hosts) > ______________________________________________________________________ > > The binaries for smbfs file system support are discussed later in this > document. > > Additionally, a script called 'print' is included with this HOWTO, > which serves as a useful front end to the smbprint script. > > The Samba package is simple to install. Simply retrieve the source > from the location mentioned above, and read the file README in the > distribution. There is also a file called docs/INSTALL.txt in the > distribution that provides a simple step-by-step set of instructions. > > Following installation, place the daemons in /usr/sbin and the > binaries in /usr/bin. Install the man pages in /usr/local/man. > > When you made the Samba package, you would have specified in the > Makefile the location for the configuration file, smb.conf. This is > generally in /etc, but you can put it anywhere you like. For these > directions, we will presume that you specified the location of the > configuration file as /etc/smb.conf, the log file location as log file > = /var/log/samba-log.%m and the lock directory as lock directory = > /var/lock/samba. > > Install the configuration file, smb.conf. Go to the directory where > Samba was built. Look in the subdirectory examples/simple and read > the file README. Copy the file smb.conf found in that directory to > /etc. BE CAREFUL! If you have a Linux distribution that already has > Samba installed, you may already have a Samba configuration file in > /etc. You should probably start with that one. > If you don't want to have your configuration file in /etc, put it > wherever you want to, then put a symlink in /etc: > > ______________________________________________________________________ > ln -s /path/to/smb.conf /etc/smb.conf > ______________________________________________________________________ > > 4. Running The Daemons > > The two SMB daemons are /usr/sbin/smbd and /usr/sbin/nmbd. > > You can run the Samba daemons from inetd or as stand-alone processes. > Samba will respond slightly faster as a standalone daemon than running > from inetd. > > In either case, you should check the file /etc/services for lines that > look like this: > > ______________________________________________________________________ > netbios-ns 137/tcp nbns > netbios-ns 137/udp nbns > netbios-dgm 138/tcp nbdgm > netbios-dgm 138/udp nbdgm > netbios-ssn 139/tcp nbssn > ______________________________________________________________________ > > Make sure they are all uncommented. Depending on your distribution, > you may even need to add them. Samba will not be able to bind to the > appropriate ports unless /etc/services has these entries. > > To run the daemons from inetd, place the following lines in the inetd > configuration file, /etc/inetd.conf: > > ______________________________________________________________________ > # SAMBA NetBIOS services (for PC file and print sharing) > netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd > netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd > ______________________________________________________________________ > > Then restart the inetd daemon by running the command: > > ______________________________________________________________________ > kill -HUP `cat /var/run/inetd.pid` > ______________________________________________________________________ > > To run the daemons from the system startup scripts, put the following > script in file called /etc/rc.d/init.d/smb (for a RedHat distribution) > and symbolically link it to the files specified in the comments: > > ______________________________________________________________________ > #!/bin/sh > > # > # /etc/rc.d/init.d/smb - starts and stops SMB services. > # > # The following files should be synbolic links to this file: > # symlinks: /etc/rc.d/rc1.d/K35smb (Kills SMB services on shutdown) > # /etc/rc.d/rc3.d/S91smb (Starts SMB services in multiuser mode) > # /etc/rc.d/rc6.d/K35smb (Kills SMB services on reboot) > # > > # Source function library. > . /etc/rc.d/init.d/functions > > # Source networking configuration. > . /etc/sysconfig/network > > # Check that networking is up. > [ ${NETWORKING} = "no" ] && exit 0 > > # See how we were called. > case "$1" in > start) > echo -n "Starting SMB services: " > daemon smbd -D > daemon nmbd -D > echo > touch /var/lock/subsys/smb > ;; > stop) > echo -n "Shutting down SMB services: " > killproc smbd > killproc nmbd > rm -f /var/lock/subsys/smb > echo "" > ;; > *) > echo "Usage: smb {start|stop}" > exit 1 > esac > ______________________________________________________________________ > > If when starting Samba you get an error that says something about the > daemon failing to bind to port 139, then you probably have another > Samba process already running that hasn't yet shut down. Check a > process list (with 'ps auxww | grep mbd') to determine if another > Samba service is running. > > 5. General Configuration (/etc/smb.conf) > > Samba configuration on a Linux (or other UNIX machine) is controlled > by a single file, /etc/smb.conf. This file determines which system > resources you want to share with the outside world and what > restrictions you wish to place on them. > > Since the following sections will address sharing Linux drives and > printers with Windows machines, the smb.conf file shown in this > section is as simple as you can get, just for introductory purposes. > > Don't worry about the details, yet. Later sections will introduce the > major concepts. > > Each section of the file starts with a section header such as > [global], [homes], [printers], etc. > > The [global] section defines a few variables that Samba will use to > define sharing for all resources. > > The [homes] section allows a remote users to access their (and only > their) home directory on the local (Linux) machine). That is, users > trying to connect to this share from Windows machines, will be > connected to their personal home directories. Note that to do this, > they must have an account on the Linux box. > > The sample smb.conf file below allows remote users to get to their > home directories on the local machine and to write to a temporary > directory. For a Windows user to see these shares, the Linux box has > to be on the local network. Then the user simply connects a network > drive from the Windows File Manager or Windows Explorer. > > Note that in the following sections, additional entries for this file > will be given to allow more resources to be shared. > > ______________________________________________________________________ > ; /etc/smb.conf > ; > ; Make sure and restart the server after making changes to this file, ex: > ; /etc/rc.d/init.d/smb stop > ; /etc/rc.d/init.d/smb start > > [global] > ; Uncomment this if you want a guest account > ; guest account = nobody > log file = /var/log/samba-log.%m > lock directory = /var/lock/samba > share modes = yes > > [homes] > comment = Home Directories > browseable = no > read only = no > create mode = 0750 > > [tmp] > comment = Temporary file space > path = /tmp > read only = no > public = yes > ______________________________________________________________________ > > Having written a new smb.conf, it is useful to test it to verify its > correctness. You can test the correctness of a smb.conf file , using > the 'testparm' utility (man page: testparm); if testparm reports no > problems, smbd will correctly load the configuration file. > > Here's a good trick: If your Samba server has more than one ethernet > interface, the smbd may bind to the wrong one. If so, you can force > it to bind to the intended one by adding a line that looks like this > to the [global] section of /etc/smb.conf: > > ______________________________________________________________________ > interfaces = 192.168.1.1/24 > ______________________________________________________________________ > > where you replace the IP address above with the one that is assigned > to the correct ethernet interface. The "24" is correct for a Class C > network, but may have to be recalculated if you have subnetted the > network. The number relates to the netmask. Numbers for other > classes of networks are given in the IP-Masquerade mini-HOWTO. > > There is now a GUI configuration tool for Samba: GtkSamba. See > http://www.open-systems.com/gtksamba.html systems.com/gtksamba.html>. > > 6. Sharing A Linux Drive With Windows Machines > > As shown in the simple smb.conf above, sharing Linux drives with > Windows users is easy. However, like everything else with Samba, you > can control things to a large degree. Here are some examples: > > To share a directory with the public, create a clone of the [tmp] > section above by adding something like this to smb.conf: > > ______________________________________________________________________ > [public] > comment = Public Stuff > path = /home/public > public = yes > writable = yes > printable = no > ______________________________________________________________________ > > To make the above directory readable by the public, but only writable > by people in group staff, modify the entry like this: > > ______________________________________________________________________ > [public] > comment = Public Stuff > path = /home/public > public = yes > writable = yes > printable = no > write list = @staff > ______________________________________________________________________ > > It used to be that easy; you would now be able to start Samba and > browse the shares from a Windows PC. However, Microsoft has recently > made life slightly more difficult for those using Samba. Windows 98, > Windows NT (service pack 3 or higher) and later builds of Windows 95 > now use encrypted passwords by default. Samba uses unencrypted > passwords by default. You can't browse servers when either the client > or server is using encrypted passwords, because a connection cannot be > made anonymously. > > You can tell if you have a password type mismatch between client and > server if when you try to connect to a share you see a dialog box > which reads something like "You are not authorized to access that > account from this machine". > > You can either configure your Samba server to use encrypted passwords, > or configure the Windows machines to use unencrypted passwords. > > To get Windows to work with encrypted SMB passwords: > > Windows 95/98 ============= > > Using the registry editor (regedit), create the registry setting > HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP Add a > new DWORD value: Value Name: EnablePlainTextPassword Data: > 0x01. > > Windows NT ========== > > Using the registry editor (regedit), create the registry setting > HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Rdr\Parameters > Add a new DWORD value: Value Name: EnablePlainTextPassword Data: > 0x01 > > Once these registry changes have been made, reboot the Windows machine > and try to map a network drive on the Samba server again. It should > work as long as the Samba server is using plain text passwords. > > To configure Samba to use encrypted passwords: > > In the [global] section of /etc/smb.conf, add the following lines: > > ______________________________________________________________________ > encrypt passwords = yes > smb passwd file = /etc/smbpasswd > ______________________________________________________________________ > > You are highly encouraged to read the files ENCRYPTION.txt, Win95.txt > and WinNT.txt in the Samba documentation before doing this! > > If your clients and server are using encrypted passwords, you will not > be able to browse the available shares on the server until an initial > connection has been made with the appropriate authentication. To get > the initial connection, enter the share name manually in the Windows > File Manager or Explorer dialog box, in the form > '\\\'. Log onto the server with a username and > password that is valid on the server! > > If you suspect that your NetBIOS name service is not correctly > configured (perhaps because you get 'host not found' errors when > trying to connect), try using just the IP address of the server: > '\\\'. > > In order to get filenames to appear correctly, you may also need to > set some options in the appropriate share section. These work for > Windows 95/98/NT clients, but may need to be modified if you have > Windows 3.X clients: > > ______________________________________________________________________ > ; Mangle case = yes seems to give the correct filenames > ; for Win95/98/NT. > mangle case = yes > > ; If samba is case sensitive when looking for files > case sensitive = no > > ; Default case of files that are created > default case = lower > > ; Preserve case for all filenames > preserve case = yes > > ; Preserve case for dos (8.3) filenames > short preserve case = no > ______________________________________________________________________ > > For other tricks to play with drive shares, see the Samba > documentation or man pages. > > ______________________________________________________________________ > interfaces = 192.168.1.1/24 > ______________________________________________________________________ > > Note: The bit after the / is a reference to the subnet mask. "24" is > the value to use for an unsegmented Class C network. For more > information on subnet calculations, you might want to see > http://www.ziplink.net/~ralphb/IPSubnet/index.html > . > > There is a lot more to Samba configuration than this, but this will > get you started. If you want to do something more advanced, I refer > you to the Samba Web site mentioned above. > > 7. Sharing A Windows Drive With Linux Machines > > An SMB client program for UNIX machines is included with the Samba > distribution. It provides an ftp-like interface on the command line. > You can use this utility to transfer files between a Windows 'server' > and a Linux client. > > To see which shares are available on a given host, run: > > ______________________________________________________________________ > /usr/sbin/smbclient -L host > ______________________________________________________________________ > > where 'host' is the name of the machine that you wish to view. this > will return a list of 'service' names - that is, names of drives or > printers that it can share with you. Unless the SMB server has no > security configured, it will ask you for a password. Get it the > password for the 'guest' account or for your personal account on that > machine. > > For example: > > ______________________________________________________________________ > smbclient -L zimmerman > ______________________________________________________________________ > > The output of this command should look something like this: > > ______________________________________________________________________ > Server time is Sat Aug 10 15:58:27 1996 > Timezone is UTC+10.0 > Password: > Domain=[WORKGROUP] OS=[Windows NT 3.51] Server=[NT LAN Manager 3.51] > > Server=[ZIMMERMAN] User=[] Workgroup=[WORKGROUP] Domain=[] > > Sharename Type Comment > --------- ---- ------- > ADMIN$ Disk Remote Admin > public Disk Public > C$ Disk Default share > IPC$ IPC Remote IPC > OReilly Printer OReilly > print$ Disk Printer Drivers > > This machine has a browse list: > > Server Comment > --------- ------- > HOPPER Samba 1.9.15p8 > KERNIGAN Samba 1.9.15p8 > LOVELACE Samba 1.9.15p8 > RITCHIE Samba 1.9.15p8 > ZIMMERMAN > ______________________________________________________________________ > > The browse list shows other SMB servers with resources to share on the > network. > > To use the client, run: > > ______________________________________________________________________ > /usr/sbin/smbclient service > ______________________________________________________________________ > > where 'service' is a machine and share name. For example, if you are > trying to reach a directory that has been shared as 'public' on a > machine called zimmerman, the service would be called > \\zimmerman\public. However, due to shell restrictions, you will need > to escape the backslashes, so you end up with something like this: > > ______________________________________________________________________ > /usr/sbin/smbclient \\\\zimmerman\\public mypasswd > ______________________________________________________________________ > > where 'mypasswd' is the literal string of your password. > > You will get the smbclient prompt: > > ______________________________________________________________________ > Server time is Sat Aug 10 15:58:44 1996 > Timezone is UTC+10.0 > Domain=[WORKGROUP] OS=[Windows NT 3.51] Server=[NT LAN Manager 3.51] > smb: \> > ______________________________________________________________________ > > Type 'h' to get help using smbclient: > > ______________________________________________________________________ > smb: \> h > ls dir lcd cd pwd > get mget put mput rename > more mask del rm mkdir > md rmdir rd prompt recurse > translate lowercase print printmode queue > cancel stat quit q exit > newer archive tar blocksize tarmode > setmode help ? ! > smb: \> > ______________________________________________________________________ > > If you can use ftp, you shouldn't need the man pages for smbclient. > > Although you can use smbclient for testing, you will soon tire of it > for real work. For that you will probably want to use the smbfs > package. Smbfs comes with two simple utilties, smbmount and > smbumount. They work just like mount and umount for SMB shares. > > The smbfs package is now included in most Linux distributions. One > important thing to note: You must have smbfs support compiled into > your kernel to use these utilities! > > 8. Sharing A Linux Printer With Windows Machines > > To share a Linux printer with Windows machines, you need to make > certain that your printer is set up to work under Linux. If you can > print from Linux, setting up an SMB share of the printer is stright > forward. > > See the Printing HOWTO to set up local printing. > > Since the author used a printer connected to a Windows NT machine (a > long time ago - before converting our network nearly totally to > Linux), this section should not be taken as definitive, but merely a > suggestion. Anyone with details to share, please send them to > dwood@plugged.net.au so this section can be completed. > > Add printing configuration to your smb.conf: > > ______________________________________________________________________ > [global] > printing = bsd > printcap name = /etc/printcap > load printers = yes > log file = /var/log/samba-log.%m > lock directory = /var/lock/samba > > [printers] > comment = All Printers > security = server > path = /var/spool/lpd/lp > browseable = no > printable = yes > public = yes > writable = no > create mode = 0700 > > [ljet] > security = server > path = /var/spool/lpd/lp > printer name = lp > writable = yes > public = yes > printable = yes > print command = lpr -r -h -P %p %s > ______________________________________________________________________ > > Make certain that the printer path (in this case under [ljet]) matches > the spool directory in /etc/printcap! > > The lines: > > ______________________________________________________________________ > printcap name = /etc/printcap > load printers = yes > ______________________________________________________________________ > > controls whether all the printers in /etc/printcap should be loaded by > default. If you do this, there is no reason to set up printers > individually. The section [printers] specifies options for the > printers that you wish to explicitly difine. If the printing > subsystem you are using doesn't work this way (BSD), you need to set > up a fake printcap file (or to use the 'print command' technique, see > below). For more information on the printcap system see the Printing > HOWTO. > > A useful technique to test the network connection is to change the > print command to: > > ______________________________________________________________________ > print command = cp %S /tmp/print.%P.%S > ______________________________________________________________________ > > The resulting file can then be analyzed. > > NOTE: There are some problems sharing printers on UNIX boxes with > Windows NT machines using Samba. One problem is with NT seeing the > shared printer properly. To fix this, see the notes in the Samba > distribution in the file docs/WinNT.txt. The other deals with > password problems. See the comments in the same file for an annoying > gain of understanding and failure to fix the problem. > > Oleg L. Machulskiy (machulsk@shade.msu.ru) suggests that a better > print command to use in the above example would be: > > ______________________________________________________________________ > print command = smb2ps %s | lpr -r -h -P %p > ______________________________________________________________________ > > where 'smb2ps' is a script which transforms the spool file received > from Windows into usual a usable Postscript file. It must cut off > first 3 lines and last 2 lines, because these lines contain some PJL > or PCL codes. > > That approach is only needed if your Windows machine is printing PCL > and not real Postscript. I have found that Windows 95/98/NT don't > have a generic Postscript driver per se, but the "Digital turbo > Printserver 20" driver acts as a good general Postscript driver for > most setups. I have also heard that the "Apple LaserWriter II NTX" > driver works for this purpose. > > Jeff Stern (jstern@eclectic.ss.uci.edu) reported the following that > may be of help to some of you: > > --------------------------%<---------------------------------- Problem > I was having was that I could print via lpd/lpr to my Linux printer, > from the Linux box itself. But I couldn't get it to print from a > remote Win95 machine. When I tried > > smbclient \\eclectic\belen -P > > and then tried to > > print myfile > > I got errors about access denied. SO I reset the permissions on my > /var/spool/lpd/lp1 directory to 777. I'm sorry, but that's what I had > to do. I suppose alternatively I could have message with putting > everyone on the Linux box in the 'lp' group, or made the directory be > owned by the group 'users', etc.. But for now, this works (with > ownership root:lp). > > Finally, the other thing administrators should know is that the name > of the account on the WIndows machine (which is trying to use the > Linux printer via Samba) should have an equivalently-named account on > the Linux box. Thus, if there is a user named 'joe' on the Windows > machine, (\\eclectic\belen) then there should be a user named 'joe' on > the Linux box. Then 'joe's login password will be the password to > access eclectic's belen printer. This password will be asked for on > the Windows machine when setting up the printer on the Windows box > with Printers|Add Printer. > > I kind of thought maybe this wouldn't be the case, since I have set up > my printer to be 'public' in the smb.conf. But apparently it still > asks for password. (The windows box unfortunately doesn't give you the > opportunity to supply a different user name to the remote (Linux) > printer. It just uses your local user name which you signed in as when > you started up Win95. > --------------------------%<---------------------------------- > > Dr. Michael Langner (langner@fiz-chemie.de points out that write > permission problems on the /var/spool/lpd/ tree could be avoided by > use something like "path = /tmp" and "print command = lpr -r -P%p %s" > instead. > > Sometimes, a Postscript parsing error will occur with Postscript > printing from Windows machines that causes an extra page to be printed > at the end of every print job. The last page will always have "%%[ > Lastpage ]%%" at the top of it. This seems to happen with Windows 95 > and 98 only and is because the Postscript is malformed. > > One way to handle that is to use a script to remove that bit of bad > Postscript from the spooled jobs. Another way is to try to find a > better Windows Postscript driver. Probably the best way is to us > LPRng instead of Postscript to print to a Samba server. > > Erik Ratcliffe (erik@caldera.com) Caldera tells me that using LPRng > means that any printer driver can be used from Windows machines. On > the Samba server, they used an /etc/printcap entry that looked like > this: > > ______________________________________________________________________ > raw:\ > :rw:sh: > :lp=/dev/lp1 > :sd=/var/spool/lpd/raw > :fx=flp > ______________________________________________________________________ > > LPRng doesn't require :\ at the end of every line. A printer entry > will still need to be made in /etc/smb.conf for the physical printer. > The print command line needs to use the "raw" entry in /etc/printcap > and data must be sent to the printer in binary form. Try a print > command line like this: > > ______________________________________________________________________ > print command = lpr -b -Praw %s > ______________________________________________________________________ > > You may also need to set the spooling on the Windows95 end to print > directly to the printer instead of spooling. > > 9. Sharing A Windows Printer With Linux Machines > > To share a printer on a Windows machine, you must do the following: > > 1. You must have the proper entries in /etc/printcap and they must > correspond to the local directory structure (for the spool > directory, etc). > > 2. You must have the script /usr/bin/smbprint. This comes with the > Samba source, but not with all Samba binary distributions. A > slightly modifed copy is discussed below. > > 3. If you want to convert ASCII files to Postscript, you must have > nenscript, or its equivalent. nenscript is a Postscript converter > and is generally installed in /usr/bin. > > 4. You may wish to make Samba printing easier by having an easy-to-use > front end. A simple perl script to handle ASCII, Postscript or > created Postscript is given below. > > 5. You could also use MagicFilter to do the above. The details on > setting up MagicFilter are given below the perl script. > MagicFilter has advantages because it knows how to automatically > convert a lot of file formats. > > 6. > > a. The /etc/printcap entry below is for an HP 5MP printer on a > Windows NT host. The entries are as follows: > > ________________________________________________________________ > cm - comment > lp - device name to open for output > sd - the printer's spool directory (on the local machine) > af - the accounting file > mx - the maximum file size (zero is unlimited) > if - name of the input filter (script) > ________________________________________________________________ > > For more information, see the Printing HOWTO or the man page for > printcap. > > ___________________________________________________________________ > # /etc/printcap > # > # file://zimmerman/oreilly via smbprint > # > lp:\ > :cm=HP 5MP Postscript OReilly on zimmerman:\ > :lp=/dev/lp1:\ > :sd=/var/spool/lpd/lp:\ > :af=/var/spool/lpd/lp/acct:\ > :mx#0:\ > :if=/usr/bin/smbprint: > ___________________________________________________________________ > > Make certain that the spool and accounting directories exist and > are writable. Ensure that the 'if' line holds the proper path to > the smbprint script (given below) and make sure that the proper > device is pointed to (the /dev special file). > > Next is the smbprint script itself. It is usually placed in > /usr/bin and is attributable to Andrew Tridgell, the person who > created Samba as far as I know. It comes with the Samba source > distribution, but is absent from some binary distributions, so I > have recreated it here. > > You may wish to look at this carefully. There are some minor > alterations that have shown themselves to be useful. > > ___________________________________________________________________ > #!/bin/sh -x > > # This script is an input filter for printcap printing on a unix machine. It > # uses the smbclient program to print the file to the specified smb-based > # server and service. > # For example you could have a printcap entry like this > # > # smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint > # > # which would create a unix printer called "smb" that will print via this > # script. You will need to create the spool directory /usr/spool/smb with > # appropriate permissions and ownerships for your system. > > # Set these to the server and service you wish to print to > # In this example I have a WfWg PC called "lapland" that has a printer > # exported called "printer" with no password. > > # > # Script further altered by hamiltom@ecnz.co.nz (Michael Hamilton) > # so that the server, service, and password can be read from > # a /usr/var/spool/lpd/PRINTNAME/.config file. > # > # In order for this to work the /etc/printcap entry must include an > # accounting file (af=...): > # > # cdcolour:\ > # :cm=CD IBM Colorjet on 6th:\ > # :sd=/var/spool/lpd/cdcolour:\ > # :af=/var/spool/lpd/cdcolour/acct:\ > # :if=/usr/local/etc/smbprint:\ > # :mx=0:\ > # :lp=/dev/null: > # > # The /usr/var/spool/lpd/PRINTNAME/.config file should contain: > # server=PC_SERVER > # service=PR_SHARENAME > # password="password" > # > # E.g. > # server=PAULS_PC > # service=CJET_371 > # password="" > > # > # Debugging log file, change to /dev/null if you like. > # > logfile=/tmp/smb-print.log > # logfile=/dev/null > > # > # The last parameter to the filter is the accounting file name. > # > spool_dir=/var/spool/lpd/lp > config_file=$spool_dir/.config > > # Should read the following variables set in the config file: > # server > # service > # password > # user > eval `cat $config_file` > > # > # Some debugging help, change the >> to > if you want to same space. > # > echo "server $server, service $service" >> $logfile > > ( > # NOTE You may wish to add the line `echo translate' if you want automatic > # CR/LF translation when printing. > echo translate > echo "print -" > cat > ) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $user -N -P >> $logfile > ___________________________________________________________________ > > Most Linux distributions come with nenscript for converting ASCII > documents to Postscript. The following perl script makes life eas­ > ier be providing a simple interface to Linux printing via smbprint. > > ___________________________________________________________________ > Usage: print [-a|c|p] > -a prints as ASCII > -c prints formatted as source code > -p prints as Postscript > If no switch is given, print attempts to > guess the file type and print appropriately. > ___________________________________________________________________ > > Using smbprint to print ASCII files tends to truncate long lines. > This script breaks long lines on whitespace (instead of in the mid­ > dle of a word), if possible. > > The source code formatting is done with nenscript. It takes an > ASCII file and foramts it in 2 columns with a fancy header (date, > filename, etc). It also numbers the lines. Using this as an exam­ > ple, other types of formatting can be accomplished. > > Postscript documents are already properly formatted, so they pass > through directly. > > ___________________________________________________________________ > #!/usr/bin/perl > > # Script: print > # Authors: Brad Marshall, David Wood > # Plugged In Communications > # Date: 960808 > # > # Script to print to a Postscript printer via Samba. > # Purpose: Takes files of various types as arguments and > # processes them appropriately for piping to a Samba print script. > # > # Currently supported file types: > # > # ASCII - ensures that lines longer than $line_length characters wrap on > # whitespace. > # Postscript - Takes no action. > # Code - Formats in Postscript (using nenscript) to display > # properly (landscape, font, etc). > # > > # Set the maximum allowable length for each line of ASCII text. > $line_length = 76; > > # Set the path and name of the Samba print script > $print_prog = "/usr/bin/smbprint"; > > # Set the path and name to nenscript (the ASCII-->Postscript converter) > $nenscript = "/usr/bin/nenscript"; > > unless ( -f $print_prog ) { > die "Can't find $print_prog!"; > } > unless ( -f $nenscript ) { > die "Can't find $nenscript!"; > } > > &ParseCmdLine(@ARGV); > > # DBG > print "filetype is $filetype\n"; > > if ($filetype eq "ASCII") { > &wrap($line_length); > } elsif ($filetype eq "code") { > &codeformat; > } elsif ($filetype eq "ps") { > &createarray; > } else { > print "Sorry..no known file type.\n"; > exit 0; > } > # Pipe the array to smbprint > open(PRINTER, "|$print_prog") || die "Can't open $print_prog: $!\n"; > foreach $line (@newlines) { > print PRINTER $line; > } > # Send an extra linefeed in case a file has an incomplete last line. > print PRINTER "\n"; > close(PRINTER); > print "Completed\n"; > exit 0; > > # --------------------------------------------------- # > # Everything below here is a subroutine # > # --------------------------------------------------- # > sub ParseCmdLine { > # Parses the command line, finding out what file type the file is > > # Gets $arg and $file to be the arguments (if the exists) > # and the filename > if ($#_ < 0) { > &usage; > } > # DBG > # foreach $element (@_) { > # print "*$element* \n"; > # } > > $arg = shift(@_); > if ($arg =~ /\-./) { > $cmd = $arg; > # DBG > # print "\$cmd found.\n"; > > $file = shift(@_); > } else { > $file = $arg; > } > > # Defining the file type > unless ($cmd) { > # We have no arguments > > if ($file =~ /\.ps$/) { > $filetype = "ps"; > } elsif ($file =~ /\.java$|\.c$|\.h$|\.pl$|\.sh$|\.csh$|\.m4$|\.inc$|\.html$|\.htm$/) { > $filetype = "code"; > } else { > $filetype = "ASCII"; > } > > # Process $file for what type is it and return $filetype > } else { > # We have what type it is in $arg > if ($cmd =~ /^-p$/) { > $filetype = "ps"; > } elsif ($cmd =~ /^-c$/) { > $filetype = "code"; > } elsif ($cmd =~ /^-a$/) { > $filetype = "ASCII" > } > } > } > > sub usage { > print " > Usage: print [-a|c|p] > -a prints as ASCII > -c prints formatted as source code > -p prints as Postscript > If no switch is given, print attempts to > guess the file type and print appropriately.\n > "; > exit(0); > } > > sub wrap { > # Create an array of file lines, where each line is < the > # number of characters specified, and wrapped only on whitespace > > # Get the number of characters to limit the line to. > $limit = pop(@_); > > # DBG > #print "Entering subroutine wrap\n"; > #print "The line length limit is $limit\n"; > > # Read in the file, parse and put into an array. > open(FILE, "<$file") || die "Can't open $file: $!\n"; > while() { > $line = $_; > > # DBG > #print "The line is:\n$line\n"; > > # Wrap the line if it is over the limit. > while ( length($line) > $limit ) { > > # DBG > #print "Wrapping..."; > > # Get the first $limit +1 characters. > $part = substr($line,0,$limit +1); > > # DBG > #print "The partial line is:\n$part\n"; > > # Check to see if the last character is a space. > $last_char = substr($part,-1, 1); > if ( " " eq $last_char ) { > # If it is, print the rest. > > # DBG > #print "The last character was a space\n"; > > substr($line,0,$limit + 1) = ""; > substr($part,-1,1) = ""; > push(@newlines,"$part\n"); > } else { > # If it is not, find the last space in the > # sub-line and print up to there. > > # DBG > #print "The last character was not a space\n"; > > # Remove the character past $limit > substr($part,-1,1) = ""; > # Reverse the line to make it easy to find > # the last space. > $revpart = reverse($part); > $index = index($revpart," "); > if ( $index > 0 ) { > substr($line,0,$limit-$index) = ""; > push(@newlines,substr($part,0,$limit-$index) > . "\n"); > } else { > # There was no space in the line, so > # print it up to $limit. > substr($line,0,$limit) = ""; > push(@newlines,substr($part,0,$limit) > . "\n"); > } > } > } > push(@newlines,$line); > } > close(FILE); > } > > sub codeformat { > # Call subroutine wrap then filter through nenscript > &wrap($line_length); > > # Pipe the results through nenscript to create a Postscript > # file that adheres to some decent format for printing > # source code (landscape, Courier font, line numbers). > # Print this to a temporary file first. > $tmpfile = "/tmp/nenscript$$"; > open(FILE, "|$nenscript -2G -i$file -N -p$tmpfile -r") || > die "Can't open nenscript: $!\n"; > foreach $line (@newlines) { > print FILE $line; > } > close(FILE); > > # Read the temporary file back into an array so it can be > # passed to the Samba print script. > @newlines = (""); > open(FILE, "<$tmpfile") || die "Can't open $file: $!\n"; > while() { > push(@newlines,$_); > } > close(FILE); > system("rm $tmpfile"); > } > > sub createarray { > # Create the array for postscript > open(FILE, "<$file") || die "Can't open $file: $!\n"; > while() { > push(@newlines,$_); > } > close(FILE); > } > ___________________________________________________________________ > > Now the MagicFilter way. Thanks to Alberto Menegazzi > (flash.egon@iol.it) for this information. > > Alberto says: > > --------------------------%<---------------------------------- 1) > Install MagicFilter with the filter for the printers you need in > /usr/bin/local but DON'T fill /etc/printcap with the suggestion > given by the documentation from MagicFilter. > > 2) Write the /etc/printcap like this way (it's done for my LaserJet > 4L): > > lp|ljet4l:\ :cm=HP LaserJet 4L:\ :lp=/dev/null:\ > # or /dev/lp1 :sd=/var/spool/lpd/ljet4l:\ > :af=/var/spool/lpd/ljet4l/acct:\ :sh:mx#0:\ > :if=/usr/local/bin/main-filter: > > You should explain that the lp=/dev/... is opened for locking so > "virtual" devices one for every remote printer should be used. > > Example creating with : touch /dev/ljet4l > > 3) Write the filter /usr/local/bin/main-filter the same you suggest > using the ljet4l-filter instead of cat. > > Here's mine. > > #! /bin/sh logfile=/var/log/smb-print.log > spool_dir=/var/spool/lpd/ljet4l ( echo "print -" > /usr/local/bin/ljet4l-filter ) | /usr/bin/smbclient > "\\\\SHIR\\HPLJ4" -N -P >> $logfile > > P.S. : here is the quote from the Print2Win mini-Howto about lock­ > ing and why creating virtual printers > > ---Starts here > > Hint from Rick Bressler : > > Good tip sheet. I use something very similar. One helpful tip, > this is not a particularly good idea: > > :lp=/dev/null:\ > > lpr does an 'exclusive' open on the file you specify as lp=. It > does this in order to prevent multiple processes from trying to > print to the dame printer at the same time. > > The side effect of this is that in your case, eng and colour can't > print at the same time, (usually more or less transparent since > they probably print quickly and since they queue you probably don't > notice) but any other process that tries to write to /dev/null will > break! > > On a single user system, probably not a big problem. I have a sys­ > tem with over 50 printers. It would be a problem there. > > The solution is to create a dummy printer for each. Eg: touch > /dev/eng. > > I have modified the lp entries in the printcap file above to take > into account Rick's suggestion. I did the following: > > #touch /dev/eng #touch /dev/colour > > ---Ends here > > --------------------------%<---------------------------------- > > 10. Backing Up Windows Machines to a Linux Host > > Adam Neat (adamneat@ipax.com.au) kindly contributed the following > script to back up Windows machines to a Linux host, using the > smbclient utility. Adam says that it is used to backup Windows 3.x > and NT machines to a Linux based DAT SCSI Drive. > > Adam is not proud of the coding style used here, but it works. As > I like to say, "If it works and its stupid, then it is not stupid". > > In this script, the string 'agnea1' is the username on the Linux > machine that does the backups. > > ___________________________________________________________________ > #!/bin/bash > > clear > echo Initialising ... > checkdate=`date | awk '{print $1}'` > > if [ -f "~agnea1/backup-dir/backup-data" ]; then > > echo "ERROR: No config file for today!" > echo "FATAL!" > exit 1 > fi > > if [ -d "~agnea1/backup-dir/temp" ]; then > > echo "ERROR: No tempoary directory found!" > echo > echo "Attempting to create" > cd ~agnea1 > cd backup-dir > mkdir temp > echo "Directory Made - temp" > fi > > if [ "$1" = "" ]; then > > echo "ERROR: enter in a machine name (ie: cdwriter)" > exit 1 > fi > > if [ "$2" = "" ]; then > > echo "ERROR: enter in a SMB (Lan Manager) Resource (ie: work)" > exit 1 > fi > > if [ "$3" = "" ]; then > > echo "ERROR: enter in an IP address for $1 (ie: > 130.xxx.xxx.52)" exit 1 > fi > > ############################################################################ # > # Main Section > # > ############################################################################ # > > cd ~agnea1/backup-dir/temp > rm -r ~agnea1/backup-dir/temp/* > cd ~agnea1/backup-dir/ > > case "$checkdate" > in > Mon) > echo "Backuping for Monday" > cat backup-data | /usr/local/samba/bin/smbclient > \\\\$1\\$2 -I$3 -N echo "Complete" > > if [ -d "~agnea1/backup-dir/Monday" ]; then > echo "Directory Monday Not found ... > making" mkdir > ~agnea1/backup-dir/Monday > fi > > echo "Archiving ..." > cd ~agnea1/backup-dir/temp > tar -cf monday.tar * echo "done ..." > rm ~agnea1/backup-dir/Monday/monday.tar > mv monday.tar ~agnea1/backup-dir/Monday > ;; > > Tue) > echo "Backuping for Tuesday" > cat backup-data | /usr/local/samba/bin/smbclient > \\\\$1\\$2 -I$3 -N echo "Complete" > > if [ -d "~agnea1/backup-dir/Tuesday" ]; then > echo "Directory Tuesday Not found ... > making" mkdir > ~agnea1/backup-dir/Tuesday > fi > echo "Archiving ..." > cd ~agnea1/backup-dir/temp > tar -cf tuesday.tar * > echo "done ..." > rm ~agnea1/backup-dir/Tuesday/tuesday.tar > mv tuesday.tar ~agnea1/backup-dir/Tuesday > ;; > > Wed) > echo "Backuping for Wednesday" > cat backup-data | /usr/local/samba/bin/smbclient > \\\\$1\\$2 -I$3 -N echo "Complete" > > if [ -d "~agnea1/backup-dir/Wednesday" ]; then > echo "Directory Wednesday Not found > ... making" mkdir > ~agnea1/backup-dir/Wednesday > fi > echo "Archiving ..." > cd ~agnea1/backup-dir/temp > tar -cf wednesday.tar * > echo "done ..." > rm ~agnea1/backup-dir/Wednesday/wednesday.tar > mv wednesday.tar ~agnea1/backup-dir/Wednesday > ;; > > Thu) > echo "Backuping for Thrusday" > cat backup-data | /usr/local/samba/bin/smbclient > \\\\$1\\$2 -I$3 -N echo "Complete" > > if [ -d "~agnea1/backup-dir/Thursday" ]; then > echo "Directory Thrusday Not found ... > making" mkdir > ~agnea1/backup-dir/Thursday > fi > echo "Archiving ..." > cd ~agnea1/backup-dir/temp > tar -cf thursday.tar * > echo "done ..." > rm ~agnea1/backup-dir/Thursday/thursday.tar > mv thursday.tar ~agnea1/backup-dir/Thursday > ;; > > Fri) > echo "Backuping for Friday" > cat backup-data | /usr/local/samba/bin/smbclient > \\\\$1\\$2 -I$3 -N echo "Complete" > > if [ -d "~agnea1/backup-dir/Friday" ]; then > echo "Directory Friday Not found ... > making" mkdir > ~agnea1/backup-dir/Friday > fi > echo "Archiving ..." > cd ~agnea1/backup-dir/temp > tar -cf friday.tar * > echo "done ..." > rm ~agnea1/backup-dir/Friday/friday.tar > mv friday.tar ~agnea1/backup-dir/Friday > ;; > > *) > echo "FATAL ERROR: Unknown variable passed for day" > exit 1;; > > esac > ########### > ___________________________________________________________________ > > 11. Copyright > > This HOWTO is copyright 1996-9 by David Wood. It may be reproduced > in any form and freely distributed as long as the file stays > intact, including this statement. > > 12. Acknowledgements > > Brad Marshall (bmarshall@plugged.net.au) and Jason Parker > (jparker@plugged.net.au) contributed time, patience, scripting and > research. > > Adam Neat (adamneat@ipax.com.au) contributed the bash script used > to back up Windows machines to a Linux host. > > Matthew Flint () told me about the use of the 'interfaces' option > in smb.conf. > > Oleg L. Machulskiy (machulsk@shade.msu.ru), Jeff Stern > (jstern@eclectic.ss.uci.edu), Dr. Michael Langner (langner@fiz- > chemie.de and Erik Ratcliffe (erik@caldera.com) suggested > modifications to the section on Sharing A Linux Printer With > Windows Machines. > > Alberto Menegazzi (flash.egon@iol.it) contributed the MagicFilter > setup to enable a Linux machine to share a Windows printer. > > Andrea Girotto (icarus@inca.dei.unipd.it) contributed a number of > valuable suggestions throughout the document. > > Thanks, also, to all of the international translators that have > brought this HOWTO to the non-English speaking world: Takeo Nakano > (nakano@apm.seikei.ac.jp), Klaus-Dieter Schumacher (Klaus- > Dieter.Schumacher@fernuni-hagen.de), Andrea Girotto > (icarus@inca.dei.unipd.it) and many others for whom I don't have > contact details. > > ---------------------------------------------------------------------------- ---- > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. > From linux-india-programmers-owner@lists.linux-india.org Sat Jul 15 10:31:09 2000 Received: from web5503.mail.yahoo.com (web5503.mail.yahoo.com [216.115.106.186]) by www.aunet.org (Postfix) with SMTP id EB0823808E for ; Sat, 15 Jul 2000 10:30:58 -0700 (PDT) Message-ID: <20000715173058.20052.qmail@web5503.mail.yahoo.com> Received: from [203.197.54.238] by web5503.mail.yahoo.com; Sat, 15 Jul 2000 10:30:58 PDT Date: Sat, 15 Jul 2000 10:30:58 -0700 (PDT) From: "Mahesh K." Subject: Re: Web Server Info Reqd To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/96 Apache is the best server. check out www.apache.org also, go to: www.webmonkey.com www.devshed.com they have EXCELLENT articles on Apache. Apache runs cool as a standalone webserver right out-of-the-box. u'll need to configure it if u need to run it on a network etc... there's also a book called APACHE SURVIVAL GUIDE i think.. even that's good. --- jayant kumar wrote: > Hi > I do not know much about web-servers. But I > know that Linux comes > with the world's best web server - apache. Try it > out. > > -----Jayant > > At 04:32 PM 7/11/00 +0530, you wrote: > >Hi Friends, > > > >I have recently joined this List. > > > >I am looking for your precious advice for setting > my my web server on linux > >as I want to host some commercial sites on my Linux > Machine. > > > >My only problem is that I do not know about the web > features provided by > >Linux as I have mostly worked on Windows > platfoms(IIS,Site Server). > > > >I would greatly appreciate your advice on how to go > about this. > > > >Thanks and regards > > > >Paramdeep singh > > > >----------------------------------------------------------------------- > >For more information on the LIP mailing list see: > >http://lists.linux-india.org/lists/LIP > > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sat Jul 15 10:37:49 2000 Received: from im.eth.net (mail.uthplanet.com [202.9.136.18]) by www.aunet.org (Postfix) with ESMTP id 21AE938077 for ; Sat, 15 Jul 2000 10:37:35 -0700 (PDT) Received: from mailandnews.com ([61.11.12.82]) by im.eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Sat, 15 Jul 2000 23:10:38 +0530 Message-ID: <39709D96.9FA195F9@mailandnews.com> Date: Sat, 15 Jul 2000 22:51:26 +0530 From: vulcan2000@mailandnews.com X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: lynx for windows ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/97 Mrinal Kalakrishnan wrote: > > Mrinal Kalakrishnan http://mrinal.dhs.org/ > Linux 2.2.16 || PGP:B1E86F5B || Mutt 1.3.4i (2000-06-19) || VIM 5.6 > -- > Linux is obsolete > (Andrew Tanenbaum) > hi mrinal, could you elaborate upon the above statement of andrew. regards, -vulcan From linux-india-programmers-owner@lists.linux-india.org Sat Jul 15 11:17:31 2000 Received: from giasbg01.vsnl.net.in (giasbg01.vsnl.net.in [202.54.12.17]) by www.aunet.org (Postfix) with ESMTP id EBDE1382DA for ; Sat, 15 Jul 2000 11:17:06 -0700 (PDT) Received: from localhost.localdomain (IDENT:root@[203.200.0.17]) by giasbg01.vsnl.net.in (8.9.3/8.9.3) with ESMTP id XAA13761 for ; Sat, 15 Jul 2000 23:51:03 +0500 (GMT+0500) Received: (from mrinal@localhost) by localhost.localdomain (8.9.3/8.9.3) id XAA04186 for linux-india-programmers@lists.linux-india.org; Sat, 15 Jul 2000 23:40:11 +0530 Date: Sat, 15 Jul 2000 23:40:11 +0530 From: Mrinal Kalakrishnan To: The Linux India Programmers Mailing List Subject: Re: lynx for windows ? Message-ID: <20000715234011.C3992@india.com> Mail-Followup-To: The Linux India Programmers Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39709D96.9FA195F9@mailandnews.com>; from vulcan2000@mailandnews.com on Sat, Jul 15, 2000 at 10:51:26PM +0530 X-Mailer: Mutt 1.3.4i (2000-06-19) X-Operating-System: Linux 2.2.16 X-Editor: VIM - Vi IMproved 5.6 X-URL: http://www.geocities.com/mrinal/ Organization: Jobless after finishing school! X-Archive-Number: 200007/98 Hi, vulcan2000@mailandnews.com typed: > > Linux is obsolete > > (Andrew Tanenbaum) > hi mrinal, > could you elaborate upon the above statement of andrew. Sure - Andrew Tanenbaum is the author of Minix - a small Unix system. He was totally against the design principles of the Linux kernel, so.... :-) Another of my taglines says: I still maintain the point that designing a monolithic kernel in 1991 is a fundamental error. Be thankful you are not my student. You would not get a high grade for such a design :-) (Andrew Tanenbaum to Linus Torvalds) And another: Your job is being a professor and researcher: That's one hell of a good excuse for some of the brain-damages of minix. (Linus Torvalds to Andrew Tanenbaum) -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.2.16 || PGP:B1E86F5B || Mutt 1.3.4i (2000-06-19) || VIM 5.6 -- "Oh, I've seen copies [of Linux Journal] around the terminal room at The Labs." (By Dennis Ritchie) From linux-india-programmers-owner@lists.linux-india.org Sat Jul 15 13:17:06 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 1AA0F38058 for ; Sat, 15 Jul 2000 13:16:58 -0700 (PDT) Received: (qmail 28839 invoked by uid 417); 15 Jul 2000 20:22:42 -0000 Received: from unknown (HELO deepak) (203.197.210.141) by smtpb.softhome.net with SMTP; 15 Jul 2000 20:22:42 -0000 Date: Sun, 16 Jul 2000 1:46:34 +0500 From: deepak yadav Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: pics in MySQL X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20000715201658.1AA0F38058@www.aunet.org> X-Archive-Number: 200007/99 hi i want to store pictures in MySQL database. what kind of data type is to be used. and how to go about storing it . please help . a small code would be very helpful. ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- Try not to let implementation details sneak into design documents. From linux-india-programmers-owner@lists.linux-india.org Sat Jul 15 23:43:55 2000 Received: from hotmail.com (f302.law8.hotmail.com [216.33.240.177]) by www.aunet.org (Postfix) with SMTP id 226563805D for ; Sat, 15 Jul 2000 23:43:48 -0700 (PDT) Received: (qmail 27247 invoked by uid 0); 16 Jul 2000 06:43:37 -0000 Message-ID: <20000716064337.27246.qmail@hotmail.com> Received: from 203.197.45.217 by www.hotmail.com with HTTP; Sat, 15 Jul 2000 23:43:37 PDT X-Originating-IP: [203.197.45.217] From: "Shailesh R L" To: linux-india-programmers@lists.linux-india.org Subject: Can u help? Date: Sun, 16 Jul 2000 06:43:37 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Archive-Number: 200007/100 hii, i am new to this list. i recently installed linux 6.2 from PCquest(june) CD. it installed properly as KDE workstation. but i am having problems with my display card settings. I have a P1-166,16MB ram,8.4 HDD,a SiS(6215) video card with 1MB video ram. now when i boot into KDE desktop, all the icons,text,windows appear very big. i am able to see only about 40% of my desktop at a time. linux reported that it is using a 340x420 video mode. how do i get a normal desktop? how do i set my resolution to atleast 640x480 mode. is this b'coz i have only 1MB video memory? Please help. i want help desperately. regards, shailesh. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From linux-india-programmers-owner@lists.linux-india.org Sun Jul 16 01:37:38 2000 Received: from web5305.mail.yahoo.com (web5305.mail.yahoo.com [216.115.106.114]) by www.aunet.org (Postfix) with SMTP id 910053805D for ; Sun, 16 Jul 2000 01:37:29 -0700 (PDT) Message-ID: <20000716083728.394.qmail@web5305.mail.yahoo.com> Received: from [203.197.123.113] by web5305.mail.yahoo.com; Sun, 16 Jul 2000 01:37:28 PDT Date: Sun, 16 Jul 2000 01:37:28 -0700 (PDT) From: Santosh Singh Subject: Re: Can u help? To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/101 --- Shailesh R L wrote: > hii, > i am new to this list. i recently installed linux > 6.2 from PCquest(june) > CD. it installed properly as KDE workstation. but i > am having problems > with my display card settings. I have a P1-166,16MB > ram,8.4 HDD,a SiS(6215) > video card with 1MB video ram. now when i boot into > KDE desktop, all the > icons,text,windows appear very big. i am able to see > only about > 40% of my desktop at a time. linux reported that it > is using a 340x420 > video mode. how do i get a normal desktop? how do i > set my resolution > to atleast 640x480 mode. is this b'coz i have only > 1MB video memory? > Please help. i want help desperately. > > regards, > shailesh. > > Edit your XF86Config file and then enter 640x480 among available resolution under Display Section VGA16 and set virtual resolution also to 640x480. XF86Config is in somewhere deep inside /usr.Search for it. Best of luck. --Santosh ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at > http://www.hotmail.com > > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Sun Jul 16 08:34:52 2000 Received: from smtp.mail.yahoo.com (smtp.mail.yahoo.com [128.11.68.32]) by www.aunet.org (Postfix) with SMTP id 6477E38056 for ; Sun, 16 Jul 2000 08:34:43 -0700 (PDT) Received: from unknown (HELO yahoo.com) (202.54.100.92) by smtp.mail.yahoo.com with SMTP; 16 Jul 2000 15:31:31 -0000 X-Apparently-From: Message-ID: <3971D43E.65F1DECE@yahoo.com> Date: Sun, 16 Jul 2000 20:56:55 +0530 From: Ashish kumar X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: pics in MySQL Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/102 blob deepak yadav wrote: > hi > i want to store pictures in MySQL database. what kind of data type is to be used. and how to go about storing it . > please help . a small code would be very helpful. > > ----------------------------- > reply soon > bye > > __ deepak __ > > have a great day > ICQ 30662394 > > -- Try not to let implementation details sneak into design documents. > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Sun Jul 16 19:11:59 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id C63A138061 for ; Sun, 16 Jul 2000 19:11:49 -0700 (PDT) Received: (qmail 15201 invoked by uid 417); 17 Jul 2000 02:17:35 -0000 Received: from unknown (HELO deepak) (203.94.251.112) by smtpb.softhome.net with SMTP; 17 Jul 2000 02:17:35 -0000 Date: Mon, 17 Jul 2000 7:41:22 +0500 From: deepak yadav Reply-To: deepakyadav@india.com To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: pics in MySQL X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20000717021149.C63A138061@www.aunet.org> X-Archive-Number: 200007/103 hi someone told me its blob. but how to put the picture in it. thanks _________ deepak At 7/16/00 8:56:00 PM, you wrote: >blob > >deepak yadav wrote: > >> hi >> i want to store pictures in MySQL database. what kind of data type is to be used. and how to go about storing it . >> please help . a small code would be very helpful. >> >> ----------------------------- >> reply soon >> bye >> >> __ deepak __ >> >> have a great day >> ICQ 30662394 >> >> -- Try not to let implementation details sneak into design documents. >> >> ----------------------------------------------------------------------- >> The LIP mailing list archives are available at: >> http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > >__________________________________________________ >Do You Yahoo!? >Talk to your friends online with Yahoo! Messenger. >http://im.yahoo.com > >----------------------------------------------------------------------- >The LIP mailing list archives are available at: >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- Every absurdity has a champion to defend it. From linux-india-programmers-owner@lists.linux-india.org Sun Jul 16 21:43:01 2000 Received: from www.cdfd.org.in (unknown [202.54.67.145]) by www.aunet.org (Postfix) with ESMTP id 6A86B380C0 for ; Sun, 16 Jul 2000 21:42:43 -0700 (PDT) Received: from localhost (indraneel@localhost) by www.cdfd.org.in (980427.SGI.8.8.8/970903.SGI.AUTOCF) via SMTP id KAA86468 for ; Mon, 17 Jul 2000 10:18:07 -0700 (PDT) Date: Mon, 17 Jul 2000 10:18:07 -0700 (PDT) From: Indraneel Majumdar To: linux-india-programmers@lists.linux-india.org Subject: Re: Can u help? In-Reply-To: <20000716064337.27246.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 200007/104 probably you can get 800x600 @ 8bpp (hresxvresxbytes_per_pixel <=3D vram) putting an additional 1MB at Rs 250/- is recommended to get 16bpp use xf86config to set up your card use SiS chipset type 205 AND check the archives for queries related to old hardware (always) best wishes, Indraneel On Sun, 16 Jul 2000, Shailesh R L wrote: > hii, > i am new to this list. i recently installed linux 6.2 from PCquest(june) > CD. it installed properly as KDE workstation. but i am having problems > with my display card settings. I have a P1-166,16MB ram,8.4 HDD,a SiS(621= 5)=20 > video card with 1MB video ram. now when i boot into KDE desktop, all the= =20 > icons,text,windows appear very big. i am able to see only about > 40% of my desktop at a time. linux reported that it is using a 340x420 > video mode. how do i get a normal desktop? how do i set my resolution > to atleast 640x480 mode. is this b'coz i have only 1MB video memory? > Please help. i want help desperately. >=20 > regards, > shailesh. >=20 /************************************************************************. # Indraneel Majumdar =A1 E-mail: indraneel@123india.com # # Bioinformatics Unit (EMBNET node), =A1 URL: http://scorpius.iwarp.com # # Centre for DNA Fingerprinting and Diagnostics, # # Hyderabad, India - 500076 # `************************************************************************/ From linux-india-programmers-owner@lists.linux-india.org Sun Jul 16 21:55:52 2000 Received: from alabama.innomedia.soft.net (ns.innomedia.soft.net [164.164.79.130]) by www.aunet.org (Postfix) with ESMTP id 8CDF83805D for ; Sun, 16 Jul 2000 21:55:38 -0700 (PDT) Received: from MUTHU ([192.168.1.155]) by alabama.innomedia.soft.net (8.9.3/8.8.7) with SMTP id KAA10056 for ; Mon, 17 Jul 2000 10:26:57 +0530 Message-ID: <005f01bfd819$3bbbab00$9b01a8c0@MUTHU> From: "Muthu" To: Subject: Re: pics in MySQL Date: Sat, 17 Jun 2000 10:32:27 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-Archive-Number: 200007/105 Hai deepak, Use Blob data type to store images.One way of updating the image in datafield is , Open the image file and read chunks of bytes (say 1024) and update the blob datafield. i hope the above information will help you with regards Muthukumar > hi > i want to store pictures in MySQL database. what kind of data type is to be used. and how to go about storing it . > please help . a small code would be very helpful. > > reply soon > bye > > __ deepak __ > > have a great day > ICQ 30662394 > > -- Try not to let implementation details sneak into design documents. > > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Sun Jul 16 23:41:00 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id 740CD38084 for ; Sun, 16 Jul 2000 23:40:45 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.214]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 6525691F.0024D901; Mon, 17 Jul 2000 12:12:28 +0530 Message-ID: <39720182.AF823A74@hydbad.tcs.co.in> Date: Mon, 17 Jul 2000 00:10:02 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Linux India Programmers Subject: Client Side Encryption Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/106 hi friends, I need ur valuable help. The client(browser) will connect to the server. He gets the page. He fills the form details and when he submit the form, I need local encryption has to take place to protect the information filled in the form. (and also I have to add digital signature while submitting the form). The transactions are completely through "https connection". Even though the transaction is completely secure, I want to do encryption and signing on client side. How it is possible? I will very happy If u provide code or links. Thanks in advance & Regards, Ravi Prakash From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 00:34:46 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id 8FB1938058 for ; Mon, 17 Jul 2000 00:34:34 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Mon, 17 Jul 2000 13:05:23 -0500 Received: from [172.16.2.64] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Mon, 17 Jul 2000 13:00:32 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Mon, 17 Jul 2000 13:00:25 +0530 Message-Id: <015301bfefc1$43f04690$161819ac@io26> From: "Mahesh" To: Subject: Re: Client Side Encryption Date: Mon, 17 Jul 2000 13:03:13 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/107 Hi Ravi, You can write some kind of proxy or if u already have some ready made one to encrypt your data before sending it to the actual server. Writing the proxy server would be easy( I can provide you the starers ), only thing u need to write is the standard encryption etc. You can also try PGP ( some version exists for HTTP i think apart from SMTP / POP ) -Mahesh mahesh@www.com ----- Original Message ----- From: Ravi Prakash B.V. To: Linux India Programmers Sent: Monday, July 17, 2000 12:10 AM Subject: [LIP] Client Side Encryption > hi friends, > I need ur valuable help. > The client(browser) will connect to the server. > He gets the page. > He fills the form details and when he submit the form, I need local > encryption has to take place to protect the information filled in the > form. (and also I have to add digital signature while submitting the > form). > The transactions are completely through "https connection". Even though > the transaction is completely secure, I want to do encryption and > signing on client side. How it is possible? > I will very happy If u provide code or links. > > Thanks in advance & Regards, > Ravi Prakash > > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ > From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 01:25:11 2000 Received: from svrhydmail.hydbad.tcs.co.in (unknown [196.12.38.40]) by www.aunet.org (Postfix) with SMTP id DCFA638058 for ; Mon, 17 Jul 2000 01:24:56 -0700 (PDT) Received: from hydbad.tcs.co.in ([172.19.8.214]) by svrhydmail.hydbad.tcs.co.in (Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) with SMTP id 6525691F.002E6422; Mon, 17 Jul 2000 13:56:42 +0530 Message-ID: <397219F0.B66DC4E6@hydbad.tcs.co.in> Date: Mon, 17 Jul 2000 01:54:16 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Linux India Programmers Subject: Client Side Encryption] Content-Type: multipart/mixed; boundary="------------7180B35D49FFE4663AD7EDF1" X-Archive-Number: 200007/108 This is a multi-part message in MIME format. --------------7180B35D49FFE4663AD7EDF1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------7180B35D49FFE4663AD7EDF1 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mozilla-Status2: 00000000 Message-ID: <3972146D.BA932E63@hydbad.tcs.co.in> Date: Mon, 17 Jul 2000 01:30:45 +0530 From: " Ravi Prakash B.V." X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Mahesh Subject: Re: [LIP] Client Side Encryption References: <52DECD7CCB916EE36525691F0029E88E.0029AA806525691F@TCSHYD> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi , Thanks Mahesh.... But I didnt get completely.... I am having all stuff related PGP and openSSL also.... I know how to use individually but I dont know how to incorporate with the page... I didnt understand how to use those stuff before submitting the form. I also heard about proxy kind of doing... but I didnt know exactly how to do... In detailly , For eg: In
How to incoporate my processing automatically before posting to the URL... I will be greatfull if u refer any code or links.... Thanks in advance & Regards, Ravi Prakash Mahesh wrote: > Hi Ravi, > > You can write some kind of proxy or if u already have some ready made > one > to encrypt your data before sending it to the actual server. > Writing the proxy server would be easy( I can provide you the starers ), > only thing u need to write is the standard encryption etc. You can also try > PGP ( some version exists for HTTP i think apart from SMTP / POP ) > -Mahesh > mahesh@www.com > > ----- Original Message ----- > From: Ravi Prakash B.V. > To: Linux India Programmers > Sent: Monday, July 17, 2000 12:10 AM > Subject: [LIP] Client Side Encryption > > > hi friends, > > I need ur valuable help. > > The client(browser) will connect to the server. > > He gets the page. > > He fills the form details and when he submit the form, I need local > > encryption has to take place to protect the information filled in the > > form. (and also I have to add digital signature while submitting the > > form). > > The transactions are completely through "https connection". Even though > > the transaction is completely secure, I want to do encryption and > > signing on client side. How it is possible? > > I will very happy If u provide code or links. > > > > Thanks in advance & Regards, > > Ravi Prakash > > > > > > > > ----------------------------------------------------------------------- > > For information on this and other Linux India mailing lists check out > > http://lists.linux-india.org/ > > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ --------------7180B35D49FFE4663AD7EDF1-- From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 04:42:41 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id CAE25380BD for ; Mon, 17 Jul 2000 04:42:17 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id RAA19642 for ; Mon, 17 Jul 2000 17:12:02 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdUn97nT; Mon Jul 17 17:11:54 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id RAA31678 for ; Mon, 17 Jul 2000 17:09:36 +0530 Message-ID: <3972F15F.3397430@mahindrabt.com> Date: Mon, 17 Jul 2000 17:13:27 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Can u help? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/109 hi list please see the archives of linux-india-help, sis6215 is detailed there. having more VRAM would help. Santosh Singh wrote: > > to atleast 640x480 mode. is this b'coz i have only > > 1MB video memory? > > shailesh. > set virtual resolution also to 640x480. XF86Config is > in somewhere deep inside /usr.Search for it. > installation/configuration related problems to LIH and not on LIP. XF86Config is in /etc/X11 HTH -- Rajeev Jha ---------------------------------------------------------------------- Why Windows NT Server 4.0 continues to exist in the enterprise would be a topic appropriate for an investigative report in the field of psychology or marketing, not an article on information technology. --------- From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 05:09:10 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id 5D9C938222 for ; Mon, 17 Jul 2000 05:08:48 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Mon, 17 Jul 2000 17:37:15 -0500 Received: from [172.16.2.64] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Mon, 17 Jul 2000 17:32:53 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Mon, 17 Jul 2000 17:32:25 +0530 Message-Id: <021801bfefe7$425bcea0$161819ac@io26> From: "Mahesh" To: Subject: Re: Can u help? Date: Mon, 17 Jul 2000 17:35:11 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/110 Hi , If u need to change the display parameters, i would advice not to change the XF86Config file directly. Instead just run setup and in that select X Configuration. also if you have X windows running in the applets there is one which which allow you to position your window in a specific location. I forgot the name but its present along with the gnome gui - Mahesh mahesh@www.com ----- Original Message ----- From: Rajeev Jha To: Sent: Monday, July 17, 2000 5:13 PM Subject: Re: [LIP] Can u help? > hi list > please see the archives of linux-india-help, sis6215 is detailed there. > having more VRAM would help. > Santosh Singh wrote: > > > to atleast 640x480 mode. is this b'coz i have only > > > 1MB video memory? > > > shailesh. > > > set virtual resolution also to 640x480. XF86Config is > > in somewhere deep inside /usr.Search for it. > > > installation/configuration related problems to LIH and not on LIP. > XF86Config is in /etc/X11 > > HTH > > -- > Rajeev Jha > > ---------------------------------------------------------------------- > Why Windows NT Server 4.0 continues to exist in the enterprise would be > a topic appropriate for an > investigative report in the field of psychology or marketing, not an > article on information technology. > > --------- > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ > > From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 08:52:17 2000 Received: from ewey.excite.com (ewey-rwcmta.excite.com [198.3.99.191]) by www.aunet.org (Postfix) with ESMTP id 735C138063 for ; Mon, 17 Jul 2000 08:52:09 -0700 (PDT) Received: from slippery ([199.172.153.106]) by ewey.excite.com (InterMail vM.4.01.02.39 201-229-119-122) with ESMTP id <20000717155208.BBCF14510.ewey.excite.com@slippery> for ; Mon, 17 Jul 2000 08:52:08 -0700 Message-ID: <20066164.963849128747.JavaMail.imail@slippery> Date: Mon, 17 Jul 2000 08:52:08 -0700 (PDT) From: "K.Uday kumar" To: linux-india-programmers@lists.linux-india.org Subject: Client Side Encryption Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Excite Inbox X-Sender-Ip: 196.12.44.7 X-Archive-Number: 200007/111 Hello list, >> The transactions are completely through "https connection". Can anyone give my some information on https and how to get it working with the apache webserver.Any pointers would also suffice. uday. _______________________________________________________ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 21:51:04 2000 Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by www.aunet.org (Postfix) with ESMTP id 3FA983811C for ; Mon, 17 Jul 2000 21:50:49 -0700 (PDT) Received: from pspl.co.in (denpasar.intranet.pspl.co.in [192.168.1.22]) by www.pspl.co.in (8.9.3/8.9.3) with ESMTP id KAA09572 for ; Tue, 18 Jul 2000 10:22:47 +0530 Message-ID: <3973E2D0.5630E6C6@pspl.co.in> Date: Tue, 18 Jul 2000 10:23:36 +0530 From: Mandar Behere X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Client Side Encryption Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/112 http://www.modssl.org/ Mandar "K.Uday kumar" wrote: > Hello list, > > >> The transactions are completely through "https connection". > > Can anyone give my some information on https and how to get it working with > the apache webserver.Any pointers would also suffice. > > uday. > > _______________________________________________________ > Say Bye to Slow Internet! > http://www.home.com/xinbox/signup.html > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ -- Mandar Prabhakar Behere Member of Technical Staff Persistent Systems Pvt. Ltd. Phone : office : 91-20-5676700 ext. 541 residence : 91-20-4485174 Homepage: http://www.pspl.co.in/~mandarb From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 23:04:24 2000 Received: from mail.cysphere.com (unknown [203.197.248.131]) by www.aunet.org (Postfix) with ESMTP id 833B438062 for ; Mon, 17 Jul 2000 23:04:12 -0700 (PDT) Received: from ralhan ([203.197.248.133]) by mail.cysphere.com (Post.Office MTA v3.5.3 release 223 ID# 0-63969U100L2S100V35) with SMTP id com for ; Tue, 18 Jul 2000 11:12:25 +0530 From: ralhan@cysphere.com (ralhan) To: Subject: RE: Client Side Encryption Date: Mon, 17 Jul 2000 23:11:46 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20066164.963849128747.JavaMail.imail@slippery> Importance: Normal X-Archive-Number: 200007/113 i think you need to install openssl for it and then add a patch of mod_ssl to your apache.check out license and other things.also after that with openssl you can generate your test certificate and there you go and have https.for practical purposes you will have to buy a certificate from commercial people like verisign or others.check out there site for more. hope this helps ralhan -----Original Message----- From: linux-india-programmers-owner@lists.linux-india.org [mailto:linux-india-programmers-owner@lists.linux-india.org]On Behalf Of K.Uday kumar Sent: Monday, July 17, 2000 9:22 PM To: linux-india-programmers@lists.linux-india.org Subject: [LIP] Client Side Encryption Hello list, >> The transactions are completely through "https connection". Can anyone give my some information on https and how to get it working with the apache webserver.Any pointers would also suffice. uday. _______________________________________________________ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html ----------------------------------------------------------------------- For information on this and other Linux India mailing lists check out http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 23:10:09 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 9AF673807A for ; Mon, 17 Jul 2000 23:09:15 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2230154 for ; Tue, 18 Jul 2000 11:44:57 +0530 From: "Linux List " Subject: Re: pics in MySQL To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Tue, 18 Jul 2000 11:44:57 +0530 Message-ID: In-Reply-To: <005f01bfd819$3bbbab00$9b01a8c0@MUTHU> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200007/114 hi Wanted to ask the same.U have some think like that in Oracle.Do you have somethink like that for PostGRESQl. I want to store the images in binary form in the database. vinu On Sat, 17 Jun 2000 10:32:27 +0530 "Muthu" wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > Hai deepak, > > Use Blob data type to store images.One way of > updating the image in > datafield is , Open the image file and read chunks of > bytes (say 1024) and > update the blob datafield. > > i hope the above information will help you > > with regards > Muthukumar > > > hi > > i want to store pictures in MySQL database. what kind > of data type is to > be used. and how to go about storing it . > > please help . a small code would be very helpful. > > > > reply soon > > bye > > > > __ deepak __ > > > > have a great day > > ICQ 30662394 > > > > -- Try not to let implementation details sneak into > design documents. > > > > > > ----------------------------------------------------------------------- > > The LIP mailing list archives are available at: > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 23:13:52 2000 Received: from proxy.netbase.stpn.soft.net (unknown [12.10.193.131]) by www.aunet.org (Postfix) with ESMTP id 91E0F3807A for ; Mon, 17 Jul 2000 23:13:41 -0700 (PDT) Received: by proxy.netbase.stpn.soft.net with Internet Mail Service (5.5.2650.21) id ; Tue, 18 Jul 2000 11:46:28 +0530 Message-ID: <616EA43AB295D311B06E00508B44A0200D9F7A@proxy.netbase.stpn.soft.net> From: Paramdeep Singh To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: pics in MySQL Date: Tue, 18 Jul 2000 11:46:27 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200007/115 Yes you do have in Oracle. and exact way of storing depends on the version you are using of oracle. The oldest available oracle version shall support LongRaw(upto 2G) binary dat. and 8 ,8i have sepcial facilities for storing multimedia content Param -----Original Message----- From: Linux List [mailto:linux-prog@sce.ac.in] Sent: Tuesday, July 18, 2000 11:45 AM To: linux-india-programmers@lists.linux-india.org Subject: Re: [LIP] pics in MySQL hi Wanted to ask the same.U have some think like that in Oracle.Do you have somethink like that for PostGRESQl. I want to store the images in binary form in the database. vinu On Sat, 17 Jun 2000 10:32:27 +0530 "Muthu" wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > Hai deepak, > > Use Blob data type to store images.One way of > updating the image in > datafield is , Open the image file and read chunks of > bytes (say 1024) and > update the blob datafield. > > i hope the above information will help you > > with regards > Muthukumar > > > hi > > i want to store pictures in MySQL database. what kind > of data type is to > be used. and how to go about storing it . > > please help . a small code would be very helpful. > > > > reply soon > > bye > > > > __ deepak __ > > > > have a great day > > ICQ 30662394 > > > > -- Try not to let implementation details sneak into > design documents. > > > > > > ----------------------------------------------------------------------- > > The LIP mailing list archives are available at: > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP ----------------------------------------------------------------------- For information on this and other Linux India mailing lists check out http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Mon Jul 17 23:32:51 2000 Received: from ausmtp02.au.ibm.com (ausmtp02.au.ibm.COM [202.135.136.105]) by www.aunet.org (Postfix) with ESMTP id 3FED03823A; Mon, 17 Jul 2000 23:32:42 -0700 (PDT) Received: from f03n07e.au.ibm.com by ausmtp02.au.ibm.com (IBM AP 1.0) with ESMTP id QAA101206; Tue, 18 Jul 2000 16:26:27 +1000 From: tgravik@in.ibm.com Received: from d73mta05.au.ibm.com (f06n05s [9.185.166.67]) by f03n07e.au.ibm.com (8.8.8m3/NCO v4.91) with SMTP id QAA38348; Tue, 18 Jul 2000 16:32:13 +1000 Received: by d73mta05.au.ibm.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id CA256920.0023D9D7 ; Tue, 18 Jul 2000 16:31:35 +1000 X-Lotus-FromDomain: IBMIN@IBMAU To: linux-india-programmers@lists.linux-india.org, linux-india-help@lists.linux-india.org Message-ID: Date: Tue, 18 Jul 2000 11:28:49 +0530 Subject: Re: NoClassDefFound error & [LIH] sun jdk on RH6.2 Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200007/116 Well, I wasn't in office for sometime....now that I'm back, here goes *From jdk1.2*, u don't need to set the classpath at all!!!!! (If u use the bootstrap classes and the extensions provided by jdk only). Check these links out as to how classes are found. http://java.sun.com/products/jdk/1.2/docs/tooldocs/findingclasses.html http://java.sun.com/products/jdk/1.2/docs/tooldocs/solaris/classpath.html And yes, the classes in the current directory are also "seen" by the java interpreter since "." is the default CLASSPATH setting (i.e if no CLASSPATH env variable is found). If u need to define the CLASSPATH environment variable, (for classes developed by u/3rd party) then you will have to specify "." in the classpath, as you overrode the default "." ...seems fair enough doesn't it. The links should give u more info. HTH Kiran Rajeev Jha on 07/13/2000 10:35:59 AM Please respond to linux-india-programmers@lists.linux-india.org To: linux-india-programmers@lists.linux-india.org cc: (bcc: Ravikiran G Thirumalai/India/IBM) Subject: Re: [LIP] NoClassDefFound error putting . in classpath solves the problem , but why do we need the current directory in classpath ? it should first look in the current directory only , is n't it ? tgravik@in.ibm.com wrote: > > You probably donot have "." the current directory in ur classpath. Correct > the same and try running "java" on the class file and Subject: Re: [LIH] sun jdk on RH6.2 Date: Tue, 18 Jul 2000 09:57:46 +0530 From: Rajeev Jha Reply-To: linux-india-help@lists.linux-india.org To: linux-india-help@lists.linux-india.org hi list the problem was of not having a . in classpath. but java and javac path were set and i was trying to execute the byte-codes from current directory only. on earlier machine classpath didn't have a . and it was working fine, when i executed programs from the same directory. on this machine also,search should start from the current directory , so why u have to include it explicitly in the classpath ? From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 00:45:09 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id D3D4638060 for ; Tue, 18 Jul 2000 00:44:27 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2230395 for ; Tue, 18 Jul 2000 13:20:08 +0530 From: "Linux List " Subject: Re: pics in MySQL To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Tue, 18 Jul 2000 13:20:08 +0530 Message-ID: In-Reply-To: <616EA43AB295D311B06E00508B44A0200D9F7A@proxy.netbase.stpn.soft.net> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200007/117 Do you have any examples on how to store an image in binary form.The GUI i am using is Java(jdbc connection) so tell me how to connect and store the image in db. vinu On Tue, 18 Jul 2000 11:46:27 +0530 Paramdeep Singh wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > Yes > you do have in Oracle. > > and exact way of storing depends on the version you are > using of oracle. > > The oldest available oracle version shall support > LongRaw(upto 2G) binary > dat. > and 8 ,8i have sepcial facilities for storing multimedia > content > > Param > > > > -----Original Message----- > From: Linux List [mailto:linux-prog@sce.ac.in] > Sent: Tuesday, July 18, 2000 11:45 AM > To: linux-india-programmers@lists.linux-india.org > Subject: Re: [LIP] pics in MySQL > > > hi > Wanted to ask the same.U have some think like that in > Oracle.Do you have somethink like that for PostGRESQl. > I want to store the images in binary form in the > database. > vinu > > On Sat, 17 Jun 2000 10:32:27 +0530 > "Muthu" wrote: > > *This message was transferred with a trial version of > > CommuniGate(tm) Pro* > > Hai deepak, > > > > Use Blob data type to store images.One way of > > updating the image in > > datafield is , Open the image file and read chunks of > > bytes (say 1024) and > > update the blob datafield. > > > > i hope the above information will help you > > > > with regards > > Muthukumar > > > > > hi > > > i want to store pictures in MySQL database. what kind > > of data type is to > > be used. and how to go about storing it . > > > please help . a small code would be very helpful. > > > > > > reply soon > > > bye > > > > > > __ deepak __ > > > > > > have a great day > > > ICQ 30662394 > > > > > > -- Try not to let implementation details sneak into > > design documents. > > > > > > > > > ----------------------------------------------------------------------- > > > The LIP mailing list archives are available at: > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > ----------------------------------------------------------------------- > > For more information on the LIP mailing list see: > > http://lists.linux-india.org/lists/LIP > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing > lists check out > http://lists.linux-india.org/ > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 01:27:01 2000 Received: from proxy.netbase.stpn.soft.net (unknown [12.10.193.131]) by www.aunet.org (Postfix) with ESMTP id 5F6593815C for ; Tue, 18 Jul 2000 01:10:22 -0700 (PDT) Received: by proxy.netbase.stpn.soft.net with Internet Mail Service (5.5.2650.21) id ; Tue, 18 Jul 2000 13:43:10 +0530 Message-ID: <616EA43AB295D311B06E00508B44A0200D9F84@proxy.netbase.stpn.soft.net> From: Paramdeep Singh To: "'linux-india-programmers@lists.linux-india.org'" Subject: RE: pics in MySQL Date: Tue, 18 Jul 2000 13:43:09 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200007/118 Sorry Vinu I haven't worked in Java so I am not able to help you in that.I am a VB Guy If i am able to find out any I surely will get it to you Param -----Original Message----- From: Linux List [mailto:linux-prog@sce.ac.in] Sent: Tuesday, July 18, 2000 1:20 PM To: linux-india-programmers@lists.linux-india.org Subject: Re: [LIP] pics in MySQL Do you have any examples on how to store an image in binary form.The GUI i am using is Java(jdbc connection) so tell me how to connect and store the image in db. vinu On Tue, 18 Jul 2000 11:46:27 +0530 Paramdeep Singh wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > Yes > you do have in Oracle. > > and exact way of storing depends on the version you are > using of oracle. > > The oldest available oracle version shall support > LongRaw(upto 2G) binary > dat. > and 8 ,8i have sepcial facilities for storing multimedia > content > > Param > > > > -----Original Message----- > From: Linux List [mailto:linux-prog@sce.ac.in] > Sent: Tuesday, July 18, 2000 11:45 AM > To: linux-india-programmers@lists.linux-india.org > Subject: Re: [LIP] pics in MySQL > > > hi > Wanted to ask the same.U have some think like that in > Oracle.Do you have somethink like that for PostGRESQl. > I want to store the images in binary form in the > database. > vinu > > On Sat, 17 Jun 2000 10:32:27 +0530 > "Muthu" wrote: > > *This message was transferred with a trial version of > > CommuniGate(tm) Pro* > > Hai deepak, > > > > Use Blob data type to store images.One way of > > updating the image in > > datafield is , Open the image file and read chunks of > > bytes (say 1024) and > > update the blob datafield. > > > > i hope the above information will help you > > > > with regards > > Muthukumar > > > > > hi > > > i want to store pictures in MySQL database. what kind > > of data type is to > > be used. and how to go about storing it . > > > please help . a small code would be very helpful. > > > > > > reply soon > > > bye > > > > > > __ deepak __ > > > > > > have a great day > > > ICQ 30662394 > > > > > > -- Try not to let implementation details sneak into > > design documents. > > > > > > > > > ----------------------------------------------------------------------- > > > The LIP mailing list archives are available at: > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > ----------------------------------------------------------------------- > > For more information on the LIP mailing list see: > > http://lists.linux-india.org/lists/LIP > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing > lists check out > http://lists.linux-india.org/ > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP ----------------------------------------------------------------------- The LIP mailing list archives are available at: http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 01:57:01 2000 Received: from linux.wiplash.com (unknown [203.94.253.4]) by www.aunet.org (Postfix) with ESMTP id C33B638089 for ; Tue, 18 Jul 2000 01:55:40 -0700 (PDT) Received: from deepak ([192.168.0.22]) by linux.wiplash.com (8.9.3/8.8.7) with SMTP id OAA01976 for ; Tue, 18 Jul 2000 14:30:53 +0530 Message-Id: <200007180900.OAA01976@linux.wiplash.com> Date: Tue, 18 Jul 2000 14:24:55 +0500 From: deepak yadav Reply-To: deepakyadav@india.com To: "linux-india-programmers@lists.linux-india.org" Subject: Re: Re: pics in MySQL X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/119 hi i found out how to do that in mysql. use following sql statement for mysql , it may work for u UPDATE table_name SET blob_column=LOAD_FILE("/tmp/picture") WHERE id=1; __________ deepak At 7/18/00 1:20:00 PM, you wrote: >Do you have any examples on how to store an image in >binary form.The GUI i am using is Java(jdbc connection) >so tell me how to connect and store the image in >db. >vinu >On Tue, 18 Jul 2000 11:46:27 +0530 > Paramdeep Singh wrote: >> *This message was transferred with a trial version of >> CommuniGate(tm) Pro* >> Yes >> you do have in Oracle. >> >> and exact way of storing depends on the version you are >> using of oracle. >> >> The oldest available oracle version shall support >> LongRaw(upto 2G) binary >> dat. >> and 8 ,8i have sepcial facilities for storing multimedia >> content >> >> Param >> >> >> >> -----Original Message----- >> From: Linux List [mailto:linux-prog@sce.ac.in] >> Sent: Tuesday, July 18, 2000 11:45 AM >> To: linux-india-programmers@lists.linux-india.org >> Subject: Re: [LIP] pics in MySQL >> >> >> hi >> Wanted to ask the same.U have some think like that in >> Oracle.Do you have somethink like that for PostGRESQl. >> I want to store the images in binary form in the >> database. >> vinu >> >> On Sat, 17 Jun 2000 10:32:27 +0530 >> "Muthu" wrote: >> > *This message was transferred with a trial version of >> > CommuniGate(tm) Pro* >> > Hai deepak, >> > >> > Use Blob data type to store images.One way of >> > updating the image in >> > datafield is , Open the image file and read chunks of >> > bytes (say 1024) and >> > update the blob datafield. >> > >> > i hope the above information will help you >> > >> > with regards >> > Muthukumar >> > >> > > hi >> > > i want to store pictures in MySQL database. what kind >> > of data type is to >> > be used. and how to go about storing it . >> > > please help . a small code would be very helpful. >> > > >> > > reply soon >> > > bye >> > > >> > > __ deepak __ >> > > >> > > have a great day >> > > ICQ 30662394 >> > > >> > > -- Try not to let implementation details sneak into >> > design documents. >> > > >> > > >> > > ----------------------------------------------------------------------- >> > > The LIP mailing list archives are available at: >> > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers >> > >> > >> > ----------------------------------------------------------------------- >> > For more information on the LIP mailing list see: >> > http://lists.linux-india.org/lists/LIP >> >> >> ----------------------------------------------------------------------- >> For information on this and other Linux India mailing >> lists check out >> http://lists.linux-india.org/ >> >> ----------------------------------------------------------------------- >> For more information on the LIP mailing list see: >> http://lists.linux-india.org/lists/LIP > > >----------------------------------------------------------------------- >The LIP mailing list archives are available at: >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- No program done by an undergrad will work after she graduates. From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 06:21:04 2000 Received: from alabama.innomedia.soft.net (ns.innomedia.soft.net [164.164.79.130]) by www.aunet.org (Postfix) with ESMTP id 89CE038091 for ; Tue, 18 Jul 2000 06:20:52 -0700 (PDT) Received: from MUTHU ([192.168.1.155]) by alabama.innomedia.soft.net (8.9.3/8.8.7) with SMTP id SAA00429 for ; Tue, 18 Jul 2000 18:52:27 +0530 Message-ID: <001d01bff0bb$f8083020$9b01a8c0@MUTHU> From: "Muthu" To: Subject: Re: pics in MySQL Date: Tue, 18 Jul 2000 18:57:49 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-Archive-Number: 200007/120 hai vinu One way of updating the image in datafield is , Open the image file in binary mode and read chunks of bytes (say 1024) and update the blob datafield.i havnt worked in java, but vb has some example (see msdn -vb help).There are some methods also available.[Long back i have done it , but i dont remember now.i am sorry] i hope the above information will help you with regards Muthukumar From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 07:54:27 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id 0C61838089 for ; Tue, 18 Jul 2000 07:54:03 -0700 (PDT) Received: from eth.net ([10.2.1.41]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Tue, 18 Jul 2000 19:42:00 +0530 Received: from cranks ([202.9.150.116]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Tue, 18 Jul 2000 19:43:49 +0530 Message-ID: <007e01bff0c4$0ea342e0$749609ca@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: Re: pics in MySQL Date: Tue, 18 Jul 2000 18:58:10 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200007/121 ----- Original Message ----- From: Linux List To: Sent: Tuesday, July 18, 2000 1:20 PM Subject: Re: [LIP] pics in MySQL > Do you have any examples on how to store an image in > binary form.The GUI i am using is Java(jdbc connection) Connection con=null; Class.forName("oracle.jdbc.driver.OracleDriver"); ( if u r using oracle drivers) Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); ( if u r using an odbc bridge ) con=DriverManager.getConnection("jdbc:oracle:thin:dbhost:1528:ORCL","",""); ( if u r using oracle drivers ) con=DriverManager.getConnection("jdbc:odbc:","",""); ( if u r using an odbc bridge ) > so tell me how to connect and store the image in > db. > vinu hope this helps - chetu From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 08:06:46 2000 Received: from proxy.netbase.stpn.soft.net (unknown [12.10.193.131]) by www.aunet.org (Postfix) with ESMTP id 452A338060 for ; Tue, 18 Jul 2000 02:48:21 -0700 (PDT) Received: by proxy.netbase.stpn.soft.net with Internet Mail Service (5.5.2650.21) id ; Tue, 18 Jul 2000 15:21:09 +0530 Message-ID: <616EA43AB295D311B06E00508B44A0200D9F88@proxy.netbase.stpn.soft.net> From: Paramdeep Singh To: "'linux-india-programmers@lists.linux-india.org'" Subject: Web Administration Date: Tue, 18 Jul 2000 15:21:08 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200007/122 Hi Friends, I am back again with a query. There is A concept of Information Channels and Personalization. In which I have various information streams on my Web Site to which my visitors acn subscribe and ask for information.And the sites can have Have the look and feels costomised to visitors interests and likings(Personalizations). My Question is can we do this using Apache Web server and How? Thanks and Regards Paramdeep Singh -----Original Message----- From: deepak yadav [mailto:deepak2000@softhome.net] Sent: Tuesday, July 18, 2000 2:55 PM To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: [LIP] pics in MySQL hi i found out how to do that in mysql. use following sql statement for mysql , it may work for u UPDATE table_name SET blob_column=LOAD_FILE("/tmp/picture") WHERE id=1; __________ deepak At 7/18/00 1:20:00 PM, you wrote: >Do you have any examples on how to store an image in >binary form.The GUI i am using is Java(jdbc connection) >so tell me how to connect and store the image in >db. >vinu >On Tue, 18 Jul 2000 11:46:27 +0530 > Paramdeep Singh wrote: >> *This message was transferred with a trial version of >> CommuniGate(tm) Pro* >> Yes >> you do have in Oracle. >> >> and exact way of storing depends on the version you are >> using of oracle. >> >> The oldest available oracle version shall support >> LongRaw(upto 2G) binary >> dat. >> and 8 ,8i have sepcial facilities for storing multimedia >> content >> >> Param >> >> >> >> -----Original Message----- >> From: Linux List [mailto:linux-prog@sce.ac.in] >> Sent: Tuesday, July 18, 2000 11:45 AM >> To: linux-india-programmers@lists.linux-india.org >> Subject: Re: [LIP] pics in MySQL >> >> >> hi >> Wanted to ask the same.U have some think like that in >> Oracle.Do you have somethink like that for PostGRESQl. >> I want to store the images in binary form in the >> database. >> vinu >> >> On Sat, 17 Jun 2000 10:32:27 +0530 >> "Muthu" wrote: >> > *This message was transferred with a trial version of >> > CommuniGate(tm) Pro* >> > Hai deepak, >> > >> > Use Blob data type to store images.One way of >> > updating the image in >> > datafield is , Open the image file and read chunks of >> > bytes (say 1024) and >> > update the blob datafield. >> > >> > i hope the above information will help you >> > >> > with regards >> > Muthukumar >> > >> > > hi >> > > i want to store pictures in MySQL database. what kind >> > of data type is to >> > be used. and how to go about storing it . >> > > please help . a small code would be very helpful. >> > > >> > > reply soon >> > > bye >> > > >> > > __ deepak __ >> > > >> > > have a great day >> > > ICQ 30662394 >> > > >> > > -- Try not to let implementation details sneak into >> > design documents. >> > > >> > > >> > > ----------------------------------------------------------------------- >> > > The LIP mailing list archives are available at: >> > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers >> > >> > >> > ----------------------------------------------------------------------- >> > For more information on the LIP mailing list see: >> > http://lists.linux-india.org/lists/LIP >> >> >> ----------------------------------------------------------------------- >> For information on this and other Linux India mailing >> lists check out >> http://lists.linux-india.org/ >> >> ----------------------------------------------------------------------- >> For more information on the LIP mailing list see: >> http://lists.linux-india.org/lists/LIP > > >----------------------------------------------------------------------- >The LIP mailing list archives are available at: >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- No program done by an undergrad will work after she graduates. ----------------------------------------------------------------------- The LIP mailing list archives are available at: http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 10:13:58 2000 Received: from netscape.com (h-205-217-237-47.netscape.com [205.217.237.47]) by www.aunet.org (Postfix) with ESMTP id 34AC63805F for ; Tue, 18 Jul 2000 10:13:49 -0700 (PDT) Received: from judge.mcom.com (judge.mcom.com [205.217.237.53]) by netscape.com (8.10.0/8.10.0) with ESMTP id e6IH8qU28463 for ; Tue, 18 Jul 2000 10:08:52 -0700 (PDT) Received: from netscape.com ([207.1.145.44]) by judge.mcom.com (Netscape Messaging Server 4.15) with ESMTP id FXWL6Z00.L7M for ; Tue, 18 Jul 2000 10:13:47 -0700 Message-ID: <3974904A.413B2654@netscape.com> Date: Tue, 18 Jul 2000 10:13:46 -0700 From: Sudhakar Chandra Organization: I didn't do it, nobody saw me do it, no one can prove a thing X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en, fr MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Web Administration Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/123 Paramdeep, 1. Plese have a descriptive subject line to your postings. This post of yours, for example, is not about Web Administration. It is about personalization. 2. Please do not quote unrelated email when posting. Paramdeep Singh proclaimed: > There is A concept of Information Channels and Personalization. > In which I have various information streams on my Web Site to which my > visitors acn subscribe and ask for information.And the sites can have Have > the look and feels costomised to visitors interests and > likings(Personalizations). > > My Question is can we do this using Apache Web server and How? You can certainly do it. But such personalization is not part of the core Apache web server. And it should not be. This is one reason why you don't see the same personalization scheme being used in two services. You can build such a scheme from ground up after reading up on things like PHP and mod-perl. Or you can grab the perl code that creates a site like Slashdot (http://slashdot.org/) and rip out pieces that you don't need. I don't like reading other people's code and understanding it. So I prefer starting from scratch. The basic idea should be that the user's ID should be stored in a cookie. Any request that the user sends for a page from your server will also contain the user's id in the cookie. Your server-side script should look for the cookie, read it, and if present deliver a page that is customized to the user. Thaths -- Lisa: I'm proud of you dad! Buying an electric car will help clean the air and to protect the Earth's supply of.... you're faking this to get the gift, aren't you? Homer: But I like the nice things you said about me. Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 18:25:46 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id A7E0D3807F for ; Tue, 18 Jul 2000 18:25:35 -0700 (PDT) Received: from eth.net ([10.2.1.41]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Wed, 19 Jul 2000 06:51:41 +0530 Received: from cranks ([202.9.170.122]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Wed, 19 Jul 2000 06:53:31 +0530 Message-ID: <000001bff121$9c31fe00$7aaa09ca@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: Subject: Re: pics in MySQL Date: Tue, 18 Jul 2000 20:26:22 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200007/124 ----- Original Message ----- From: Muthu To: Sent: Tuesday, July 18, 2000 6:57 PM Subject: Re: [LIP] pics in MySQL > > hai vinu > One way of updating the image in datafield is , Open the image file in > binary mode and read chunks of bytes (say 1024) and update the blob > datafield.i havnt worked in java, but vb has some example (see msdn -vb > help).There are some methods also available.[Long back i have done it , but > i dont remember now.i am sorry] i hope the above information will help you > check out the java.sql package..... i think there is a method executeStatement(String ) which takes in a sql statement and executes it..... if u know the sql statement to update an image in the database, u can easily do it from within a java class by using the above method. sorry for the vague reply... - chetu From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 23:17:38 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 9E3A138064 for ; Tue, 18 Jul 2000 23:13:14 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2240372 for ; Wed, 19 Jul 2000 11:48:57 +0530 From: "Linux List " Subject: Re: Urgent: jdbc connection to PostGRESQL To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Wed, 19 Jul 2000 11:48:57 +0530 Message-ID: In-Reply-To: <4.3.0.20000712170032.00b47d50@imap.myrealbox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200007/125 hi Found the drivers at http://www.retep.org.uk/postgres/ some one may find it useful.Didn't try it yet. vinu On Wed, 12 Jul 2000 17:06:09 +0530 jayant kumar wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > The driver for PostGRESQL is there in PCQuest. I > have seen it but > have not used it. It would be better if you search for > "postgresql.jar" > file on google.com. Put it somewhere in some directory > and add it to the > CLASSPATH. It should work. It works on my PC!! > > -------Jayant > > At 11:31 AM 7/11/00 +0530, you wrote: > >hi all, > > I tried the jdbc connection to the PostGRESQL > server. > >The HOWTO says that u will have a file called > Postgresql.jar > >,which you have to export to ur classpath. > >I didn't find such a file anywhere in my installation. > >When i run the program i get an exception that the > >driver is not found but the docs says u do have a driver > >shipped with the PostGresql package. > >I installed all the postgresql > packages(jdbc,perl,phython,tcl,etc).Also > >i found the > >perl example working very well. > >Any pointers,help. > >Thanx in advance > >vinu > > > > > >----------------------------------------------------------------------- > >LIP is all for free speech. But it was created for a > purpose - to help > >people discuss technical programming related issues > about Linux. If > >your messages are counterproductive to this purpose, > your privileges to > >submit messages can and will be revoked. > > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 23:17:47 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 8F9EC38064 for ; Tue, 18 Jul 2000 23:17:27 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2240377 for ; Wed, 19 Jul 2000 11:53:11 +0530 From: "Linux List " Subject: locking of files To: X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Wed, 19 Jul 2000 11:53:11 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200007/126 hi all, Tried locking of files in linux. I used the function lockf(fd,F_LOCK,0L); I am not able to lock.Has someone tried it out.Is there a error in the program or some compatibility(of the lockf system call) problems with linux. vinu From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 23:39:36 2000 Received: from web2105.mail.yahoo.com (web2105.mail.yahoo.com [128.11.68.249]) by www.aunet.org (Postfix) with SMTP id BEF8C38081 for ; Tue, 18 Jul 2000 23:39:30 -0700 (PDT) Received: (qmail 17544 invoked by uid 60001); 19 Jul 2000 06:39:30 -0000 Message-ID: <20000719063930.17543.qmail@web2105.mail.yahoo.com> Received: from [210.214.240.97] by web2105.mail.yahoo.com; Tue, 18 Jul 2000 23:39:30 PDT Date: Tue, 18 Jul 2000 23:39:30 -0700 (PDT) From: Rajeev Joseph Reply-To: rajeevjsv@yahoo.com Subject: Re: Urgent: jdbc connection to PostGRESQL To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/127 The jdbc drivers are available in the /usr/lib/pgsql directory as jdbc1.2-6.5.jar . rename it as postgresql.jar and export to the classpath. (Vinu) Its more useful to dl the source.tgz files and do a javadoc on the org.postgresql.* package and learn the API since the documentation with the pasgkage is sparse and really unreadble. mrmojorisin --- Linux List wrote: > hi > Found the drivers at > http://www.retep.org.uk/postgres/ > some one may find it useful.Didn't try it yet. > vinu > > On Wed, 12 Jul 2000 17:06:09 +0530 > jayant kumar wrote: > > *This message was transferred with a trial version > of > > CommuniGate(tm) Pro* > > The driver for PostGRESQL is there in > PCQuest. I > > have seen it but > > have not used it. It would be better if you search > for > > "postgresql.jar" > > file on google.com. Put it somewhere in some > directory > > and add it to the > > CLASSPATH. It should work. It works on my PC!! > > > > -------Jayant > > > > At 11:31 AM 7/11/00 +0530, you wrote: > > >hi all, > > > I tried the jdbc connection to the PostGRESQL > > server. > > >The HOWTO says that u will have a file called > > Postgresql.jar > > >,which you have to export to ur classpath. > > >I didn't find such a file anywhere in my > installation. > > >When i run the program i get an exception that > the > > >driver is not found but the docs says u do have a > driver > > >shipped with the PostGresql package. > > >I installed all the postgresql > > packages(jdbc,perl,phython,tcl,etc).Also > > >i found the > > >perl example working very well. > > >Any pointers,help. > > >Thanx in advance > > >vinu > > > > > > > > > >----------------------------------------------------------------------- > > >LIP is all for free speech. But it was created > for a > > purpose - to help > > >people discuss technical programming related > issues > > about Linux. If > > >your messages are counterproductive to this > purpose, > > your privileges to > > >submit messages can and will be revoked. > > > > > > > ----------------------------------------------------------------------- > > The LIP mailing list archives are available at: > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 23:48:34 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 6DCFC381A3 for ; Tue, 18 Jul 2000 23:48:14 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2240404 for ; Wed, 19 Jul 2000 12:23:53 +0530 From: "Linux List " Subject: Re: Urgent: jdbc connection to PostGRESQL To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Wed, 19 Jul 2000 12:23:53 +0530 Message-ID: In-Reply-To: <20000719063930.17543.qmail@web2105.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200007/128 does classPath mean classpath or path. The postgresql docs say something like export the postgresql.jar file to your CLASSPATH with export. i think they refer to the PATH. Please tell me how to export xxx.jar or any file for that matter to the classpath. On Tue, 18 Jul 2000 23:39:30 -0700 (PDT) Rajeev Joseph wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > The jdbc drivers are available in the /usr/lib/pgsql > directory as jdbc1.2-6.5.jar . rename it as > postgresql.jar and export to the classpath. (Vinu) > > Its more useful to dl the source.tgz files and do a > javadoc on the org.postgresql.* package and learn the > API since the documentation with the pasgkage is > sparse and really unreadble. > > mrmojorisin > --- Linux List wrote: > > hi > > Found the drivers at > > http://www.retep.org.uk/postgres/ > > some one may find it useful.Didn't try it yet. > > vinu > > > > On Wed, 12 Jul 2000 17:06:09 +0530 > > jayant kumar wrote: > > > *This message was transferred with a trial version > > of > > > CommuniGate(tm) Pro* > > > The driver for PostGRESQL is there in > > PCQuest. I > > > have seen it but > > > have not used it. It would be better if you search > > for > > > "postgresql.jar" > > > file on google.com. Put it somewhere in some > > directory > > > and add it to the > > > CLASSPATH. It should work. It works on my PC!! > > > > > > -------Jayant > > > > > > At 11:31 AM 7/11/00 +0530, you wrote: > > > >hi all, > > > > I tried the jdbc connection to the PostGRESQL > > > server. > > > >The HOWTO says that u will have a file called > > > Postgresql.jar > > > >,which you have to export to ur classpath. > > > >I didn't find such a file anywhere in my > > installation. > > > >When i run the program i get an exception that > > the > > > >driver is not found but the docs says u do have a > > driver > > > >shipped with the PostGresql package. > > > >I installed all the postgresql > > > packages(jdbc,perl,phython,tcl,etc).Also > > > >i found the > > > >perl example working very well. > > > >Any pointers,help. > > > >Thanx in advance > > > >vinu > > > > > > > > > > > > > > >----------------------------------------------------------------------- > > > >LIP is all for free speech. But it was created > > for a > > > purpose - to help > > > >people discuss technical programming related > > issues > > > about Linux. If > > > >your messages are counterproductive to this > > purpose, > > > your privileges to > > > >submit messages can and will be revoked. > > > > > > > > > > > > ----------------------------------------------------------------------- > > > The LIP mailing list archives are available at: > > > > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > > ----------------------------------------------------------------------- > > The LIP mailing list archives are available at: > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > __________________________________________________ > Do You Yahoo!? > Get Yahoo! Mail – Free email you can access from > anywhere! > http://mail.yahoo.com/ > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a > purpose - to help > people discuss technical programming related issues about > Linux. If > your messages are counterproductive to this purpose, your > privileges to > submit messages can and will be revoked. From linux-india-programmers-owner@lists.linux-india.org Tue Jul 18 23:52:30 2000 Received: from maze.mcdecom.net (maze.mcdecom.net [202.170.128.34]) by www.aunet.org (Postfix) with ESMTP id B163B3822F for ; Tue, 18 Jul 2000 23:51:55 -0700 (PDT) Received: from mcdmhp.mcdecom.net by maze.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Wed, 19 Jul 2000 12:20:05 -0500 Received: from [172.16.2.58] by mcdmhp.mcdecom.net with ESMTP for linux-india-programmers@lists.linux-india.org; Wed, 19 Jul 2000 12:15:41 +0530 Received: from io26 [172.25.24.22] by ltitlblr.com [172.25.24.190] with SMTP (MDaemon.v2.83.R) for ; Wed, 19 Jul 2000 12:16:28 +0530 Message-Id: <00eb01bff14d$80290150$161819ac@io26> From: "Mahesh" To: Subject: Re: locking of files Date: Wed, 19 Jul 2000 12:19:34 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MDaemon-Deliver-To: linux-india-programmers@lists.linux-india.org X-Return-Path: maheshv@ltitlblr.com X-Archive-Number: 200007/129 Hi Vinu, It dows work in Linux and i have tried some sample programs too. Did you lseek to the right position before locking the record / file ? Also u can try flock where u can be certain about the type of lock u can obtain ( Exclusive lock ) #include #include void main() { int fd; int a; fd = open("abcd",1); lseek(fd,0,0); a = lockf(fd,F_TEST,0); a = lockf(fd,F_LOCK,0L); perror("lockf"); write(fd,"mahesh",6); sleep(2); a = lockf(fd,F_ULOCK,0); close(fd); } run this program with ./a.out & ./a.out & ./a.out & .... and u will see that the first process gets the lock and the other process gets permission denied .... regards - Mahesh mahesh@www.com ~ "lock.c" 22L, 278C ----- Original Message ----- From: Linux List To: Sent: Wednesday, July 19, 2000 11:53 AM Subject: [LIP] locking of files > hi all, > Tried locking of files in linux. > I used the function lockf(fd,F_LOCK,0L); > I am not able to lock.Has someone tried it out.Is > there a error in the program or some compatibility(of > the lockf system call) problems with linux. > vinu > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > From linux-india-programmers-owner@lists.linux-india.org Wed Jul 19 01:04:45 2000 Received: from shardagate.mahindrabt.com (unknown [206.102.1.162]) by www.aunet.org (Postfix) with ESMTP id BFAE9380BA for ; Wed, 19 Jul 2000 01:04:28 -0700 (PDT) Received: (from uucp@localhost) by shardagate.mahindrabt.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id NAA16310 for ; Wed, 19 Jul 2000 13:34:17 +0530 Received: from UNKNOWN(10.4.0.15), claiming to be "intranet.pune.mahindrabt.com" via SMTP by shardagate, id smtpdZrrBZD; Wed Jul 19 13:34:09 2000 Received: from mahindrabt.com ([10.5.2.167]) by intranet.pune.mahindrabt.com (8.9.3/8.9.3) with ESMTP id NAA32078 for ; Wed, 19 Jul 2000 13:31:48 +0530 Message-ID: <39756157.EBD97679@mahindrabt.com> Date: Wed, 19 Jul 2000 13:35:43 +0530 From: Rajeev Jha X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: Urgent: jdbc connection to PostGRESQL Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/130 hi list classpath means classpath and is separate from path. to include .jar files in classpath do this in .bash_profile CLASSPATH=/home/java/or_whatever_path/abc.jar PATH=path_to_my_jdk/bin export PATH CLASSPATH for .jar and .zip u will have to include filename in the classpath HTH Linux List wrote: > > does classPath mean classpath or path. > The postgresql docs say something like export the > postgresql.jar file to your CLASSPATH with export. > i think they refer to the PATH. > Please tell me how to export xxx.jar or any file for that > matter to the classpath. > -- Rajeev Jha ---------------------------------------------------------------------- From linux-india-programmers-owner@lists.linux-india.org Wed Jul 19 02:24:45 2000 Received: from web2104.mail.yahoo.com (web2104.mail.yahoo.com [128.11.68.248]) by www.aunet.org (Postfix) with SMTP id 848B33808B for ; Wed, 19 Jul 2000 02:24:32 -0700 (PDT) Received: (qmail 21755 invoked by uid 60001); 19 Jul 2000 09:24:31 -0000 Message-ID: <20000719092431.21754.qmail@web2104.mail.yahoo.com> Received: from [210.214.240.37] by web2104.mail.yahoo.com; Wed, 19 Jul 2000 02:24:31 PDT Date: Wed, 19 Jul 2000 02:24:31 -0700 (PDT) From: Rajeev Joseph Reply-To: rajeevjsv@yahoo.com Subject: Re: Urgent: jdbc connection to PostGRESQL To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/131 well .. the best thing to do is this ... edit ur .bash_profile file ... in ur home directory. add a line somewhere near ur PATH statement like this .. CLASSPATH = "/usr/lib/pgsql:./" then go to the export line somewhere near the middle of bottom of the same line .. and add CLASSPATH to it ... something like this ... export PATH USERNAME CLASSPATH after this write and save it. reload the profile file into ur shell (u cud run bash again ... or exit and relogin) to see if it has worked ... type ${CLASSPATH} at the shell prompt and hit enter ... ur classpath will come on the screen ... thats it ... of course .. this is assuming that /usr/lib/pgsql is ur pgsql library directory ... sometimes it cud be even /usr/local/lib/pgsql or even /usr/local/pgsql/lib .. depending on ur installation. edit the classpath statement accordgly. mrmojorisin --- Linux List wrote: > does classPath mean classpath or path. > The postgresql docs say something like export the > postgresql.jar file to your CLASSPATH with export. > i think they refer to the PATH. > Please tell me how to export xxx.jar or any file for > that > matter to the classpath. > > On Tue, 18 Jul 2000 23:39:30 -0700 (PDT) > Rajeev Joseph wrote: > > *This message was transferred with a trial version > of > > CommuniGate(tm) Pro* > > The jdbc drivers are available in the > /usr/lib/pgsql > > directory as jdbc1.2-6.5.jar . rename it as > > postgresql.jar and export to the classpath. (Vinu) > > > > Its more useful to dl the source.tgz files and do > a > > javadoc on the org.postgresql.* package and learn > the > > API since the documentation with the pasgkage is > > sparse and really unreadble. > > > > mrmojorisin > > --- Linux List wrote: > > > hi > > > Found the drivers at > > > http://www.retep.org.uk/postgres/ > > > some one may find it useful.Didn't try it yet. > > > vinu > > > > > > On Wed, 12 Jul 2000 17:06:09 +0530 > > > jayant kumar wrote: > > > > *This message was transferred with a trial > version > > > of > > > > CommuniGate(tm) Pro* > > > > The driver for PostGRESQL is there in > > > PCQuest. I > > > > have seen it but > > > > have not used it. It would be better if you > search > > > for > > > > "postgresql.jar" > > > > file on google.com. Put it somewhere in some > > > directory > > > > and add it to the > > > > CLASSPATH. It should work. It works on my PC!! > > > > > > > > -------Jayant > > > > > > > > At 11:31 AM 7/11/00 +0530, you wrote: > > > > >hi all, > > > > > I tried the jdbc connection to the > PostGRESQL > > > > server. > > > > >The HOWTO says that u will have a file called > > > > Postgresql.jar > > > > >,which you have to export to ur classpath. > > > > >I didn't find such a file anywhere in my > > > installation. > > > > >When i run the program i get an exception > that > > > the > > > > >driver is not found but the docs says u do > have a > > > driver > > > > >shipped with the PostGresql package. > > > > >I installed all the postgresql > > > > packages(jdbc,perl,phython,tcl,etc).Also > > > > >i found the > > > > >perl example working very well. > > > > >Any pointers,help. > > > > >Thanx in advance > > > > >vinu > > > > > > > > > > > > > > > > > > > > >----------------------------------------------------------------------- > > > > >LIP is all for free speech. But it was > created > > > for a > > > > purpose - to help > > > > >people discuss technical programming related > > > issues > > > > about Linux. If > > > > >your messages are counterproductive to this > > > purpose, > > > > your privileges to > > > > >submit messages can and will be revoked. > > > > > > > > > > > > > > > > > > ----------------------------------------------------------------------- > > > > The LIP mailing list archives are available > at: > > > > > > > > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > > > > > > > ----------------------------------------------------------------------- > > > The LIP mailing list archives are available at: > > > > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > __________________________________________________ > > Do You Yahoo!? > > Get Yahoo! Mail – Free email you can access from > > anywhere! > > http://mail.yahoo.com/ > > > > > ----------------------------------------------------------------------- > > LIP is all for free speech. But it was created > for a > > purpose - to help > > people discuss technical programming related > issues about > > Linux. If > > your messages are counterproductive to this > purpose, your > > privileges to > > submit messages can and will be revoked. > > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Wed Jul 19 05:12:43 2000 Received: from exchange.satyam.net.in (unknown [202.144.12.32]) by www.aunet.org (Postfix) with ESMTP id A13F138050 for ; Wed, 19 Jul 2000 05:12:10 -0700 (PDT) Received: from hqbng01ex01.mindtree.com ([202.144.95.250]) by exchange.satyam.net.in (8.9.3/8.9.3) with ESMTP id RAA14795 for ; Wed, 19 Jul 2000 17:40:21 +0530 Received: from mindtree.com (puneetg.mindtree.com [172.20.21.86]) by hqbng01ex01.mindtree.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 3519C4XS; Wed, 19 Jul 2000 17:41:46 +0530 Message-ID: <39759A0F.F31DA5A3@mindtree.com> Date: Wed, 19 Jul 2000 17:37:43 +0530 From: Puneet Gupta X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: XFIG help Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/132 hi i am preparing some fogures in xfig and exporting them to postscript format using fig2dev. the export inside xfig gives an error saying --g illegal option. i have tried fig2dev on commandline and it generates version 2 EPS file which my printer is not accepting. Similar xfig is working on a neighbourhood machine. what might be the problem? puneet -- A formal parsing algorithm should not always be used. -- D. Gries From linux-india-programmers-owner@lists.linux-india.org Wed Jul 19 06:28:50 2000 Received: from smtp.mail.yahoo.com (smtp.mail.yahoo.com [128.11.68.32]) by www.aunet.org (Postfix) with SMTP id 78FF038058 for ; Wed, 19 Jul 2000 06:28:41 -0700 (PDT) Received: from unknown (HELO yahoo.com) (202.54.100.36) by smtp.mail.yahoo.com with SMTP; 19 Jul 2000 13:27:44 -0000 X-Apparently-From: Message-ID: <3975ABB4.DDC4F202@yahoo.com> Date: Wed, 19 Jul 2000 18:53:01 +0530 From: Ashish kumar X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: DNS Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/133 This is not really a programming probelm, but its very irritating. Whenever I write ping www.hotmail.com I get an error hostname lookup failure. And when I give IP address it works. Any help Thanx Ashish __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Wed Jul 19 06:48:03 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 20B6738058 for ; Wed, 19 Jul 2000 06:47:45 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id TAA00927 for ; Wed, 19 Jul 2000 19:13:38 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id TAA04595 for ; Wed, 19 Jul 2000 19:16:11 +0500 (GMT) Received: from soflt.alc.wipinfo.soft.net ([192.168.220.205]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA2FCF; Wed, 19 Jul 2000 19:17:21 +0530 Date: Wed, 19 Jul 2000 19:22:36 +0530 (IST) From: "chetan kumar s" X-Sender: chetansk@soflt.alc.wipinfo.soft.net Reply-To: chetan.kumar@wipro.com To: Ashish kumar Cc: linux-india-programmers@lists.linux-india.org Subject: Re: DNS In-Reply-To: <3975ABB4.DDC4F202@yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/134 Check what is ur /etc/resolv.conf and /etc/host.conf Also man nslookup may give you good input thanks Chetan S ___________ The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw On Wed, 19 Jul 2000, Ashish kumar wrote: > This is not really a programming probelm, but its very irritating. > > Whenever I write ping www.hotmail.com I get an error hostname lookup failure. > And when I give IP address it works. > Any help > > Thanx > Ashish > > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP > From linux-india-programmers-owner@lists.linux-india.org Wed Jul 19 19:15:11 2000 Received: from myrealbox.com (unknown [192.108.102.201]) by www.aunet.org (Postfix) with ESMTP id 6A2B73807C for ; Wed, 19 Jul 2000 19:15:06 -0700 (PDT) Received: from jayant.myrealbox.com [203.88.133.73] by myrealbox.com with Novonyx SMTP Server $Revision: 2.46 $; Wed, 19 Jul 2000 20:14:58 -0600 (MDT) Message-Id: <4.3.0.20000719193759.00b26840@imap.myrealbox.com> X-Sender: jk2k@imap.myrealbox.com X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Wed, 19 Jul 2000 19:43:10 +0530 To: linux-india-programmers@lists.linux-india.org From: jayant kumar Subject: Re: Can u help? In-Reply-To: <20000716064337.27246.qmail@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200007/135 At 06:43 AM 7/16/00 +0000, you wrote: >hii, >i am new to this list. i recently installed linux 6.2 from PCquest(june) >CD. it installed properly as KDE workstation. but i am having problems >with my display card settings. I have a P1-166,16MB ram,8.4 HDD,a >SiS(6215) video card with 1MB video ram. U must be knowing that RH6.2 does not have support for SiS(6215) card. Maybe that the latest version of XFree86 has support for that card. I have not seen that. A simple solution to this problem is given in PCQuest March 2k on pg. no. 95. It explains a procedure whereby u could configure any video card with VESA2.0 support to work with linux. Take a look at it. > now when i boot into KDE desktop, all the icons,text,windows appear very > big. i am able to see only about >40% of my desktop at a time. linux reported that it is using a 340x420 >video mode. how do i get a normal desktop? how do i set my resolution >to atleast 640x480 mode. is this b'coz i have only 1MB video memory? >Please help. i want help desperately. > >regards, >shailesh. I think this should solve ur problem. -----Jayant >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > >----------------------------------------------------------------------- >For more information on the LIP mailing list see: >http://lists.linux-india.org/lists/LIP --------Jayant Take a look at my website over here ..... From linux-india-programmers-owner@lists.linux-india.org Wed Jul 19 22:41:13 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id C4CF93805B for ; Wed, 19 Jul 2000 22:41:01 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2242088 for ; Thu, 20 Jul 2000 11:16:54 +0530 From: "Linux List " Subject: Re: pics in MySQL To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Thu, 20 Jul 2000 11:16:54 +0530 Message-ID: In-Reply-To: <200007180900.OAA01976@linux.wiplash.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200007/136 hi I tried this thing but it did not work. It says syntax error at line. if i remove the LOAD_FILE thing it works but stores the string. vinu On Tue, 18 Jul 2000 14:24:55 +0500 deepak yadav wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > hi > i found out how to do that in mysql. use following sql > statement for mysql , it may work for u > > UPDATE table_name SET blob_column=LOAD_FILE("/tmp/picture") > WHERE id=1; > > __________ > deepak > > At 7/18/00 1:20:00 PM, you wrote: > >Do you have any examples on how to store an image in > >binary form.The GUI i am using is Java(jdbc connection) > >so tell me how to connect and store the image in > >db. > >vinu > >On Tue, 18 Jul 2000 11:46:27 +0530 > > Paramdeep Singh > wrote: > >> *This message was transferred with a trial version of > >> CommuniGate(tm) Pro* > >> Yes > >> you do have in Oracle. > >> > >> and exact way of storing depends on the version you > are > >> using of oracle. > >> > >> The oldest available oracle version shall support > >> LongRaw(upto 2G) binary > >> dat. > >> and 8 ,8i have sepcial facilities for storing > multimedia > >> content > >> > >> Param > >> > >> > >> > >> -----Original Message----- > >> From: Linux List [mailto:linux-prog@sce.ac.in] > >> Sent: Tuesday, July 18, 2000 11:45 AM > >> To: linux-india-programmers@lists.linux-india.org > >> Subject: Re: [LIP] pics in MySQL > >> > >> > >> hi > >> Wanted to ask the same.U have some think like that > in > >> Oracle.Do you have somethink like that for PostGRESQl. > >> I want to store the images in binary form in the > >> database. > >> vinu > >> > >> On Sat, 17 Jun 2000 10:32:27 +0530 > >> "Muthu" wrote: > >> > *This message was transferred with a trial version > of > >> > CommuniGate(tm) Pro* > >> > Hai deepak, > >> > > >> > Use Blob data type to store images.One way of > >> > updating the image in > >> > datafield is , Open the image file and read chunks > of > >> > bytes (say 1024) and > >> > update the blob datafield. > >> > > >> > i hope the above information will help you > >> > > >> > with regards > >> > Muthukumar > >> > > >> > > hi > >> > > i want to store pictures in MySQL database. what > kind > >> > of data type is to > >> > be used. and how to go about storing it . > >> > > please help . a small code would be very helpful. > >> > > > >> > > reply soon > >> > > bye > >> > > > >> > > __ deepak __ > >> > > > >> > > have a great day > >> > > ICQ 30662394 > >> > > > >> > > -- Try not to let implementation details sneak > into > >> > design documents. > >> > > > >> > > > >> > > ----------------------------------------------------------------------- > >> > > The LIP mailing list archives are available at: > >> > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > >> > > >> > > >> > ----------------------------------------------------------------------- > >> > For more information on the LIP mailing list see: > >> > http://lists.linux-india.org/lists/LIP > >> > >> > >> ----------------------------------------------------------------------- > >> For information on this and other Linux India mailing > >> lists check out > >> http://lists.linux-india.org/ > >> > >> ----------------------------------------------------------------------- > >> For more information on the LIP mailing list see: > >> http://lists.linux-india.org/lists/LIP > > > > > >----------------------------------------------------------------------- > >The LIP mailing list archives are available at: > >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > ----------------------------- > reply soon > bye > > __ deepak __ > > have a great day > ICQ 30662394 > > -- No program done by an undergrad will work after she > graduates. > > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Wed Jul 19 23:23:28 2000 Received: from blr (blr.vsnl.net.in [202.54.12.6]) by www.aunet.org (Postfix) with ESMTP id EA71038160 for ; Wed, 19 Jul 2000 23:23:22 -0700 (PDT) Received: from multimediastudio.com (PPP-182-76.bng.vsnl.net.in [203.197.182.76]) by blr (8.9.3/8.9.3) with ESMTP id LAA20084 for ; Thu, 20 Jul 2000 11:49:46 +0530 (IST) Message-ID: <39769BE0.D4148C5@multimediastudio.com> Date: Thu, 20 Jul 2000 11:57:44 +0530 From: Krishna Srinivasan Organization: Multimeddia Studio Ltd. X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: glade ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/137 Hi Just used the great development utility called Glade. Came with RedHat 6.2 Can create great front ends in minutes. But don't know to write actions in the backend. Can anyone help. Would prefer Perl to do the actions. Their web page is useless. Thanks Krishna From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 02:17:25 2000 Received: from mailnew5.rediffmail.com (unknown [202.54.124.179]) by www.aunet.org (Postfix) with SMTP id 4D68538090 for ; Thu, 20 Jul 2000 02:17:18 -0700 (PDT) Received: (qmail 14619 invoked by uid 510); 20 Jul 2000 09:15:21 -0000 Date: 20 Jul 2000 09:15:21 -0000 Message-ID: <20000720091521.14618.qmail@mailnew5.rediffmail.com> MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: glade ? From: "OxCAFE BABE" Content-ID: Content-type: text/plain Content-Description: Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/138 Use GTK with Glade Get the tutorial from : http://www.gtk.org -0xCAFE BABE Hi Just used the great development utility called Glade. Came with RedHat 6.2 Can create great front ends in minutes. But don't know to write actions in the backend. Can anyone help. Would prefer Perl to do the actions. Glade is open source ... please go ahead! :) PyGTK (GTK bindings with Python) will be another nice one _________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol from http://www.rediff.com/messenger/messenger.htm Participate in crazy Re.1 auctions at http://www.rediff.com/auctions From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 06:27:42 2000 Received: from www2.rediffmail.com (www2.rediffmail.com [202.54.124.47]) by www.aunet.org (Postfix) with SMTP id C023F38065 for ; Thu, 20 Jul 2000 06:27:38 -0700 (PDT) Received: (qmail 6973 invoked by uid 510); 20 Jul 2000 13:25:36 -0000 Date: 20 Jul 2000 13:25:36 -0000 Message-ID: <20000720132536.6972.qmail@www2.rediffmail.com> MIME-Version: 1.0 To: linux-india-programmers@LISTS.linux-india.org Subject: JAVA vs. C in speed From: "OxCAFE BABE" Content-ID: Content-type: text/plain Content-Description: Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/139 Hi all! I'm doing some number crunching using JAVA in an application. I'm using a large number of Arrays , and thats where I thought my JAVA code will be spending so much of its time (as JAVA checks every Array access for ArrayIndexOutOfBoundsException). So, in order to improve the speed of my program I coded the routines as JNI native stubs, and timed it. To my surprize, the JAVA code is as fast as the C code as far as number crunching and Arays are involved! Calling the native methods takes an additional 1/2 ms, and so eventually the pure JAVA code seems to be running faster, atleast with my experiments! Have others also experienced such issues? Does anyone know of good relaible comparisons between JAVA and C wrt speed ? If yes, 0xCAFEBABE would be glad to know about them Thanks, 0XcafeBAbe _________________________________________________ Chat with your friends as soon as they come online. Get Rediff Bol from http://www.rediff.com/messenger/messenger.htm Participate in crazy Re.1 auctions at http://www.rediff.com/auctions From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 08:02:20 2000 Received: from bom8.vsnl.net.in (bom8.vsnl.net.in [202.54.4.125]) by www.aunet.org (Postfix) with ESMTP id F280A380CE for ; Thu, 20 Jul 2000 06:58:24 -0700 (PDT) Received: from default (PPP46-191.lvsb.vsnl.net.in [202.54.46.191]) by bom8.vsnl.net.in (8.9.2/8.9.2) with SMTP id TAA18036 for ; Thu, 20 Jul 2000 19:24:15 +0500 (GMT+0500) Message-ID: <001301bff251$fad99720$bf2e36ca@default> From: "Mahesh K." To: Subject: Re: pics in MySQL Date: Thu, 20 Jul 2000 19:21:46 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-Archive-Number: 200007/140 make sure the file did not have any double-quotes etc. use addslashes() if u are using perl or PHP. else, do something to add a backslash before each double-quote(") and single-quote(') or any other special SQL character. ----- Original Message ----- From: Linux List To: Sent: Thursday, July 20, 2000 11:16 AM Subject: Re: [LIP] pics in MySQL > hi > I tried this thing but it did not work. > It says syntax error at line. > if i remove the LOAD_FILE thing it works but stores the > string. > vinu > On Tue, 18 Jul 2000 14:24:55 +0500 > deepak yadav wrote: > > *This message was transferred with a trial version of > > CommuniGate(tm) Pro* > > hi > > i found out how to do that in mysql. use following sql > > statement for mysql , it may work for u > > > > UPDATE table_name SET blob_column=LOAD_FILE("/tmp/picture") > > WHERE id=1; > > > > __________ > > deepak > > > > At 7/18/00 1:20:00 PM, you wrote: > > >Do you have any examples on how to store an image in > > >binary form.The GUI i am using is Java(jdbc connection) > > >so tell me how to connect and store the image in > > >db. > > >vinu > > >On Tue, 18 Jul 2000 11:46:27 +0530 > > > Paramdeep Singh > > wrote: > > >> *This message was transferred with a trial version of > > >> CommuniGate(tm) Pro* > > >> Yes > > >> you do have in Oracle. > > >> > > >> and exact way of storing depends on the version you > > are > > >> using of oracle. > > >> > > >> The oldest available oracle version shall support > > >> LongRaw(upto 2G) binary > > >> dat. > > >> and 8 ,8i have sepcial facilities for storing > > multimedia > > >> content > > >> > > >> Param > > >> > > >> > > >> > > >> -----Original Message----- > > >> From: Linux List [mailto:linux-prog@sce.ac.in] > > >> Sent: Tuesday, July 18, 2000 11:45 AM > > >> To: linux-india-programmers@lists.linux-india.org > > >> Subject: Re: [LIP] pics in MySQL > > >> > > >> > > >> hi > > >> Wanted to ask the same.U have some think like that > > in > > >> Oracle.Do you have somethink like that for PostGRESQl. > > >> I want to store the images in binary form in the > > >> database. > > >> vinu > > >> > > >> On Sat, 17 Jun 2000 10:32:27 +0530 > > >> "Muthu" wrote: > > >> > *This message was transferred with a trial version > > of > > >> > CommuniGate(tm) Pro* > > >> > Hai deepak, > > >> > > > >> > Use Blob data type to store images.One way of > > >> > updating the image in > > >> > datafield is , Open the image file and read chunks > > of > > >> > bytes (say 1024) and > > >> > update the blob datafield. > > >> > > > >> > i hope the above information will help you > > >> > > > >> > with regards > > >> > Muthukumar > > >> > > > >> > > hi > > >> > > i want to store pictures in MySQL database. what > > kind > > >> > of data type is to > > >> > be used. and how to go about storing it . > > >> > > please help . a small code would be very helpful. > > >> > > > > >> > > reply soon > > >> > > bye > > >> > > > > >> > > __ deepak __ > > >> > > > > >> > > have a great day > > >> > > ICQ 30662394 > > >> > > > > >> > > -- Try not to let implementation details sneak > > into > > >> > design documents. > > >> > > > > >> > > > > >> > > ----------------------------------------------------------------------- > > >> > > The LIP mailing list archives are available at: > > >> > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > >> > > > >> > > > >> > ----------------------------------------------------------------------- > > >> > For more information on the LIP mailing list see: > > >> > http://lists.linux-india.org/lists/LIP > > >> > > >> > > >> ----------------------------------------------------------------------- > > >> For information on this and other Linux India mailing > > >> lists check out > > >> http://lists.linux-india.org/ > > >> > > >> ----------------------------------------------------------------------- > > >> For more information on the LIP mailing list see: > > >> http://lists.linux-india.org/lists/LIP > > > > > > > > >----------------------------------------------------------------------- > > >The LIP mailing list archives are available at: > > >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > > > > > ----------------------------- > > reply soon > > bye > > > > __ deepak __ > > > > have a great day > > ICQ 30662394 > > > > -- No program done by an undergrad will work after she > > graduates. > > > > > > ----------------------------------------------------------------------- > > The LIP mailing list archives are available at: > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 10:35:37 2000 Received: from cheedu.dyndns.org (unknown [203.197.177.160]) by www.aunet.org (Postfix) with ESMTP id 1686638050 for ; Thu, 20 Jul 2000 10:35:28 -0700 (PDT) Received: from localhost (omicron@localhost) by cheedu.dyndns.org (8.9.3/8.8.7) with ESMTP id XAA01813 for ; Thu, 20 Jul 2000 23:38:09 +0530 From: omicron@pes.edu X-Authentication-Warning: cheedu.dyndns.org: omicron owned process doing -bs Date: Thu, 20 Jul 2000 23:38:09 +0530 (IST) X-Sender: omicron@cheedu.dyndns.org Reply-To: omicron@pes.edu To: linux-india-programmers@lists.linux-india.org Subject: pid , uid... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/141 hi i got lotsa questions... 1. given the pid of a process, is it possible to know its uid and the effective uid of a person running it ? 2. can i hide a process from getting displayed in ps ( and also vanish from /proc ) 3. if i have a process running as a user foo, then how can i make it gain root priveleges for executing a function ? I don't want to setuid root to a process, but in my program a small bit of code requires setuid 0 to execute... Even man pages will be nice.. Cheers cheedu -- ******* Sridhar (cheedu) || mail: cheedu@grex.org II Sem, || page: http://www.geocities.com/sri_dhar_n B.E Info Tech || site: cheedu.dyndns.org PESIT || nick: omicron,cheedu Smile.. Tomorrow will be worse -- From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 11:35:23 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 1B42C38066 for ; Thu, 20 Jul 2000 11:35:17 -0700 (PDT) Received: (qmail 12740 invoked by uid 417); 20 Jul 2000 18:41:34 -0000 Received: from unknown (HELO deepak) (203.197.226.29) by smtpa.softhome.net with SMTP; 20 Jul 2000 18:41:34 -0000 Date: Fri, 21 Jul 2000 0:4:45 +0500 From: deepak yadav Reply-To: deepakyadav@india.com To: linux-delhi@lists.linux-india.or , linux-india-programmers Subject: GUI browser with trace option. X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20000720183517.1B42C38066@www.aunet.org> X-Archive-Number: 200007/142 hi i want to know what all the data my browser is sending and receiving while connecting to some site. i tried lynx but i can't post using it because the form in html page does not have submit button (submit is done by a javascript). i tried "strace" on Opera but it logs data as hex values. is there a GUI browser which has trace option. is there any other thing i can try ? ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- Everything is actually everything else, just recycled. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 11:39:17 2000 Received: from tango.SoftHome.net (tango.SoftHome.net [204.144.231.49]) by www.aunet.org (Postfix) with SMTP id 8B5BE38066 for ; Thu, 20 Jul 2000 11:39:11 -0700 (PDT) Received: (qmail 16130 invoked by uid 417); 20 Jul 2000 18:45:21 -0000 Received: from unknown (HELO deepak) (203.197.226.29) by smtpa.softhome.net with SMTP; 20 Jul 2000 18:45:21 -0000 Date: Fri, 21 Jul 2000 0:6:21 +0500 From: deepak yadav Reply-To: deepakyadav@india.com To: linux-india-programmers@lists.linux-india.org Subject: Re: Re: pics in MySQL X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <20000720183911.8B5BE38066@www.aunet.org> X-Archive-Number: 200007/143 hi i never tried that out. i read that in documentation which comes along MySQL _______ deepak At 7/20/00 11:16:00 AM, you wrote: >hi > I tried this thing but it did not work. >It says syntax error at line. >if i remove the LOAD_FILE thing it works but stores the >string. >vinu >On Tue, 18 Jul 2000 14:24:55 +0500 > deepak yadav wrote: >> *This message was transferred with a trial version of >> CommuniGate(tm) Pro* >> hi >> i found out how to do that in mysql. use following sql >> statement for mysql , it may work for u >> >> UPDATE table_name SET blob_column=LOAD_FILE("/tmp/picture") >> WHERE id=1; >> >> __________ >> deepak >> >> At 7/18/00 1:20:00 PM, you wrote: >> >Do you have any examples on how to store an image in >> >binary form.The GUI i am using is Java(jdbc connection) >> >so tell me how to connect and store the image in >> >db. >> >vinu >> >On Tue, 18 Jul 2000 11:46:27 +0530 >> > Paramdeep Singh >> wrote: >> >> *This message was transferred with a trial version of >> >> CommuniGate(tm) Pro* >> >> Yes >> >> you do have in Oracle. >> >> >> >> and exact way of storing depends on the version you >> are >> >> using of oracle. >> >> >> >> The oldest available oracle version shall support >> >> LongRaw(upto 2G) binary >> >> dat. >> >> and 8 ,8i have sepcial facilities for storing >> multimedia >> >> content >> >> >> >> Param >> >> >> >> >> >> >> >> -----Original Message----- >> >> From: Linux List [mailto:linux-prog@sce.ac.in] >> >> Sent: Tuesday, July 18, 2000 11:45 AM >> >> To: linux-india-programmers@lists.linux-india.org >> >> Subject: Re: [LIP] pics in MySQL >> >> >> >> >> >> hi >> >> Wanted to ask the same.U have some think like that >> in >> >> Oracle.Do you have somethink like that for PostGRESQl. >> >> I want to store the images in binary form in the >> >> database. >> >> vinu >> >> >> >> On Sat, 17 Jun 2000 10:32:27 +0530 >> >> "Muthu" wrote: >> >> > *This message was transferred with a trial version >> of >> >> > CommuniGate(tm) Pro* >> >> > Hai deepak, >> >> > >> >> > Use Blob data type to store images.One way of >> >> > updating the image in >> >> > datafield is , Open the image file and read chunks >> of >> >> > bytes (say 1024) and >> >> > update the blob datafield. >> >> > >> >> > i hope the above information will help you >> >> > >> >> > with regards >> >> > Muthukumar >> >> > >> >> > > hi >> >> > > i want to store pictures in MySQL database. what >> kind >> >> > of data type is to >> >> > be used. and how to go about storing it . >> >> > > please help . a small code would be very helpful. >> >> > > >> >> > > reply soon >> >> > > bye >> >> > > >> >> > > __ deepak __ >> >> > > >> >> > > have a great day >> >> > > ICQ 30662394 >> >> > > >> >> > > -- Try not to let implementation details sneak >> into >> >> > design documents. >> >> > > >> >> > > >> >> > > ----------------------------------------------------------------------- >> >> > > The LIP mailing list archives are available at: >> >> > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers >> >> > >> >> > >> >> > ----------------------------------------------------------------------- >> >> > For more information on the LIP mailing list see: >> >> > http://lists.linux-india.org/lists/LIP >> >> >> >> >> >> ----------------------------------------------------------------------- >> >> For information on this and other Linux India mailing >> >> lists check out >> >> http://lists.linux-india.org/ >> >> >> >> ----------------------------------------------------------------------- >> >> For more information on the LIP mailing list see: >> >> http://lists.linux-india.org/lists/LIP >> > >> > >> >----------------------------------------------------------------------- >> >The LIP mailing list archives are available at: >> >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers >> > >> > >> >> ----------------------------- >> reply soon >> bye >> >> __ deepak __ >> >> have a great day >> ICQ 30662394 >> >> -- No program done by an undergrad will work after she >> graduates. >> >> >> ----------------------------------------------------------------------- >> The LIP mailing list archives are available at: >> http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > >----------------------------------------------------------------------- >The LIP mailing list archives are available at: >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- Everything is actually everything else, just recycled. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 13:24:03 2000 Received: from web2105.mail.yahoo.com (web2105.mail.yahoo.com [128.11.68.249]) by www.aunet.org (Postfix) with SMTP id C55C838066 for ; Thu, 20 Jul 2000 13:23:57 -0700 (PDT) Received: (qmail 27474 invoked by uid 60001); 20 Jul 2000 20:23:57 -0000 Message-ID: <20000720202357.27473.qmail@web2105.mail.yahoo.com> Received: from [210.214.240.3] by web2105.mail.yahoo.com; Thu, 20 Jul 2000 13:23:57 PDT Date: Thu, 20 Jul 2000 13:23:57 -0700 (PDT) From: Rajeev Joseph Reply-To: rajeevjsv@yahoo.com Subject: Re: JAVA vs. C in speed To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/144 I remember an article on slashdot a couple of months back which had some numbers on the issue ur talking abt ... basically, it said there werent much differences in the time taken for java and c code (equivalent source). make ur own conclusions ... mrmojorisin --- OxCAFE BABE wrote: > Hi all! > > I'm doing some number crunching using JAVA in an > application. I'm using a large number of Arrays , > and thats where I thought my JAVA code will be > spending so much of its time (as JAVA checks every > Array access for ArrayIndexOutOfBoundsException). > So, in order to improve the speed of my program I > coded the routines as JNI native stubs, and timed > it. > > To my surprize, the JAVA code is as fast as the C > code as far as number crunching and Arays are > involved! Calling the native methods takes an > additional 1/2 ms, and so eventually the pure JAVA > code seems to be running faster, atleast with my > experiments! > > Have others also experienced such issues? > Does anyone know of good relaible comparisons > between JAVA and C wrt speed ? If yes, 0xCAFEBABE > would be glad > to know about them > > Thanks, > 0XcafeBAbe > > > _________________________________________________ > Chat with your friends as soon as they come online. > Get Rediff Bol from > http://www.rediff.com/messenger/messenger.htm > > Participate in crazy Re.1 auctions at > http://www.rediff.com/auctions > > > > > ----------------------------------------------------------------------- > For information on this and other Linux India > mailing lists check out > http://lists.linux-india.org/ __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 19:53:00 2000 Received: from web4504.mail.yahoo.com (web4504.mail.yahoo.com [216.115.105.65]) by www.aunet.org (Postfix) with SMTP id D8EFA38050 for ; Thu, 20 Jul 2000 10:44:46 -0700 (PDT) Message-ID: <20000720174446.9271.qmail@web4504.mail.yahoo.com> Received: from [203.197.24.107] by web4504.mail.yahoo.com; Thu, 20 Jul 2000 18:44:46 BST Date: Thu, 20 Jul 2000 18:44:46 +0100 (BST) From: =?iso-8859-1?q?varsha=20seth?= Subject: bad colors in netscape To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200007/145 subject: bad colors in netscape hi there Whenever i launch netscape communicator in X windows : i get some errors from netscape and bad colors in netscape. As a result i can't browse the Web in all its 'bells and whistles' Note: i have 'Generic VGA Compatible' Display Adapter setting in the Xwindows Configuration whereas 'Oak Spitfire (PCI) OTI64111' is the Actual Card Following r the 2 errors i get ------------------------------------------------------------- error 1: Netscape: Subprocess diagnostics (stdout/ stderr) Warning: 'Cannot allocate colormap entry for default background' error 2: Netscape error visual 0x23 is a 4 bit Pseudo Color visual. This is not a supported Visual. Images will be displayed in Monochrome. Currently supported visuals r: Static Gray, all depths Gray Scale, all depths True Color, depth 8 or greater Static Color, depth 8 or greater Pseudo Color, depth 8 only if u have any of the above Visuals (see 'xdpyinfo') it is recommended that u start netscape with the -Visual command line option to specify one More visuals may be directly supported in future. your feed back is welcome -------------------------------------------------------------------------- i have the following enviroment: OS: Redhat Linux release 6.0 Publisher's Edition (Hedwig) Kernel 2.2.5-15 on an i586 Display Adapter: Oak TV Tuner cum Display Card 'Oak Spitfire (PCI) OTI64111' Monitor: Samtrom 15" (50E) Processor: IDT Winchip C6 200 Mz Ram: 32 MB Kindly guide. Thanx in Anticipation Varsha ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 19:54:21 2000 Received: from milano.teknema.com (milano.teknema.com [206.204.22.2]) by www.aunet.org (Postfix) with ESMTP id 106D83805A; Thu, 20 Jul 2000 12:21:54 -0700 (PDT) Received: from localhost (anmol@localhost) by milano.teknema.com (8.9.3/8.9.3) with ESMTP id MAA13386; Thu, 20 Jul 2000 12:21:47 -0700 Date: Thu, 20 Jul 2000 12:21:47 -0700 (PDT) From: Anmol Khirbat To: deepakyadav@india.com Cc: "linux-delhi@lists.linux-india.or" , linux-india-programmers Subject: Re: [linux-delhi] GUI browser with trace option. In-Reply-To: <20000720183520.A56F83806E@www.aunet.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/146 Hi You need ethereal (http://ethereal.zing.org). ethereal is a sniffer with an excellent GUI. ethereal is exactly what you want! bye :) Anmol On Fri, 21 Jul 2000, deepak yadav wrote: > hi i want to know what all the data my browser is sending and > receiving while connecting to some site. i tried lynx but i can't post > using it because the form in html page does not have submit button > (submit is done by a javascript). i tried "strace" on Opera but it > logs data as hex values. is there a GUI browser which has trace > option. is there any other thing i can try ? > > ----------------------------- > reply soon > bye > > __ deepak __ > > have a great day > ICQ 30662394 > > -- Everything is actually everything else, just recycled. > > > The mailing list archives are available at > http://lists.linux-india.org/cgi-bin/wilma/linux-delhi/ > From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 20:27:03 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 140CE3805A for ; Thu, 20 Jul 2000 20:26:58 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id UAA25264 for linux-india-programmers@lists.linux-india.org; Thu, 20 Jul 2000 20:26:23 -0700 Date: Thu, 20 Jul 2000 20:26:23 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: JAVA vs. C in speed Message-ID: <20000720202623.A25247@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000720132536.6972.qmail@www2.rediffmail.com>; from cafebabe@rediffmail.com on Thu, Jul 20, 2000 at 01:25:36PM -0000 X-Archive-Number: 200007/147 http://patrick.net/jpt/ See the page 3 of the referenced javaworld article. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 20:43:40 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id 1FDD938050 for ; Thu, 20 Jul 2000 20:43:35 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id UAA25378 for linux-india-programmers@lists.linux-india.org; Thu, 20 Jul 2000 20:43:00 -0700 Date: Thu, 20 Jul 2000 20:43:00 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: pid , uid... Message-ID: <20000720204300.B25247@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from omicron@pes.edu on Thu, Jul 20, 2000 at 11:38:09PM +0530 X-Archive-Number: 200007/148 On Thu, Jul 20, 2000 at 11:38:09PM +0530, omicron@pes.edu wrote: > hi > i got lotsa questions... > > 1. given the pid of a process, is it possible to know its uid and > the effective uid of a person running it ? > ps gives this to you. To do this programmatically, look at ps source code. It basically reads /proc I think. > 2. can i hide a process from getting displayed in ps ( and also > vanish from /proc ) You can't unless you hack the kernel. There was a hacker mag article on how to do this. (thc.com/org ?) > > 3. if i have a process running as a user foo, then how can i make it > gain root priveleges for executing a function ? I don't want to setuid > root to a process, but in my program a small bit of code requires setuid 0 > to execute... You can't use setuid to gain root. -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 20:45:13 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id E717F38050; Thu, 20 Jul 2000 20:45:04 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id UAA25403; Thu, 20 Jul 2000 20:44:30 -0700 Date: Thu, 20 Jul 2000 20:44:30 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Cc: "linux-delhi@lists.linux-india.org" Subject: Re: GUI browser with trace option. Message-ID: <20000720204430.C25247@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000720183517.1B42C38066@www.aunet.org>; from deepak2000@softhome.net on Fri, Jul 21, 2000 at 12:04:45AM +0500 X-Archive-Number: 200007/149 On Fri, Jul 21, 2000 at 12:04:45AM +0500, deepak yadav wrote: > hi > i want to know what all the data my browser is sending and receiving > while connecting to some site. i tried lynx but i can't post using it > because the form in html page does not have submit button (submit is > done by a javascript). i tried "strace" on Opera but it logs data as > hex values. is there a GUI browser which has trace option. is there > any other thing i can try ? Just write a http proxy, that logs the data going over the wire ? -Arun From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 20:56:57 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 07AC73805A for ; Thu, 20 Jul 2000 20:56:47 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2243525 for ; Fri, 21 Jul 2000 09:32:51 +0530 From: "Linux List " Subject: Re: JAVA vs. C in speed To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Fri, 21 Jul 2000 09:32:51 +0530 Message-ID: In-Reply-To: <20000720132536.6972.qmail@www2.rediffmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200007/150 I didn't try this out myself.If it increases the speed,let me know. http://www.javaworld.com/javaworld/javatips/jw-javatip95.html vinu On 20 Jul 2000 13:25:36 -0000 "OxCAFE BABE" wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > Hi all! > > I'm doing some number crunching using JAVA in an > application. I'm using a large number of Arrays , and > thats where I thought my JAVA code will be spending so > much of its time (as JAVA checks every Array access for > ArrayIndexOutOfBoundsException). So, in order to improve > the speed of my program I coded the routines as JNI > native stubs, and timed it. > > To my surprize, the JAVA code is as fast as the C code as > far as number crunching and Arays are involved! Calling > the native methods takes an additional 1/2 ms, and so > eventually the pure JAVA code seems to be running faster, > atleast with my experiments! > > Have others also experienced such issues? > Does anyone know of good relaible comparisons between > JAVA and C wrt speed ? If yes, 0xCAFEBABE would be glad > to know about them > > Thanks, > 0XcafeBAbe > > > _________________________________________________ > Chat with your friends as soon as they come online. > Get Rediff Bol from http://www.rediff.com/messenger/messenger.htm > > Participate in crazy Re.1 auctions at > http://www.rediff.com/auctions > > > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing > lists check out > http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 21:07:00 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id 2ACEA380C6 for ; Thu, 20 Jul 2000 21:06:53 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA04576 for ; Fri, 21 Jul 2000 09:32:50 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id JAA16620 for ; Fri, 21 Jul 2000 09:35:24 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA41C6 for ; Fri, 21 Jul 2000 09:36:31 +0530 Date: Fri, 21 Jul 2000 09:47:46 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: linux-india-programmers@lists.linux-india.org Subject: Re: pid , uid... In-Reply-To: <20000720204300.B25247@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/151 + > 1. given the pid of a process, is it possible to know its uid and + > the effective uid of a person running it ? geteuid(), getuid() do that in a program. See man 2 + > 2. can i hide a process from getting displayed in ps ( and also + > vanish from /proc ) Want to crack or what? :) The simple answer is - no. There are work arounds; changing name of the process randomly during run time is one way, and to add complexity, you can change the pid too. Dont ask me how to do it. Search the archieves you'll find that. [Fortune cookie] Signatures are funny. Sharad. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 22:45:58 2000 Received: from dot.crosswinds.net (dot.crosswinds.net [204.50.152.131]) by www.aunet.org (Postfix) with ESMTP id 9345138090 for ; Thu, 20 Jul 2000 22:45:52 -0700 (PDT) Received: from rahulpr.com ([212.3.55.122]) by dot.crosswinds.net (8.9.3/8.9.3) with ESMTP id BAA94669 for ; Fri, 21 Jul 2000 01:44:04 -0400 (EDT) (envelope-from silver_canyon@rahulpr.com) Message-ID: <3977B9D5.11E37848@rahulpr.com> Date: Fri, 21 Jul 2000 08:17:49 +0530 From: Rahul Premraj Organization: AIESEC in Delhi University, India X-Mailer: Mozilla 4.61 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: linux-india-programmers@lists.linux-india.org Subject: Re: DNS Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/152 I am a complete newbie to linux... but I might have a small clue... and i surely could be wrong... Lately (i think since Jan 2000)... Hotmail revamped their site... and the URL www.hotmail.com is no longer active but only redirecting to a new URL which is http://lc4.law5.hotmail.passport.com/cgi-bin/login This is the new passport system they came out with which is claimed to be more secure... try pinging this domin name.. and u might be succesful... Rahul Ashish kumar wrote: > This is not really a programming probelm, but its very irritating. > > Whenever I write ping www.hotmail.com I get an error hostname lookup failure. > And when I give IP address it works. > Any help > > Thanx > Ashish > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com > > ----------------------------------------------------------------------- > For more information on the LIP mailing list see: > http://lists.linux-india.org/lists/LIP > ____________________________________________________________ > Get your FREE personal .com domain name and > NAMEzero Personal Portal at: http://www.namezero.com. > For customer service, mailto:customerservice@namezero.com. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 22:46:21 2000 Received: from web6105.mail.yahoo.com (web6105.mail.yahoo.com [128.11.22.99]) by www.aunet.org (Postfix) with SMTP id 231F638088 for ; Thu, 20 Jul 2000 22:46:17 -0700 (PDT) Message-ID: <20000721054625.27339.qmail@web6105.mail.yahoo.com> Received: from [203.197.178.52] by web6105.mail.yahoo.com; Thu, 20 Jul 2000 22:46:25 PDT Date: Thu, 20 Jul 2000 22:46:25 -0700 (PDT) From: Prashant KS Subject: POP3 Server To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/153 Hi, I know that a POP3 server will be running on a Linux Machine and if we have an account on it we can pop our mails from that server by giving the user-id and the password. Now I have some doubts regarding this. 1. Where is the executable of this POP3 server on the linux machine i.e, the path and name of the binary file. On a Debian Linux it has the name qpopper. But I wanted the name and path on a RedHat Linux System. 2. Now if am able to get the name of the POP3 server. Now using what the POP3 server authenticates a user, whether is it /etc/passwd file or some LDAP or PAM or can we customize it. 3.Further it downloads the mails from /var/spool/mail/userid file. Can I again customize it to download mails from some where else. If I cannot customize should I write my own pop server or is there any other alternative? Thanks and Regards Prashanth __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Thu Jul 20 23:26:05 2000 Received: from alice.bombay.retortsoft.com (unknown [203.197.60.31]) by www.aunet.org (Postfix) with ESMTP id 08B2C3806E for ; Thu, 20 Jul 2000 23:25:59 -0700 (PDT) Received: from jediland.bombay.retortsoft.com (pstn-port3.dialin.retortsoft.com [192.168.103.3]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id MAA13110 for ; Fri, 21 Jul 2000 12:02:38 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id LAA01329 for linux-india-programmers@lists.linux-india.org; Fri, 21 Jul 2000 11:54:11 +0530 Date: Fri, 21 Jul 2000 11:54:11 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: pid , uid... Message-ID: <20000721115411.B848@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200007/154 Sharad Joshi forced the electrons to say: > arounds; changing name of the process randomly during run time is one way, > and to add complexity, you can change the pid too. Dont ask me how to do > it. Search the archieves you'll find that. Check out my signature. :> Binand -- main(int c,char **v){while(!fork()){strcpy(v[0],tmpnam(0));sleep(1);}} A program that changes its name and pid every second. Try this program at your own risk! ---> Binand <--- From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 02:30:29 2000 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id 998CC382F7 for ; Fri, 21 Jul 2000 02:30:07 -0700 (PDT) Received: from accord-soft.com (R.k.patil [192.168.1.15]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id OAA06050 for ; Fri, 21 Jul 2000 14:46:14 +0530 Message-ID: <397814DC.A23CF152@accord-soft.com> Date: Fri, 21 Jul 2000 14:46:13 +0530 From: RK Patil Organization: Accord Software & Systems Pvt. Ltd. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: Where can I get bash test suite Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/155 Hello, Can anybody give me a pointer to access the bash-test-suite written/compiled by Chet Ramey --TIA, rk From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 03:23:10 2000 Received: from brahma.roc.com (unknown [203.197.21.200]) by www.aunet.org (Postfix) with ESMTP id B073838088 for ; Fri, 21 Jul 2000 03:22:59 -0700 (PDT) Received: from usb.roc.com (root@[172.16.1.182]) by brahma.roc.com (8.8.5/8.8.5) with SMTP id PAA11612 for ; Fri, 21 Jul 2000 15:58:21 +0530 (IST) From: Praveen Reply-To: praveenb@trinc.com Organization: Roc To: linux-india-programmers@lists.linux-india.org Subject: PCI base address ? Date: Fri, 21 Jul 2000 15:45:22 +0400 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00072115523100.00751@usb.roc.com> Content-Transfer-Encoding: 8bit X-Archive-Number: 200007/156 Hi all Can any one tell me, what PCI base address means ?.. Why we are remapping base address using ioremap() to acess the device ...Can't we directly access it ? If we write some data to device using writel(), will it be written to on-board device memory or to our system memory.. Thx in adv regards From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 04:25:36 2000 Received: from inbound.satyam.net.in (unknown [202.144.76.6]) by www.aunet.org (Postfix) with ESMTP id D3F76380A3 for ; Fri, 21 Jul 2000 04:25:30 -0700 (PDT) Received: from [202.144.36.226] (202.144.36.226) by inbound.satyam.net.in (NPlex 4.5.051) id 3977998F0002290D for linux-india-programmers@lists.linux-india.org; Fri, 21 Jul 2000 11:22:07 +0000 Message-ID: <000b01bff303$38be24a0$a4961eaa@iyersriram> From: Sriram Iyer X-mailserver: Sent using the PostMaster (v3.1.6.b3) To: "LIP" Subject: Any emulator? Date: Fri, 21 Jul 2000 16:32:53 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Archive-Number: 200007/157 I am really new to Linux and would like to have some idea about the emulator available (freeware). Do anyone know about any of them? Thanks for your help. Sriram -------------------------------------------------------------- Policy Management Systems Pvt. Ltd., Indore, India From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 04:40:26 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id ABAF838064 for ; Fri, 21 Jul 2000 04:40:16 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2250289 for ; Fri, 21 Jul 2000 17:15:53 +0530 From: "Linux List " Subject: Re: Any emulator? To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Fri, 21 Jul 2000 17:15:53 +0530 Message-ID: In-Reply-To: <000b01bff303$38be24a0$a4961eaa@iyersriram> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200007/158 hi What emulator are you talking about.You have emulators like wine,dosemu,etc.Are you refering to that. vinu On Fri, 21 Jul 2000 16:32:53 +0530 Sriram Iyer wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > I am really new to Linux and would like to have some idea > about the emulator > available (freeware). Do anyone know about any of them? > > Thanks for your help. > Sriram > > > -------------------------------------------------------------- > Policy Management Systems Pvt. Ltd., Indore, India > > > > ----------------------------------------------------------------------- > For information on this and other Linux India mailing > lists check out > http://lists.linux-india.org/ From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 04:43:23 2000 Received: from cix.exocore.com (unknown [202.141.1.225]) by www.aunet.org (Postfix) with ESMTP id 1423B3808A for ; Fri, 21 Jul 2000 04:43:14 -0700 (PDT) Received: (from mrinal@localhost) by cix.exocore.com (8.9.3/8.8.7) id RAA07698 for linux-india-programmers@lists.linux-india.org; Fri, 21 Jul 2000 17:13:06 +0530 X-Authentication-Warning: cix.exocore.com: mrinal set sender to mrinal@india.com using -f Date: Fri, 21 Jul 2000 17:13:06 +0530 From: Mrinal Kalakrishnan To: linux-india-programmers@lists.linux-india.org Subject: Re: POP3 Server Message-ID: <20000721171306.B6817@india.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000721054625.27339.qmail@web6105.mail.yahoo.com>; from prashantlnx@yahoo.com on Thu, Jul 20, 2000 at 10:46:25PM -0700 X-Mailer: Mutt 1.2i (2000-05-09) X-Operating-System: Linux 2.2.12-20 X-Editor: VIM - Vi IMproved 5.6 X-URL: http://mrinal.dhs.org/ Organization: Exocore Consulting (P) Ltd. X-Archive-Number: 200007/159 Hi, Prashant KS typed: > 1. Where is the executable of this POP3 server on the > linux machine i.e, the path and name of the binary > file. On a Debian Linux it has the name qpopper. But I > wanted the name and path on a RedHat Linux System. It is an inet service. So you can get the name of the program by looking in inetd.conf. The program actually called is /usr/sbin/ipop3d, which is part of the imap package. > 2. Now if am able to get the name of the POP3 server. > Now using what the POP3 server authenticates a user, > whether is it /etc/passwd file or some LDAP or PAM or > can we customize it. It uses PAM. I'm not sure about how to customize it. /usr/doc/imap-x.xx doesn't have any information. :-( You may have to do some websearching. -- Mrinal Kalakrishnan http://mrinal.dhs.org/ Linux 2.2.12-20 || PGP:B1E86F5B || Mutt 1.2i (2000-05-09) || VIM 5.6 -- From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 06:18:48 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 3F9A138053 for ; Fri, 21 Jul 2000 06:18:29 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2250472 for ; Fri, 21 Jul 2000 18:54:01 +0530 From: "Linux List " Subject: mapping in vi To: X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Fri, 21 Jul 2000 18:54:01 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200007/160 hi all, I found this very useful thing from some book. map #2 ^[:w^[^M ^[ is got by pressing v and escape(the escape character) ^M is equivalent to the enter key. This mapping can be added in your .exrc or .vimrc file. Now pressing F2 saves your file. This will be very useful if you want to save,compile and run different programs using a single keystroke. eg: map #9 ^[:w^[:!cc %^[:!./a.out^[ pressing F9 will compile and run your c program. can use in the same way for java,perl,programs. vinu From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 07:55:05 2000 Received: from web4502.mail.yahoo.com (web4502.mail.yahoo.com [216.115.105.63]) by www.aunet.org (Postfix) with SMTP id 9FAC3380B0 for ; Fri, 21 Jul 2000 07:54:59 -0700 (PDT) Message-ID: <20000721145459.28280.qmail@web4502.mail.yahoo.com> Received: from [202.169.129.72] by web4502.mail.yahoo.com; Fri, 21 Jul 2000 07:54:59 PDT Date: Fri, 21 Jul 2000 07:54:59 -0700 (PDT) From: Sujai Antony Subject: Re: Any emulator? To: linux-india-programmers@lists.linux-india.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Archive-Number: 200007/161 The best one which i think is WINE (WINdows Emulator) this was published in several issues of pcq & chip chip special cd -linux 6.0 has a copy of wine You can run windows programs and games from wine Other emulators include dosemu,VMWare(not an emu but it is another OS inside ur linux box) __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 10:25:58 2000 Received: from mc-qout4.whowhere.com (mc-qout4.whowhere.com [209.185.123.18]) by www.aunet.org (Postfix) with SMTP id E8A3E3804F for ; Fri, 21 Jul 2000 10:25:51 -0700 (PDT) Received: from Unknown/Local ([?.?.?.?]) by hotbot.com; Fri Jul 21 10:25:40 2000 To: linux-india-programmers@lists.linux-india.org Date: Fri, 21 Jul 2000 10:25:40 -0700 From: "Sriram Iyer" Message-ID: Mime-Version: 1.0 X-Sent-Mail: on Reply-To: suryan@hotbot.com X-Mailer: MailCity Service Subject: PHP & Postgresql X-Sender-Ip: 202.54.95.221 Organization: HotBot Mail (http://mail.hotbot.mailcity.lycos.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Length: 383 Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/162 I would like to write a php3 file which will read rows from a postgresql database running in backend. I am getting the following error pg_connect is not recognized function. Is it because of any installation problem or do I need to invoke anything before doing this. Any small example will be of great help. Thanks Sriram HotBot - Search smarter. http://www.hotbot.com From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 11:00:32 2000 Received: from giasdl01.vsnl.net.in (giasdl01.vsnl.net.in [202.54.15.1]) by www.aunet.org (Postfix) with ESMTP id BA13538059 for ; Fri, 21 Jul 2000 11:00:24 -0700 (PDT) Received: from deepak ([203.197.193.199]) by giasdl01.vsnl.net.in (8.9.2/8.9.2) with SMTP id XAA03881 for ; Fri, 21 Jul 2000 23:32:59 +0500 (GMT+0500) Message-Id: <200007211832.XAA03881@giasdl01.vsnl.net.in> Date: Fri, 21 Jul 2000 23:30:18 +0500 From: deepak yadav Reply-To: deepakyadav@india.com To: "linux-india-programmers@lists.linux-india.org" Subject: Re: PHP & Postgresql X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/163 u need support lib try php-pg-mysql-3.0.13-1.i386.rpm get it from www.php.net i use it for php + MySQL ________ deepak At 7/21/00 10:25:00 AM, you wrote: >I would like to write a php3 file which will read rows from a postgresql database running in backend. I am getting the following error > >pg_connect is not recognized function. > >Is it because of any installation problem or do I need to invoke anything before doing this. > >Any small example will be of great help. > >Thanks >Sriram > > >HotBot - Search smarter. >http://www.hotbot.com > >----------------------------------------------------------------------- >The LIP mailing list archives are available at: >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- We'll have solar energy when the power companies develop a sunbeam meter. From linux-india-programmers-owner@lists.linux-india.org Fri Jul 21 23:14:14 2000 Received: from alice.bombay.retortsoft.com (unknown [203.197.60.31]) by www.aunet.org (Postfix) with ESMTP id D5DA338059 for ; Fri, 21 Jul 2000 23:14:03 -0700 (PDT) Received: from jediland.bombay.retortsoft.com (pstn-port3.dialin.retortsoft.com [192.168.103.3]) by alice.bombay.retortsoft.com (8.9.3/8.9.3) with ESMTP id LAA29434 for ; Sat, 22 Jul 2000 11:51:01 +0530 Received: (from binand@localhost) by jediland.bombay.retortsoft.com (8.9.3/8.9.3) id LAA00867 for linux-india-programmers@lists.linux-india.org; Sat, 22 Jul 2000 11:42:27 +0530 Date: Sat, 22 Jul 2000 11:42:26 +0530 From: "Binand Raj S." To: linux-india-programmers@lists.linux-india.org Subject: Re: mapping in vi Message-ID: <20000722114226.A734@bombay.retortsoft.com> Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from linux-prog@sce.ac.in on Fri, Jul 21, 2000 at 06:54:01PM +0530 X-Operating-System: Linux 2.2.12-20 X-Editor: VIM - Vi IMproved 5.7a BETA X-Organization: Retort Software Pvt. Ltd. X-Surviving-On: Oxygen, Coffee and Unix X-Archive-Number: 200007/164 Linux List forced the electrons to say: > I found this very useful thing from some book. > map #2 ^[:w^[^M It should be map #2 ^[:w^M - There is an extra escape there which ruins the whole mapping. > different programs using a single keystroke. > eg: map #9 ^[:w^[:!cc %^[:!./a.out^[ Same error here, repeated multiple times. BTW, vim is much more advanced than the vi described in many Unix books. In particular, there is a :make command in vim, and also something called 'quickfix' mode, which parses your compiler error messages and takes you to the line in which the error occured and so on. For more details on vim, use :help. There is a lot of documentation that comes with vim, browsable within vim. For help on mappings, use :help map. For quickfix, use :help quickfix. Binand -- The prompt for all occasions: export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> " --------------- Binand Raj S. (binand@bombay.retortsoft.com) From linux-india-programmers-owner@lists.linux-india.org Sat Jul 22 01:04:47 2000 Received: from linux.wiplash.com (ddp-31-109.ras231.mantraonline.com [202.56.231.109]) by www.aunet.org (Postfix) with ESMTP id E2F2138064 for ; Sat, 22 Jul 2000 01:04:36 -0700 (PDT) Received: from deepak ([192.168.0.23]) by linux.wiplash.com (8.9.3/8.8.7) with SMTP id NAA16157 for ; Sat, 22 Jul 2000 13:39:10 +0530 Message-Id: <200007220809.NAA16157@linux.wiplash.com> Date: Sat, 22 Jul 2000 13:34:28 +0500 From: deepak yadav Reply-To: deepakyadav@india.com To: linux-india-programmers Subject: Re: Re: GUI browser with trace option. X-mailer: FoxMail 2.1 [en] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/165 hi an links to how to write an HTTP proxy . thanks __________ deepak >From: Arun Sharma >To: linux-india-programmers@lists.linux-india.org >Subject: [linux-delhi] Re: [LIP] GUI browser with trace option. >On Fri, Jul 21, 2000 at 12:04:45AM +0500, deepak yadav wrote: >> hi >> i want to know what all the data my browser is sending and receiving >> while connecting to some site. i tried lynx but i can't post using it >> because the form in html page does not have submit button (submit is >> done by a javascript). i tried "strace" on Opera but it logs data as >> hex values. is there a GUI browser which has trace option. is there >> any other thing i can try ? > >Just write a http proxy, that logs the data going over the wire ? > > -Arun > >The mailing list archives are available at >http://lists.linux-india.org/cgi-bin/wilma/linux-delhi/ > > ----------------------------- reply soon bye __ deepak __ have a great day ICQ 30662394 -- The decision doesn't have to be logical; it was unanimous. From linux-india-programmers-owner@lists.linux-india.org Sat Jul 22 05:36:11 2000 Received: from myrealbox.com (unknown [192.108.102.201]) by www.aunet.org (Postfix) with ESMTP id 87AED38073 for ; Sat, 22 Jul 2000 05:36:03 -0700 (PDT) Received: from jayant.myrealbox.com [202.173.129.80] by myrealbox.com with Novonyx SMTP Server $Revision: 2.46 $; Sat, 22 Jul 2000 06:35:59 -0600 (MDT) Message-Id: <4.3.0.20000721162008.00b8de10@imap.myrealbox.com> X-Sender: jk2k@imap.myrealbox.com X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Fri, 21 Jul 2000 16:21:50 +0530 To: linux-india-programmers@lists.linux-india.org From: jayant kumar Subject: Re: Urgent: jdbc connection to PostGRESQL In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200007/166 Well CLASSPATH means CLASSPATH and not PATH. just edit the /etc/profile file and enter CLASSPATH =3D "//postgresql.jar" EXPORT CLASSPATH --------------------Jayant At 12:23 PM 7/19/00 +0530, you wrote: >does classPath mean classpath or path. >The postgresql docs say something like export the >postgresql.jar file to your CLASSPATH with export. >i think they refer to the PATH. >Please tell me how to export xxx.jar or any file for that >matter to the classpath. > >On Tue, 18 Jul 2000 23:39:30 -0700 (PDT) > Rajeev Joseph wrote: > > *This message was transferred with a trial version of > > CommuniGate(tm) Pro* > > The jdbc drivers are available in the /usr/lib/pgsql > > directory as jdbc1.2-6.5.jar . rename it as > > postgresql.jar and export to the classpath. (Vinu) > > > > Its more useful to dl the source.tgz files and do a > > javadoc on the org.postgresql.* package and learn the > > API since the documentation with the pasgkage is > > sparse and really unreadble. > > > > mrmojorisin > > --- Linux List wrote: > > > hi > > > Found the drivers at > > > http://www.retep.org.uk/postgres/ > > > some one may find it useful.Didn't try it yet. > > > vinu > > > > > > On Wed, 12 Jul 2000 17:06:09 +0530 > > > jayant kumar wrote: > > > > *This message was transferred with a trial version > > > of > > > > CommuniGate(tm) Pro* > > > > The driver for PostGRESQL is there in > > > PCQuest. I > > > > have seen it but > > > > have not used it. It would be better if you search > > > for > > > > "postgresql.jar" > > > > file on google.com. Put it somewhere in some > > > directory > > > > and add it to the > > > > CLASSPATH. It should work. It works on my PC!! > > > > > > > > -------Jayant > > > > > > > > At 11:31 AM 7/11/00 +0530, you wrote: > > > > >hi all, > > > > > I tried the jdbc connection to the PostGRESQL > > > > server. > > > > >The HOWTO says that u will have a file called > > > > Postgresql.jar > > > > >,which you have to export to ur classpath. > > > > >I didn't find such a file anywhere in my > > > installation. > > > > >When i run the program i get an exception that > > > the > > > > >driver is not found but the docs says u do have a > > > driver > > > > >shipped with the PostGresql package. > > > > >I installed all the postgresql > > > > packages(jdbc,perl,phython,tcl,etc).Also > > > > >i found the > > > > >perl example working very well. > > > > >Any pointers,help. > > > > >Thanx in advance > > > > >vinu > > > > > > > > > > > > > > > > > > > >----------------------------------------------------------------------- > > > > >LIP is all for free speech. But it was created > > > for a > > > > purpose - to help > > > > >people discuss technical programming related > > > issues > > > > about Linux. If > > > > >your messages are counterproductive to this > > > purpose, > > > > your privileges to > > > > >submit messages can and will be revoked. > > > > > > > > > > > > > > > > > ----------------------------------------------------------------------- > > > > The LIP mailing list archives are available at: > > > > > > > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > > > > > > ----------------------------------------------------------------------- > > > The LIP mailing list archives are available at: > > > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > __________________________________________________ > > Do You Yahoo!? > > Get Yahoo! Mail =AD Free email you can access from > > anywhere! > > http://mail.yahoo.com/ > > > > ----------------------------------------------------------------------- > > LIP is all for free speech. But it was created for a > > purpose - to help > > people discuss technical programming related issues about > > Linux. If > > your messages are counterproductive to this purpose, your > > privileges to > > submit messages can and will be revoked. > > >----------------------------------------------------------------------- >For more information on the LIP mailing list see: >http://lists.linux-india.org/lists/LIP --------Jayant Take a look at my website over here ..... From linux-india-programmers-owner@lists.linux-india.org Sat Jul 22 11:20:43 2000 Received: from jla.vsnl.net.in (unknown [202.54.103.1]) by www.aunet.org (Postfix) with ESMTP id 670DB3806C; Sat, 22 Jul 2000 11:20:32 -0700 (PDT) Received: from tdpsl-ntws5 ([210.214.83.178]) by jla.vsnl.net.in (8.9.3/8.8.8) with SMTP id XAA23050; Sat, 22 Jul 2000 23:51:52 -0500 (IST) Message-Id: X-Sender: jjo3@jjoverseas.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Sat, 22 Jul 2000 23:52:30 +0000 To: linux-india-programmers@lists.linux-india.org From: Sanjay Arora Subject: Web-Hosting Control Panel type application through scripting... In-Reply-To: <31174648.960558891850.JavaMail.imail@neon.excite.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200007/167 Anyone know of anyone having created a script based application providing services similar to the web based control panels being provided by web-hosting companies nowadays? Or maybe a C/C++ client server application doing the same thing using SSL? Sanjay. From linux-india-programmers-owner@lists.linux-india.org Sat Jul 22 12:25:01 2000 Received: from nick.nikhilwiz.net (unknown [202.160.239.42]) by www.aunet.org (Postfix) with ESMTP id 2E6A038078 for ; Sat, 22 Jul 2000 12:24:46 -0700 (PDT) Received: (from nikhil@localhost) by nick.nikhilwiz.net (8.9.3/8.9.3) id AAA06142 for linux-india-programmers@lists.linux-india.org; Sun, 23 Jul 2000 00:54:42 +0530 From: nikhilwiz@yahoo.com X-Authentication-Warning: nick.nikhilwiz.net: nikhil set sender to nikhilwiz@yahoo.com using -f Date: Sun, 23 Jul 2000 00:54:42 +0530 To: linux-india-programmers@lists.linux-india.org Subject: Re: PCI base address ? Message-ID: <20000723005442.C6082@nick.nikhilwiz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00072115523100.00751@usb.roc.com>; from praveenb@trinc.com on Fri, Jul 21, 2000 at 03:45:22PM +0400 X-Operating-System: Linux nick 2.4.0-test2-ac2 X-Archive-Number: 200007/168 read /usr/src/linux/Documentation/IO-mapping.txt u can directly use writel() on x86, but u're going to shoot portability right in the heart. Nikhil. On Fri, Jul 21, 2000 at 03:45:22PM +0400, Praveen wrote: > > Hi all > > Can any one tell me, what PCI base address means ?.. > Why we are remapping base address using ioremap() to acess > the device ...Can't we directly access it ? > > If we write some data to device using writel(), will it be > written to on-board device memory or to our system memory.. > > Thx in adv > regards > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. From linux-india-programmers-owner@lists.linux-india.org Sat Jul 22 12:41:29 2000 Received: from nick.nikhilwiz.net (unknown [202.160.239.42]) by www.aunet.org (Postfix) with ESMTP id 2AC1438099 for ; Sat, 22 Jul 2000 12:41:19 -0700 (PDT) Received: (from nikhil@localhost) by nick.nikhilwiz.net (8.9.3/8.9.3) id BAA06184 for linux-india-programmers@lists.linux-india.org; Sun, 23 Jul 2000 01:11:20 +0530 From: nikhilwiz@yahoo.com X-Authentication-Warning: nick.nikhilwiz.net: nikhil set sender to nikhilwiz@yahoo.com using -f Date: Sun, 23 Jul 2000 01:11:20 +0530 To: linux-india-programmers@lists.linux-india.org Subject: Re: JAVA vs. C in speed Message-ID: <20000723011120.D6082@nick.nikhilwiz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20000720202623.A25247@sharmas.dhs.org>; from adsharma@sharmas.dhs.org on Thu, Jul 20, 2000 at 08:26:23PM -0700 X-Operating-System: Linux nick 2.4.0-test2-ac2 X-Archive-Number: 200007/169 wasn't there a post on /. about some guy who benchmarked the same algo with VC++ and the IBM JDK 1.3, and the JDK kicked VC's ass? Nikhil. On Thu, Jul 20, 2000 at 08:26:23PM -0700, Arun Sharma wrote: > http://patrick.net/jpt/ > > See the page 3 of the referenced javaworld article. > > -Arun > > ----------------------------------------------------------------------- > LIP is all for free speech. But it was created for a purpose - to help > people discuss technical programming related issues about Linux. If > your messages are counterproductive to this purpose, your privileges to > submit messages can and will be revoked. From linux-india-programmers-owner@lists.linux-india.org Sun Jul 23 21:55:44 2000 Received: from mail.plasma.ernet.in (unknown [202.144.20.163]) by www.aunet.org (Postfix) with ESMTP id 1C751380B4 for ; Sun, 23 Jul 2000 21:55:30 -0700 (PDT) Received: from sun4.plasma.ernet.in (sun4.plasma.ernet.in [202.41.114.4]) by mail.plasma.ernet.in (8.9.3/8.9.3) with SMTP id GAA11988 for ; Mon, 24 Jul 2000 06:42:59 +0530 Received: from localhost by sun4.plasma.ernet.in (SMI-8.6/SMI-SVR4) id KAA20536; Mon, 24 Jul 2000 10:29:28 -0500 Date: Mon, 24 Jul 2000 10:29:28 -0500 (GMT) From: Vivek Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: PHP & Postgresql In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/170 I think setting some environment variables with sort out your problem. The name of the variables will be there in doc of Postgres. reg, vivek On Fri, 21 Jul 2000, Sriram Iyer wrote: > Date: Fri, 21 Jul 2000 10:25:40 -0700 > From: Sriram Iyer > Reply-To: linux-india-programmers@lists.linux-india.org > To: linux-india-programmers@lists.linux-india.org > Subject: [LIP] PHP & Postgresql > > I would like to write a php3 file which will read rows from a postgresql database running in backend. I am getting the following error > > pg_connect is not recognized function. > > Is it because of any installation problem or do I need to invoke anything before doing this. > > Any small example will be of great help. > > Thanks > Sriram > > > HotBot - Search smarter. > http://www.hotbot.com > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > From linux-india-programmers-owner@lists.linux-india.org Mon Jul 24 13:12:46 2000 Received: from nick.nikhilwiz.net (unknown [202.65.130.19]) by www.aunet.org (Postfix) with ESMTP id BEC6938054 for ; Mon, 24 Jul 2000 13:12:29 -0700 (PDT) Received: (from nikhil@localhost) by nick.nikhilwiz.net (8.9.3/8.9.3) id BAA02974 for linux-india-programmers@lists.linux-india.org; Tue, 25 Jul 2000 01:42:25 +0530 From: nikhilwiz@yahoo.com X-Authentication-Warning: nick.nikhilwiz.net: nikhil set sender to nikhilwiz@yahoo.com using -f Date: Tue, 25 Jul 2000 01:42:25 +0530 To: linux-india-programmers@lists.linux-india.org Subject: select() Message-ID: <20000725014225.A2930@nick.nikhilwiz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: Linux nick 2.4.0-test2-ac2 X-Archive-Number: 200007/171 hi. can anyone tell me what's the significance of the first param of select() - nfds. when we're passing the fds to be watched anyway thru FD_SET(). looking at the kernel source (2.4.0-test2), in do_select(), there is a loop from 0 to nfds, checking _every_ fd. Is this necessary, even when the fds to be watched are explicitly provided by FD_SET()? set_current_state(TASK_INTERRUPTIBLE); at /usr/src/linux/fs/select.c:193 do_select() this saves a little loss of face, but i still dont get the point behind looping thru all the fds. If i wanted to watch 2 fds with comparitively high margin between them, select() would loop unnecessarily thru the intermediary fds, which seems like a waste of time to me. plz. tell me if i'm wrong somewhere... Nikhil. From linux-india-programmers-owner@lists.linux-india.org Mon Jul 24 21:36:00 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 7344F3807B for ; Mon, 24 Jul 2000 21:35:42 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2300221 for ; Tue, 25 Jul 2000 10:11:13 +0530 From: "Linux List " Subject: Re: Urgent: jdbc connection to PostGRESQL To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Tue, 25 Jul 2000 10:11:13 +0530 Message-ID: In-Reply-To: <4.3.0.20000721162008.00b8de10@imap.myrealbox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Archive-Number: 200007/172 hi Yeah its working perfectly now.I renamed jdbc-1--.2.jar provided with the pcq distribution as postgresql.jar and exported it to my CLASSPATH and its working perfectly. thanx vinu On Fri, 21 Jul 2000 16:21:50 +0530 jayant kumar wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > Well CLASSPATH means CLASSPATH and not PATH. > just edit the /etc/profile file and enter > > CLASSPATH = "/ postgresql.jar>/postgresql.jar" > EXPORT CLASSPATH > > --------------------Jayant > > At 12:23 PM 7/19/00 +0530, you wrote: > >does classPath mean classpath or path. > >The postgresql docs say something like export the > >postgresql.jar file to your CLASSPATH with export. > >i think they refer to the PATH. > >Please tell me how to export xxx.jar or any file for > that > >matter to the classpath. > > > >On Tue, 18 Jul 2000 23:39:30 -0700 (PDT) > > Rajeev Joseph wrote: > > > *This message was transferred with a trial version of > > > CommuniGate(tm) Pro* > > > The jdbc drivers are available in the /usr/lib/pgsql > > > directory as jdbc1.2-6.5.jar . rename it as > > > postgresql.jar and export to the classpath. (Vinu) > > > > > > Its more useful to dl the source.tgz files and do a > > > javadoc on the org.postgresql.* package and learn the > > > API since the documentation with the pasgkage is > > > sparse and really unreadble. > > > > > > mrmojorisin > > > --- Linux List wrote: > > > > hi > > > > Found the drivers at > > > > http://www.retep.org.uk/postgres/ > > > > some one may find it useful.Didn't try it yet. > > > > vinu > > > > > > > > On Wed, 12 Jul 2000 17:06:09 +0530 > > > > jayant kumar wrote: > > > > > *This message was transferred with a trial > version > > > > of > > > > > CommuniGate(tm) Pro* > > > > > The driver for PostGRESQL is there in > > > > PCQuest. I > > > > > have seen it but > > > > > have not used it. It would be better if you > search > > > > for > > > > > "postgresql.jar" > > > > > file on google.com. Put it somewhere in some > > > > directory > > > > > and add it to the > > > > > CLASSPATH. It should work. It works on my PC!! > > > > > > > > > > -------Jayant > > > > > > > > > > At 11:31 AM 7/11/00 +0530, you wrote: > > > > > >hi all, > > > > > > I tried the jdbc connection to the > PostGRESQL > > > > > server. > > > > > >The HOWTO says that u will have a file called > > > > > Postgresql.jar > > > > > >,which you have to export to ur classpath. > > > > > >I didn't find such a file anywhere in my > > > > installation. > > > > > >When i run the program i get an exception that > > > > the > > > > > >driver is not found but the docs says u do have > a > > > > driver > > > > > >shipped with the PostGresql package. > > > > > >I installed all the postgresql > > > > > packages(jdbc,perl,phython,tcl,etc).Also > > > > > >i found the > > > > > >perl example working very well. > > > > > >Any pointers,help. > > > > > >Thanx in advance > > > > > >vinu > > > > > > > > > > > > > > > > > > > > > > > > >----------------------------------------------------------------------- > > > > > >LIP is all for free speech. But it was created > > > > for a > > > > > purpose - to help > > > > > >people discuss technical programming related > > > > issues > > > > > about Linux. If > > > > > >your messages are counterproductive to this > > > > purpose, > > > > > your privileges to > > > > > >submit messages can and will be revoked. > > > > > > > > > > > > > > > > > > > > > > ----------------------------------------------------------------------- > > > > > The LIP mailing list archives are available at: > > > > > > > > > > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > > > > > > > > > > ----------------------------------------------------------------------- > > > > The LIP mailing list archives are available at: > > > > > > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Get Yahoo! Mail ­ Free email you can access from > > > anywhere! > > > http://mail.yahoo.com/ > > > > > > ----------------------------------------------------------------------- > > > LIP is all for free speech. But it was created for a > > > purpose - to help > > > people discuss technical programming related issues > about > > > Linux. If > > > your messages are counterproductive to this purpose, > your > > > privileges to > > > submit messages can and will be revoked. > > > > > >----------------------------------------------------------------------- > >For more information on the LIP mailing list see: > >http://lists.linux-india.org/lists/LIP > > --------Jayant > > Take a look at my website over > here ..... > > > ---------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Mon Jul 24 21:50:13 2000 Received: from sce.ac.in (unknown [202.54.71.34]) by www.aunet.org (Postfix) with ESMTP id 0BB153807B for ; Mon, 24 Jul 2000 21:49:56 -0700 (PDT) Received: from [202.54.71.40] (account ) by sce.ac.in (CommuniGate Pro WebUser 3.1) with HTTP id 2300239 for ; Tue, 25 Jul 2000 10:25:28 +0530 From: "Linux List " Subject: Re: pics in MySQL To: linux-india-programmers@lists.linux-india.org X-Mailer: CommuniGate Pro Web Mailer v.3.1 Date: Tue, 25 Jul 2000 10:25:28 +0530 Message-ID: In-Reply-To: <200007180900.OAA01976@linux.wiplash.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200007/173 hi I found how to do it in PostGRESQL in that statements like lo_import and lo_export are use to store and retrive images to a database. The large object is called Oid. vinu On Tue, 18 Jul 2000 14:24:55 +0500 deepak yadav wrote: > *This message was transferred with a trial version of > CommuniGate(tm) Pro* > hi > i found out how to do that in mysql. use following sql > statement for mysql , it may work for u > > UPDATE table_name SET blob_column=LOAD_FILE("/tmp/picture") > WHERE id=1; > > __________ > deepak > > At 7/18/00 1:20:00 PM, you wrote: > >Do you have any examples on how to store an image in > >binary form.The GUI i am using is Java(jdbc connection) > >so tell me how to connect and store the image in > >db. > >vinu > >On Tue, 18 Jul 2000 11:46:27 +0530 > > Paramdeep Singh > wrote: > >> *This message was transferred with a trial version of > >> CommuniGate(tm) Pro* > >> Yes > >> you do have in Oracle. > >> > >> and exact way of storing depends on the version you > are > >> using of oracle. > >> > >> The oldest available oracle version shall support > >> LongRaw(upto 2G) binary > >> dat. > >> and 8 ,8i have sepcial facilities for storing > multimedia > >> content > >> > >> Param > >> > >> > >> > >> -----Original Message----- > >> From: Linux List [mailto:linux-prog@sce.ac.in] > >> Sent: Tuesday, July 18, 2000 11:45 AM > >> To: linux-india-programmers@lists.linux-india.org > >> Subject: Re: [LIP] pics in MySQL > >> > >> > >> hi > >> Wanted to ask the same.U have some think like that > in > >> Oracle.Do you have somethink like that for PostGRESQl. > >> I want to store the images in binary form in the > >> database. > >> vinu > >> > >> On Sat, 17 Jun 2000 10:32:27 +0530 > >> "Muthu" wrote: > >> > *This message was transferred with a trial version > of > >> > CommuniGate(tm) Pro* > >> > Hai deepak, > >> > > >> > Use Blob data type to store images.One way of > >> > updating the image in > >> > datafield is , Open the image file and read chunks > of > >> > bytes (say 1024) and > >> > update the blob datafield. > >> > > >> > i hope the above information will help you > >> > > >> > with regards > >> > Muthukumar > >> > > >> > > hi > >> > > i want to store pictures in MySQL database. what > kind > >> > of data type is to > >> > be used. and how to go about storing it . > >> > > please help . a small code would be very helpful. > >> > > > >> > > reply soon > >> > > bye > >> > > > >> > > __ deepak __ > >> > > > >> > > have a great day > >> > > ICQ 30662394 > >> > > > >> > > -- Try not to let implementation details sneak > into > >> > design documents. > >> > > > >> > > > >> > > ----------------------------------------------------------------------- > >> > > The LIP mailing list archives are available at: > >> > > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > >> > > >> > > >> > ----------------------------------------------------------------------- > >> > For more information on the LIP mailing list see: > >> > http://lists.linux-india.org/lists/LIP > >> > >> > >> ----------------------------------------------------------------------- > >> For information on this and other Linux India mailing > >> lists check out > >> http://lists.linux-india.org/ > >> > >> ----------------------------------------------------------------------- > >> For more information on the LIP mailing list see: > >> http://lists.linux-india.org/lists/LIP > > > > > >----------------------------------------------------------------------- > >The LIP mailing list archives are available at: > >http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers > > > > > > ----------------------------- > reply soon > bye > > __ deepak __ > > have a great day > ICQ 30662394 > > -- No program done by an undergrad will work after she > graduates. > > > ----------------------------------------------------------------------- > The LIP mailing list archives are available at: > http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers From linux-india-programmers-owner@lists.linux-india.org Mon Jul 24 22:00:44 2000 Received: from accord-soft.com (unknown [164.164.69.252]) by www.aunet.org (Postfix) with ESMTP id D1DD138083 for ; Mon, 24 Jul 2000 22:00:22 -0700 (PDT) Received: from accord-soft.com (R.k.patil [192.168.1.15]) by accord-soft.com (8.9.3/8.9.3) with ESMTP id KAA09229 for ; Tue, 25 Jul 2000 10:23:02 +0530 Message-ID: <397D1D2C.A89C4A8A@accord-soft.com> Date: Tue, 25 Jul 2000 10:23:01 +0530 From: RK Patil Organization: Accord Software & Systems Pvt. Ltd. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: LIP Subject: RT -Linux Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/174 Hi, can any one provide me pointers to Real Time Linux. I am a beginner to this topic & would like to download the material on this topic. Also are there any mailing-lists dedicated for real-time linux/ --TIA, rk From linux-india-programmers-owner@lists.linux-india.org Mon Jul 24 22:09:48 2000 Received: from www.cdfd.org.in (unknown [202.54.67.145]) by www.aunet.org (Postfix) with ESMTP id 1B14838120 for ; Mon, 24 Jul 2000 22:09:32 -0700 (PDT) Received: from localhost (indraneel@localhost) by www.cdfd.org.in (980427.SGI.8.8.8/970903.SGI.AUTOCF) via SMTP id KAA85185 for ; Tue, 25 Jul 2000 10:45:08 -0700 (PDT) Date: Tue, 25 Jul 2000 10:45:08 -0700 (PDT) From: Indraneel Majumdar To: LIP Subject: Re: RT -Linux In-Reply-To: <397D1D2C.A89C4A8A@accord-soft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 200007/175 Do a "real time linux" search at www.linux.org On Tue, 25 Jul 2000, RK Patil wrote: > Hi, > can any one provide me pointers to Real Time Linux. I am a beginner to > this topic & would like to download the material on this topic. Also are > there any mailing-lists dedicated for real-time linux/ >=20 > --TIA, > rk >=20 >=20 > ---------------------------------------------------------------------- > An alpha version of a web based tool to manage your=20 > subscriptions with this majordomo2 server is available > at http://lists.linux-india.org/cgi-bin/mj_wwwusr >=20 /************************************************************************. # Indraneel Majumdar =A1 E-mail: indraneel@123india.com # # Bioinformatics Unit (EMBNET node), =A1 URL: http://scorpius.iwarp.com # # Centre for DNA Fingerprinting and Diagnostics, # # Hyderabad, India - 500076 # `************************************************************************/ From linux-india-programmers-owner@lists.linux-india.org Mon Jul 24 22:29:35 2000 Received: from agni.wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by www.aunet.org (Postfix) with ESMTP id C723A38231 for ; Mon, 24 Jul 2000 22:29:28 -0700 (PDT) Received: from vayu.wipinfo.soft.net (vayu [192.168.200.170]) by agni.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id KAA11136 for ; Tue, 25 Jul 2000 10:55:18 +0500 (GMT) Received: from sarovar.mail.wipro.com ([192.168.2.18]) by vayu.wipinfo.soft.net (8.9.3/8.9.3) with ESMTP id KAA04125 for ; Tue, 25 Jul 2000 10:57:54 +0500 (GMT) Received: from yaksha.wipinfo.soft.net ([192.168.2.78]) by sarovar.mail.wipro.com (Netscape Messaging Server 3.6) with ESMTP id AAA701C; Tue, 25 Jul 2000 10:58:58 +0530 Date: Tue, 25 Jul 2000 11:11:06 +0530 (IST) From: "Sharad Joshi" X-Sender: sharadj@yaksha.wipinfo.soft.net Reply-To: Sharad Joshi To: RK Patil Cc: LIP Subject: Re: RT -Linux In-Reply-To: <397D1D2C.A89C4A8A@accord-soft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/176 On Tue, 25 Jul 2000, RK Patil wrote: + can any one provide me pointers to Real Time Linux. I am a beginner to + this topic & would like to download the material on this topic. Also are + there any mailing-lists dedicated for real-time linux/ http://www.rtlinux.org Sharad. From linux-india-programmers-owner@lists.linux-india.org Mon Jul 24 23:46:01 2000 Received: from linux1 (unknown [203.199.194.1]) by www.aunet.org (Postfix) with SMTP id 5FCB33804E for ; Mon, 24 Jul 2000 23:45:49 -0700 (PDT) Received: from sun104 (sun104 [192.9.200.15]) by linux1 (8.6.12/8.6.9) with ESMTP id MAA04109 for ; Tue, 25 Jul 2000 12:18:11 +0530 Date: Tue, 25 Jul 2000 12:18:17 +0530 (IST) From: Nitin Kumar Gupta X-Sender: nitin@sun104 To: linux-india-programmers@lists.linux-india.org Subject: Re: select() In-Reply-To: <20000725014225.A2930@nick.nikhilwiz.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/177 Hi Nikhil Please find the reply to your queries embedded in your mail below. On Tue, 25 Jul 2000 nikhilwiz@yahoo.com wrote: > hi. can anyone tell me what's the significance of the first param of > select() - nfds. when we're passing the fds to be watched anyway thru > FD_SET(). looking at the kernel source (2.4.0-test2), in do_select(), > there is a loop from 0 to nfds, checking _every_ fd. Is this > necessary, even when the fds to be watched are explicitly provided by > FD_SET()? yes, the first argument is very important. This is the only way to know how many members are there in the fd_set array you have provided. Please note, in C (unlike java) there is no function call that will give you the number of elements in the array, when the array is passed as an argument. It may lead to memory violation. Consider this piece of code: int arr[10]; main() { int i; for (i=0;i<12;i++) print ("%d\n", arr[i]); } This will lead to unpredictable values for the last two iterations. Remember the arguments of the main() function?? argc and argv here argc is the count of the number of elements in argv[] > > set_current_state(TASK_INTERRUPTIBLE); > > at /usr/src/linux/fs/select.c:193 do_select() > > this saves a little loss of face, but i still dont get the point > behind looping thru all the fds. If i wanted to watch 2 fds with > comparitively high margin between them, select() would loop > unnecessarily thru the intermediary fds, which seems like a waste of > time to me. plz. tell me if i'm wrong somewhere... Don't have the sources at hand, so can't comment on this one right now. ~Nitin > > Nikhil. > > ---------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ > _____/~-=##=-~\_____ -=+0+=-< Nitin Kumar Gupta >-=+0+=- ~~~~~\_-=##=-_/~~~~~ From linux-india-programmers-owner@lists.linux-india.org Tue Jul 25 00:16:41 2000 Received: from arianne.ishoni.com (unknown [164.164.83.132]) by www.aunet.org (Postfix) with ESMTP id 26DD63802E for ; Tue, 25 Jul 2000 00:16:23 -0700 (PDT) Received: from localhost (kedar@localhost) by arianne.ishoni.com (8.9.3/8.9.3) with ESMTP id MAA26486 for ; Tue, 25 Jul 2000 12:49:18 +0530 X-Authentication-Warning: arianne.ishoni.com: kedar owned process doing -bs Date: Tue, 25 Jul 2000 12:49:18 +0530 (IST) From: Kedar Patankar To: linux-india-programmers@lists.linux-india.org Subject: Re: select() In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/178 Hi, > yes, the first argument is very important. This is the only way to know > how many members are there in the fd_set array you have provided. Please That is not so. When you declare an fd_set, there is no way to set its size. I haven't checked the size of it yet, but fd_set is implemented as an array of ints internally. The first argument is basically an optimization, to avoid having to look at all the bits in the fd_sets. An unfortunate side effect is that if you have only a few fds with big difference between their "integer" values, then the kernel ends up scanning a lot of "fd-space". > > unnecessarily thru the intermediary fds, which seems like a waste of > > time to me. plz. tell me if i'm wrong somewhere... What do you think can be the other solution? Accept an "array of integers, with each integer representing an fd to be watched"?? That would require moving *enormous* amounts of data across the kernel/user space for the fd_set. Right now, in each of the fd_set, each bit represents whether the corrosponding fd should be watched for the necessary condition. When you move from the fd_set to a new scheme with an array of fds (int), to be passed to select you have to move 32 times as much data across the user/kernel space when you call select. And on a busy web/proxy server, you can easily have tens of thousands of sockets to watch for, making the amount of data to be moved across for each socket expressed as an int (in the scheme you seem to propose) rather than as a bit in the current scheme, really enormous.. Compared to that the current scheme is pretty OK. Its a classic time/space trade-off. Regards, Kedar. From linux-india-programmers-owner@lists.linux-india.org Tue Jul 25 08:10:47 2000 Received: from cs3.hyd.office.juno.com (cs3.hyd.office.juno.com [208.238.62.6]) by www.aunet.org (Postfix) with ESMTP id 3B1B53809A for ; Sat, 22 Jul 2000 11:23:58 -0700 (PDT) Received: (from sureshr@localhost) by cs3.hyd.office.juno.com (8.8.6.Beta0/8.8.7/juno-1.1) id XAAAA28202 for linux-india-programmers@lists.linux-india.org; Sat, 22 Jul 2000 23:53:51 +0530 (IST) X-Authentication-Warning: cs3.hyd.office.juno.com: sureshr set sender to sureshr@staff.juno.com using -f Date: Sat, 22 Jul 2000 23:53:51 +0530 From: Suresh Ramasubramanian To: linux-india-programmers@lists.linux-india.org Subject: Re: [LIH] Web-Hosting Control Panel type application through scripting... Message-ID: <20000722235351.A28197@staff.juno.com> Reply-To: Suresh Ramasubramanian Mail-Followup-To: linux-india-programmers@lists.linux-india.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from sk@pobox.com on Sat, Jul 22, 2000 at 11:52:30PM +0000 Organization: Juno Abuse Desk X-Files: Great Show X-Terminate: M$ X-Archive-Number: 200007/179 On 22/07/00 23:52 +0000, Sanjay Arora spewed into the LI bitstream: > Anyone know of anyone having created a script based application providing > services similar to the web based control panels being provided by > web-hosting companies nowadays? Webmin (and lots more) -- Suresh Ramasubramanian + sureshr@staff.juno.com Important letters which contain no errors will develop errors in the mail. Corresponding errors will show up in the duplicate while the Boss is reading it. From linux-india-programmers-owner@lists.linux-india.org Tue Jul 25 08:11:26 2000 Received: from smtp.mail.yahoo.com (smtp.mail.yahoo.com [128.11.68.32]) by www.aunet.org (Postfix) with SMTP id 90A1B38090 for ; Sat, 22 Jul 2000 18:23:19 -0700 (PDT) Received: from unknown (HELO yahoo.com) (203.197.209.217) by smtp.mail.yahoo.com with SMTP; 21 Jul 2000 14:08:17 -0000 X-Apparently-From: Message-ID: <39785923.1F8C7DE7@yahoo.com> Date: Fri, 21 Jul 2000 19:37:31 +0530 From: Pankaj Kaushal X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.15-idepci i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-delhi@lists.linux-india.org Cc: deepakyadav@india.com, linux-india-programmers Subject: Re: [linux-delhi] GUI browser with trace option. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/180 Anmol Khirbat wrote: > You need ethereal (http://ethereal.zing.org). ethereal is a sniffer with > an excellent GUI. ethereal is exactly what you want! browser with tracing i donono but ANM (Angel Network Monitor) is cool(outputs as html with color coding) www.ism.com.br/-paganini//angel or Ksniffer might also help -- Pankaj Kaushal \\|// (@ @) Ooo===================Ooo====(_)====ooO=================ooO THE LESSER-KNOWN PROGRAMMING LANGUAGES #16: C- This language was named for the grade received by its creator when he submitted it as a class project in a graduate programming class --fortune Ooo======================================================ooO |__|__| || || Ooo ooO __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From linux-india-programmers-owner@lists.linux-india.org Tue Jul 25 13:04:31 2000 Received: from nick.nikhilwiz.net (unknown [202.65.130.11]) by www.aunet.org (Postfix) with ESMTP id 0E34D38055 for ; Tue, 25 Jul 2000 13:04:13 -0700 (PDT) Received: (from nikhil@localhost) by nick.nikhilwiz.net (8.9.3/8.9.3) id BAA07649 for linux-india-programmers@lists.linux-india.org; Wed, 26 Jul 2000 01:32:21 +0530 From: nikhilwiz@yahoo.com X-Authentication-Warning: nick.nikhilwiz.net: nikhil set sender to nikhilwiz@yahoo.com using -f Date: Wed, 26 Jul 2000 01:32:21 +0530 To: linux-india-programmers@lists.linux-india.org Subject: Re: select() Message-ID: <20000726013221.C7391@nick.nikhilwiz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from kedar@ishoni.com on Tue, Jul 25, 2000 at 12:49:18PM +0530 X-Operating-System: Linux nick 2.4.0-test2-ac2 X-Archive-Number: 200007/181 On Tue, Jul 25, 2000 at 12:49:18PM +0530, Kedar Patankar wrote: > That is not so. When you declare an fd_set, there is no way to set its > size. I haven't checked the size of it yet, but fd_set is implemented > as an array of ints internally. > yeah... its implemented as an array of 1024 unsigned long ints. 1024 is the FD_SETSIZE. > The first argument is basically an optimization, to avoid having to look > at all the bits in the fd_sets. An unfortunate side effect is that if you > have only a few fds with big difference between their "integer" values, > then the kernel ends up scanning a lot of "fd-space". > i like the poll behavior better... where u specify which fds to scan and it scans those and returns on a state change. but poll is emulated thru select on some old libc's ... ( < 5.4 ?) > > > unnecessarily thru the intermediary fds, which seems like a waste of > > > time to me. plz. tell me if i'm wrong somewhere... > > What do you think can be the other solution? Accept an "array of integers, > with each integer representing an fd to be watched"?? That would require > moving *enormous* amounts of data across the kernel/user space for the > fd_set. Right now, in each of the fd_set, each bit represents whether the > corrosponding fd should be watched for the necessary condition. > makes sense. I'm afraid i didn't go thru the source too thoroughly. I just went thru it now, and i see what u see: #define __FD_SETSIZE 1024 __fd_mask __fds_bits[__FD_SETSIZE / __NFDBITS]; yeah, i guess that makes a lot of difference in speed, between a bit and byte. sounds like some of the optimisations i use in gfx... > When you move from the fd_set to a new scheme with an array of fds (int), > to be passed to select you have to move 32 times as much data across the > user/kernel space when you call select. > how is it _32_ times more data? int is only a WORD (16 bits)... ok.. if u consider setting the conditions as another 2 bits... that comes to 18. > And on a busy web/proxy server, you can easily have tens of thousands of > sockets to watch for, making the amount of data to be moved across for > each socket expressed as an int (in the scheme you seem to propose) rather > than as a bit in the current scheme, really enormous.. > agreed. wel... i didn't exactly _propose_ anything. I was just _wondering_. :) thanx for clearing that up for me. That apart, i dunno if its a bug, but when i have 2 sockets open, and i run select() on them, select is able to detect only the state change of the first socket, and is failing to detect a read condition on the second one. poll() works fine with them tho. I'm using 2.4.0-test2-ac2 (on Slackware 7, which i dont think makes any difference, as the calls are implemented in the kernel). I'm not too sure i shud report it as a bug... Nikhil. From linux-india-programmers-owner@lists.linux-india.org Tue Jul 25 20:56:49 2000 Received: from arianne.ishoni.com (unknown [164.164.83.132]) by www.aunet.org (Postfix) with ESMTP id AA85538078 for ; Tue, 25 Jul 2000 20:56:41 -0700 (PDT) Received: from localhost (kedar@localhost) by arianne.ishoni.com (8.9.3/8.9.3) with ESMTP id JAA21396 for ; Wed, 26 Jul 2000 09:29:32 +0530 X-Authentication-Warning: arianne.ishoni.com: kedar owned process doing -bs Date: Wed, 26 Jul 2000 09:29:31 +0530 (IST) From: Kedar Patankar To: linux-india-programmers@lists.linux-india.org Subject: Re: select() In-Reply-To: <20000726013221.C7391@nick.nikhilwiz.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/182 > how is it _32_ times more data? int is only a WORD (16 bits)... ok.. if u > consider setting the conditions as another 2 bits... that comes to 18. On all 32 bit processors, int is a 32 bit quantity. And there is no need for "setting conditions", as you pass *3* separate fd_set s to the select call. Ofcourse now that makes 3 bits per fd, 1 bit more than "2 bits for setting conditions", but that is how it is. > That apart, i dunno if its a bug, but when i have 2 sockets open, and i run > select() on them, select is able to detect only the state change of the first > socket, and is failing to detect a read condition on the second one. poll() works I think the fact that you are using a development kernel may be the reason. AFAIR, select and poll are implemented as separate functions within the kernel (do_select and do_poll). However the drivers only have one entry point for both do_select and do_poll. My suggestion is try using a stable kernel - but in any case it may be a good idea to post a bug_report/query to the kernel guys about this peculiar behavior of 2.4.0-test2-whatever. Kedar. From linux-india-programmers-owner@lists.linux-india.org Wed Jul 26 22:38:29 2000 Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by www.aunet.org (Postfix) with ESMTP id B1E4238057 for ; Wed, 26 Jul 2000 22:38:21 -0700 (PDT) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id WAA08048 for linux-india-programmers@lists.linux-india.org; Wed, 26 Jul 2000 22:37:50 -0700 Date: Wed, 26 Jul 2000 22:37:50 -0700 From: Arun Sharma To: linux-india-programmers@lists.linux-india.org Subject: Re: select() Message-ID: <20000726223750.A8011@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from kedar@ishoni.com on Tue, Jul 25, 2000 at 12:49:18PM +0530 X-Archive-Number: 200007/183 On Tue, Jul 25, 2000 at 12:49:18PM +0530, Kedar Patankar wrote: > What do you think can be the other solution? Accept an "array of integers, > with each integer representing an fd to be watched"?? That would require > moving *enormous* amounts of data across the kernel/user space for the > fd_set. Right now, in each of the fd_set, each bit represents whether the > corrosponding fd should be watched for the necessary condition. See the discussion at: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=938990+0+archive/1999/freebsd-hackers/19990704.freebsd-hackers select: widely used poll: allegedly faster and cleaner Yahoo/Filo suggestion, implemented by Jonathan Lemon is even better: http://www.flugsvamp.com/~jlemon/fbsd/ -Arun From linux-india-programmers-owner@lists.linux-india.org Wed Jul 26 23:04:48 2000 Received: from arianne.ishoni.com (unknown [164.164.83.132]) by www.aunet.org (Postfix) with ESMTP id 495293815E for ; Wed, 26 Jul 2000 23:04:36 -0700 (PDT) Received: from kedar.in.ishoni.com (IDENT:kedar@kedar.in.ishoni.com [192.168.1.75]) by arianne.ishoni.com (8.9.3/8.9.3) with ESMTP id LAA30682 for ; Thu, 27 Jul 2000 11:37:22 +0530 Date: Thu, 27 Jul 2000 11:41:30 +0530 (IST) From: Kedar Patankar X-Sender: kedar@kedar.in.ishoni.com To: linux-india-programmers@lists.linux-india.org Subject: Re: select() In-Reply-To: <20000726223750.A8011@sharmas.dhs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/184 > Yahoo/Filo suggestion, implemented by Jonathan Lemon is even better: > http://www.flugsvamp.com/~jlemon/fbsd/ I read the stuff, it is definitely interesting. Looks similar to the i/o completion ports on NT?? Or am I missing some important point??? Regards, Kedar. ---------------------------------------------------------------- Kedar N. Patankar. Senior Software Engineer. ishoni Networks ...Broadband for everyone http://www.ishoni.com email - kedar@ishoni.com Phone: +91-80-2292125 (Work) Fax: +91-80-2995545 (Work) ---------------------------------------------------------------- Be regular and orderly in your life, so that you may be violent and original in your work. From linux-india-programmers-owner@lists.linux-india.org Thu Jul 27 03:27:59 2000 Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by www.aunet.org (Postfix) with ESMTP id 4A5A2380EF for ; Thu, 27 Jul 2000 03:27:52 -0700 (PDT) Received: from hpuxsrv.india.hp.com (hpuxsrv.india.hp.com [15.10.45.132]) by palrel3.hp.com (Postfix) with ESMTP id E10C94A for ; Thu, 27 Jul 2000 03:27:49 -0700 (PDT) Received: from india.hp.com (nt4175.india.hp.com [15.10.41.75]) by hpuxsrv.india.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.8.6 SMKit7.02) id PAA21150 for ; Thu, 27 Jul 2000 15:57:02 +0530 (IST) Message-ID: <39800E93.C7D4C2B0@india.hp.com> Date: Thu, 27 Jul 2000 15:57:32 +0530 From: "Satheesh Kumar. N.K" Organization: Hewlett-Packard, India Software Operations X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: "linux-india-programmers@lists.linux-india.org" Subject: In-built VGA card not recognized Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/185 Hi, I'm trying to install Linux on Intel 810 chipset based mother board with in-built Graphics Adapter. I'm using RedHat 6.2. I'm unable to run X-windows applications effectively because X is taking a default in-built resolution of 320x200, most likely because it is unable to recognise the Graphics Adapter. I ran Xprobe and it says no Graphics Card is detected. Any inputs? Thanks in advance. Satheesh From linux-india-programmers-owner@lists.linux-india.org Thu Jul 27 03:57:56 2000 Received: from mail.plasma.ernet.in (unknown [202.144.20.163]) by www.aunet.org (Postfix) with ESMTP id 79BB438054 for ; Thu, 27 Jul 2000 03:57:16 -0700 (PDT) Received: from sun4.plasma.ernet.in (sun4.plasma.ernet.in [202.41.114.4]) by mail.plasma.ernet.in (8.9.3/8.9.3) with SMTP id MAA26559 for ; Thu, 27 Jul 2000 12:44:49 +0530 Received: from sun1.plasma.ernet.in by sun4.plasma.ernet.in (SMI-8.6/SMI-SVR4) id QAA08000; Thu, 27 Jul 2000 16:31:12 -0500 Received: from localhost by sun1.plasma.ernet.in (8.9.1b+Sun/SMI-SVR4) id QAA29570; Thu, 27 Jul 2000 16:31:11 -0500 (GMT) Date: Thu, 27 Jul 2000 16:31:11 -0500 (GMT) From: Vivek Sharma To: "linux-india-programmers@lists.linux-india.org" Subject: Re: In-built VGA card not recognized In-Reply-To: <39800E93.C7D4C2B0@india.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200007/186 Hello Satheesh, RedHat 6.2 don't have any inbuilt support for i810 MB. So, you have to download i810 graphics driver and the X-Server for i810 from www.intel.com. There you have to go through intel forums where you will get the link to the solutions. I hope this will suffice for your solution. regards, vivek On Thu, 27 Jul 2000, Satheesh Kumar. N.K wrote: > Date: Thu, 27 Jul 2000 15:57:32 +0530 > From: Satheesh Kumar. N.K > Reply-To: linux-india-programmers@lists.linux-india.org > To: "linux-india-programmers@lists.linux-india.org" > Subject: [LIP] In-built VGA card not recognized > > Hi, > > I'm trying to install Linux on Intel 810 chipset based mother board > with in-built Graphics Adapter. I'm using RedHat 6.2. > I'm unable to run X-windows applications effectively because > X is taking a default in-built resolution of 320x200, most likely > because it is unable to recognise the Graphics Adapter. > I ran Xprobe and it says no Graphics Card is detected. > Any inputs? > > Thanks in advance. > Satheesh > > > ---------------------------------------------------------------------- > For information on this and other Linux India mailing lists check out > http://lists.linux-india.org/ > From linux-india-programmers-owner@lists.linux-india.org Thu Jul 27 05:49:51 2000 Received: from eth.net (unknown [202.9.145.10]) by www.aunet.org (Postfix) with ESMTP id DE7703805D for ; Thu, 27 Jul 2000 05:49:37 -0700 (PDT) Received: from eth.net ([10.2.1.41]) by eth.net with Microsoft SMTPSVC(5.5.1877.117.11); Thu, 27 Jul 2000 16:18:36 +0530 Received: from cranks ([202.9.150.202]) by eth.net with Microsoft SMTPSVC(5.5.1877.357.35); Thu, 27 Jul 2000 16:20:30 +0530 Message-ID: <000b01bff7b9$88112a60$ca9609ca@cranks> Reply-To: "Chetan Gopal Kashinath" From: "Chetan Gopal Kashinath" To: "LIP" Subject: sharing files b/w processes Date: Thu, 27 Jul 2000 16:26:00 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-Archive-Number: 200007/187 hi all, there is a necessity to share files among prscesses. but there are a few issues 1. process A has its euid set to a 2. process B has its set-u-id bit set 3. process A calls process B for a file to be read ( which it cant as a doesnt have read permission ) 4. process B reads the file ( after authenticating real uid ) and wants to pass iton to process A is the best way to do by storing the file temporarily and process A reads it and immediately destroys it..... thank you - chetu From linux-india-programmers-owner@lists.linux-indi