Linux-Misc Digest #609, Volume #25 Tue, 29 Aug 00 09:13:02 EDT
Contents:
Re: Pro*C ([EMAIL PROTECTED])
Re: Restaurant Booking System ("Colin McKinnon - No Spam please")
Re: capture screen output during booting (Jean-Serge Gagnon)
Re: Linux, XML, and assalting Windows ("paul snow")
Re: what to choose ("Sjoerd Langkemper")
Re: Linux, XML, and assalting Windows ("paul snow")
Script from crontab doesn't work. ("Sjoerd Langkemper")
Newbie: Problems with DOSEMU (Ric Foxall)
tsx-11? (-ljl-)
Re: Mass (non-spam) e-mail solution (Edwin Johnson)
Re: Linux question: sound devices and multiple sound files (Dave Phillips)
Re: sound ?? (Dave Phillips)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Pro*C
Date: Tue, 29 Aug 2000 10:58:38 GMT
Thanks for the first valid answer to this question. It looks like this
code calls some IBM specific stuff which won't help me however, at least
I don't think it will. The gererated code looks something like the code
generated by the Pro*C precompiler.
I do appreciate the response however, it is up to the standards of this
group which the previous responses were not.
Thanks,
Carson
In article <[EMAIL PROTECTED]>,
Jean-David Beyer-valinux <[EMAIL PROTECTED]> wrote:
> mst wrote:
>
> > [EMAIL PROTECTED] wrote:
> > >
> > > cpp is the C++ compiler, Pro*C is a precompiler that does embedded
sql
> > > code for c and cpp
> > >
> >
> > Maybe in windoze it is, but in Linux, cpp is the "c pre-processor".
The
> > C++ compiler is g++. Check the man page for cpp. I don't know if it
will
> > work with the sql code.
> >
> > MST
>
> cpp and g++ do not handle SQL directly. What I do is have makefiles
that
> look like this (in part):
>
> .cc.o:
> ${CXX} -c ${CXX_FLAGS} ${CXX_INCLUDES} $<
>
> .C.o:
> ${CXX} -c ${CXX_FLAGS} ${CXX_INCLUDES} -I${IBM_DB2_HEADERS} $<
>
> .sqC.C:
> ${IBM_DB2_DB2} CONNECT TO stock
> ${IBM_DB2_DB2} PREP $< DEGREE 1 ISOLATION RS PREPROCESSOR \"g++ -x
c++ -o
> $*.i -E -P ${CXX_INCLUDES} -I${IBM_DB2_HEADERS}\" bindfile
> ${IBM_DB2_DB2} BIND $*.bnd
> ${IBM_DB2_DB2} DISCONNECT stock
> ${IBM_DB2_DB2} TERMINATE
>
> This is for the IBM db2 dbms that has embedded SQL in the C++
programs.
> Those programs have suffixes .sqC. The third bunch of stuff talks to
db2
> and executes commands in that. It runs the C++ preprocessor and one of
its
> own (I forget in which order), and makes a file that the C++ can read
with
> suffix .C. The second bunch of stuff can convert .C files into .o
files.
> The first bunch is for my normal C++ files that have suffix .cc. I am
sure
> IBM would not have put this capability into their db2 programif the
C++
> compiler could do it all by itself. But the C++ standard does not have
> anything about SQL in it, and it never sees the SQL statements.
>
> It turns a C++ program with embedded SQL statements that looks
something
> like this:
>
> EXEC SQL
> DECLARE ugCursor CURSOR FOR
> SELECT I.ibd_company_id, T.tick_symbol,
> I.ibd_eps, I.ibd_rs, I.ibd_acc_dst
> FROM vl_ranks V, ibd I, tick T
> WHERE V.vl_timeliness = 1
> AND V.vl_date = :ad_f_date
> AND :ad_f_date <= I.ibd_date
> AND I.ibd_date < :ad_l_date
> AND I.ibd_company_id = V.vl_company_id
> AND I.ibd_company_id = T.tick_company_id
> AND T.tick_f_date <= :ad_f_date
> AND :ad_f_date <= T.tick_l_date
> ORDER BY I.ibd_eps DESC, I.ibd_rs DESC, I.ibd_acc_dst
> FOR READ ONLY
> OPTIMIZE FOR 5 ROWS;
>
> into something like this:
>
> {
> #line 10926 "ugDerived.i"
> sqlastrt(sqla_program_id, &sqla_rtinfo, &sqlca);
> #line 10926 "ugDerived.i"
> sqlaaloc(2,5,2,0L);
> {
> struct sqla_setd_list sql_setdlist[5];
> #line 10926 "ugDerived.i"
> sql_setdlist[0].sqltype = 460; sql_setdlist[0].sqllen = 11;
> #line 10926 "ugDerived.i"
> sql_setdlist[0].sqldata = (void*)ad_f_date;
> #line 10926 "ugDerived.i"
> sql_setdlist[0].sqlind = 0L;
> #line 10926 "ugDerived.i"
> sql_setdlist[1].sqltype = 460; sql_setdlist[1].sqllen = 11;
> #line 10926 "ugDerived.i"
> sql_setdlist[1].sqldata = (void*)ad_f_date;
> #line 10926 "ugDerived.i"
> sql_setdlist[1].sqlind = 0L;
> #line 10926 "ugDerived.i"
> sql_setdlist[2].sqltype = 460; sql_setdlist[2].sqllen = 11;
> #line 10926 "ugDerived.i"
> sql_setdlist[2].sqldata = (void*)ad_l_date;
> #line 10926 "ugDerived.i"
> sql_setdlist[2].sqlind = 0L;
> #line 10926 "ugDerived.i"
> sql_setdlist[3].sqltype = 460; sql_setdlist[3].sqllen = 11;
> #line 10926 "ugDerived.i"
> sql_setdlist[3].sqldata = (void*)ad_f_date;
> #line 10926 "ugDerived.i"
> sql_setdlist[3].sqlind = 0L;
> #line 10926 "ugDerived.i"
> sql_setdlist[4].sqltype = 460; sql_setdlist[4].sqllen = 11;
> #line 10926 "ugDerived.i"
> sql_setdlist[4].sqldata = (void*)ad_f_date;
> #line 10926 "ugDerived.i"
> sql_setdlist[4].sqlind = 0L;
> #line 10926 "ugDerived.i"
> sqlasetd(2,0,5,sql_setdlist,0L);
> }
> #line 10926 "ugDerived.i"
> sqlacall((unsigned short)26,1,2,0,0L);
> #line 10926 "ugDerived.i"
> sqlastop(0L);
> }
>
> which, though certainly obscure, is valid C++ code that gets the job
done.
>
> --
> .~. Jean-David Beyer Registered Linux User 85642.
> /V\ Registered Machine 73926.
> /( )\ Shrewsbury, New Jersey
> ^^-^^ 9:05pm up 20 days, 4:34, 1 user, load average: 0.99, 0.97, 0.91
>
>
--
Carson R. Wilcox
Senior Architect
DMR Consulting Group
[EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Reply-To: "Colin McKinnon - No Spam please" <colin (at) wew (dot) co (dot) uk>
From: "Colin McKinnon - No Spam please" <colin (at) wew (dot) co (dot) uk>
Crossposted-To: alt.os.linux,alt.os.linux.suse,comp.os.linux.setup,uk.comp.os.linux
Subject: Re: Restaurant Booking System
Date: Tue, 29 Aug 2000 09:34:10 +0100
Richard Watson <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> "Darren Paxton" <[EMAIL PROTECTED]> writes:
> > Apologies for cross-posting, but I felt the need to do this in order to
gain
> > the greatest level of responses from the Linux Users.
> > I work for a restaurant chain based in Glasgow, Scotland, and we would
like
> > to introduce some form of online restaurant booking system to our
website.
Have you looked at MRBS? It does most of what you want, AIR is GPL. Its
written in PHP and looks quite nice. If you can make it to the Slug meet at
Borders Bookshop on Thurs I'll be proving how little I know about PHP by
giving a short presentation.
HTH
Colin
------------------------------
From: Jean-Serge Gagnon <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.os.linux.setup
Subject: Re: capture screen output during booting
Date: Tue, 29 Aug 2000 11:57:31 GMT
MH wrote:
> WesRight wrote:
> > mikey wrote:
> > > Is there a way to capture screen output from the kernel during
> > > booting ??
> > When the bootup is complete and you're sitting at the login prompt, hit
> > the right <shift> and <pg-up> or <pg-down>. It must be the right shift
> > key and then page-up or down will scroll all the way back to the beginning
> > of the boot process.
> Now that's cool. There have been many times when that little trick
> would have come in handy.
Try this if you need to capture the current contents of /dev/tty1. You
may want to capture the lines just before the screen clears by putting
this in your /etc/rc.d/rc.local:
dd cbs=80 conv=unblock < /dev/vcs1
I've found this very usefull when remotely accessing a machine and
needing to see what was on the console.
Of course, the other advice about the dmesg command and the SHIFT-PGUP
are great too...
--
Jean-Serge Gagnon [EMAIL PROTECTED]
Applications Director 613-225-0516
Newlix Corporation http://www.newlix.com
------------------------------
From: "paul snow" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.text.xml,comp.os.linux.setup,comp.os.linux.advocacy
Subject: Re: Linux, XML, and assalting Windows
Date: Tue, 29 Aug 2000 12:16:49 GMT
<[EMAIL PROTECTED]> wrote in message
news:8off6l$f3c$[EMAIL PROTECTED]...
>
> paul snow <[EMAIL PROTECTED]> wrote in message
> news:sjGq5.21102$[EMAIL PROTECTED]...
>
> > No, I did not know programs can exist without computer storage.
>
> There have been computers that have a series of SPST or SPDT toggle
switches
> to provide the bits for the processors word size another series of toggle
> switches to provide the bits for the address bus. As well as a few
switches
> to control the processor's operating mode, such as run or pause, and a few
> SPST or SPDT push button switches for thing like execute and load. In
> general there were light, often light emitting diodes that corresponded to
> the address and data toggles as well as a few statue lights.
>
> While the processor was in pause mode, you could set the toggles into
their
> on or off positions to represent 1 and 0 bits. To bootstrap such a
> computer, since they most often did not have ROMs, you would toggle in the
> bootstrap loader program a byte at a time and writing it to the RAM by
> pushing the load (or write push button switch) when the address and data
> toggles are correctly set for that byte of the program. In some cases
> entire operating systems or other software was entered this way.
>
> With many of these systems you could also set the data toggles to the next
> byte/word of the program and press the execute push button switch without
> having to enter the byte into the computer's memory first or ever.
>
> Have you not ever encountered or heard of any of these system?
Of course. But how is the persistent state of a swich interestingly
different than storage? Or in other words, how is this computational model
significantly different than a Turing machine? (Hint: it isn't)
My statement (that storage defines the programs) is provably true. All
computation, and in fact all processes (even biological processes) can be
showed to map to what a Turing Machine can do. And the programs of a Turing
machine are defined by the tape (storage). So I can change the
implementation, and I can build radically different machines as I aim for
performance, but as long as I am doing computation, I am just building
different versions of a Turing Machine.
------------------------------
From: "Sjoerd Langkemper" <[EMAIL PROTECTED]>
Subject: Re: what to choose
Date: Tue, 29 Aug 2000 12:19:53 GMT
"André Solheim" wrote:
[which distro should i choose?]
Most of the time there's no need to post your message in more than one
newsgroup, because the real Linux experts are reading them all.
Sjoerd
------------------------------
From: "paul snow" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.text.xml,comp.os.linux.setup
Subject: Re: Linux, XML, and assalting Windows
Date: Tue, 29 Aug 2000 12:22:26 GMT
Yes, the biggest problem is the interactions. If I have a set of (any sort
of structured description, so why not use, or ASOSDSWNU ) XML, why can't we
carry this XML forward to automate how we deal with them?
Another complexity is just what we install. We can use (ASOSDSWNU) XML to
help us there too.
<[EMAIL PROTECTED]> wrote in message news:8ofk4s$8vl$[EMAIL PROTECTED]...
> There's nothing magic about xml, as others have pointed out. Despite
> all the current hype, it's really just SMGL lite--25 year old
> technology chopped down to a manageable size & warmed over. The only
> reason people thinks it's hot is 'cause it has 'X' in its name.
>
> Though it's got no technical advantage over other file formats, it does
> have some value due to the hype--there's some consensus for it, so it's
> a kind of lingua franca. A big disadvantage over other formats is that
> it's so verbose--data files typically grow by an order of magnitude
> when converted to xml format.
>
> It's already being used for configuration files & deployment
> descriptors--something like what you're describing. It's descriptive
> enough & it works. I admit that I use xml frequently because, all else
> being equal, it's what everybody else thinks is new & hot & sexy. So
> people think our software is cool 'cause it use xml. & like I said,
> it's no disadvantage that it works & you can get free parsers for it
> from IBM & Sun & Oracle etc.
>
> But it doesn't solve any new problems. The biggest pain in the ass in
> installing new software on an existing system is the interaction with
> the software & hardware configuration that is already there.
> That's the tough part & xml doesn't help with that. That's the job
> that install programs do.
>
> In article <3q1p5.14319$[EMAIL PROTECTED]>,
> "paul snow" <[EMAIL PROTECTED]> wrote:
> > Here is a few observations:
> >
> > Linux on the desktop (and as a server) requires it to beat Windows
> XXX hands
> > down for ease of configuration, security, and management.
> >
> > Installing software is simply the act of constructing in storage a
> proper
> > representation of the software. In other words, our talking about
> > installing software on a computer is like a painter insisting she is
> > installing a picture of a duck onto her painting. It doesn't matter
> how she
> > does it, she is rendering the duck, not installing it.
> >
> > We need to get rid of install programs, on all platforms. There isn't
> > another single thing we do on computers that causes more in dollars
> and time
> > (Solitaire *is* a close second, however ;-).
> >
> > XML can be used to define a program in abstract. A single, separate
> > Software Rendering Facility can be used to take a program's abstract
> form in
> > XML and render it to the target computer system.
> >
> > XML can be used to capture the options required for this rendering.
> >
> > XML can be used to refer to a group of programs in abstract (XML),
> and their
> > options (XML), in order to define a single definition that can be
> expressed
> > in different ways on different computer systems to construct an
> operational,
> > distributed application. (Unlike today, where we have to install
> every web
> > server, every firewall, every Java JDK, every etc. all from scratch,
> with
> > one mistake preventing any of it from working!)
> >
> > This discussion about how XML might be used along with Linux to
> create a new
> > concept in Operating Systems is beginning. We have the technology
> and the
> > know how. We just have to take our computer system, set it on its
> side and
> > view it a bit differently. This technology is going to completely
> change
> > the rules of software configuration, management, and security, and
> you can
> > make it happen.
> >
> > http://www.egroups.com/group/xmlos/
> > http://www.egroups.com/subscribe/xmlos/
> >
> > Paul Snow
> > [EMAIL PROTECTED]
> >
> >
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: "Sjoerd Langkemper" <[EMAIL PROTECTED]>
Subject: Script from crontab doesn't work.
Date: Tue, 29 Aug 2000 12:39:12 GMT
I have a script which puts some text in a HTML file. The script runs fine
from the command line, but not from a crontab. Any suggestions?
Crontab entry:
1,31 * * * * /root/updatesjoerd.sh
Script (updatesjoerd.sh):
#!/bin/sh
NIEUWS=`/usr/bin/lynx --source http://www.webwereld.nl/shomepage.phtml |
/bin/grep kop1 | /bin/sed s/.*kop1\>//g | /bin/sed s/\<.*//g`
WEER=`/usr/bin/lynx --source http://www.knmi.nl/voorl/weer/verwachting.html
| /bin/egrep '<[pP]><[bB]>.*</[bB]>' | /bin/sed s/"<\/*.>"/""/g | /bin/sed
s/"<*.>"//g `
/bin/cat /home/sjoerd/links.tmpl | /bin/sed s/"WEBWERELDHIER"/"$NIEUWS"/ |
/bin/sed s/"WEERHIER"/"$WEER"/ > /home/sjoerd/www/favorieten.html
# /bin/echo "$NIEUWS"
# /bin/echo "$WEER"
*** END OF SCRIPT ***
How it works:
lynx gets the source of the webpage. Grep retrieves one line from it. Sed
strips the html from it. The result is stored in a variable. The variable is
put in the file favorieten.html (favorites) by substituting WEBWERELDHIER
and WEERHIER by the variables. The file links.tmpl is a template.
The crontab produces mail which says: Your terminal lacks the ability to
clear the screen or position the cursor.
On the HTML page there is nothing at the place where the news and the
weather report should be.
You can watch the page at http://213.46.19.120/~sjoerd/favorieten.html and
the template at http://213.46.19.120/~sjoerd/links.tmpl
------------------------------
From: Ric Foxall <[EMAIL PROTECTED]>
Subject: Newbie: Problems with DOSEMU
Date: Tue, 29 Aug 2000 08:49:12 -0400
Can anyone tell me what the following error message means - AND - how to
correct the problem .....
" Error in /var/lib/dosemu/global.conf: (line 476) Disk-device/file
/var/lib/dosemu//var/lib/dosemu/hdimage.first doesn't exist.
1 error(s) detected while parsing the configuration-file "
Note: the file "hdimage.first" does exist in "/var/lib/dosemu"
Thx
Ric Foxall <[EMAIL PROTECTED]>
------------------------------
From: -ljl- <[EMAIL PROTECTED]>
Subject: tsx-11?
Date: Tue, 29 Aug 2000 12:36:44 GMT
Is 'tsx-11.mit.edu' dead? I haven't been able to ftp them for
several weeks.
Thanks.
--
Louis-ljl-{ Louis J. LaBash, Jr. }
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Edwin Johnson)
Subject: Re: Mass (non-spam) e-mail solution
Reply-To: [EMAIL PROTECTED]
Date: 29 Aug 2000 12:51:39 GMT
You might want to look into qmail. I've used that for several years as a
mail agent and it reportedly has one of the fastest throughputs for mass
mailing, although I've never used it for such. If you start looking at
header information, you will find that many servers use this for mail.
...Edwin
On Mon, 28 Aug 2000 15:24:16 GMT, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>I just checked the archives and didn't see this addressed. Monthly, I'm
>responsible for sending out between six and seven thousand e-mails to
>people who've subscribed to our mailing. (It's not spam, and we follow
>all the "mass-mail" guide-lines.) I'm struggling with a good solution.
>Currently, the addresses are in an MS-Access database. I'm learning
>Linux and know it is the key to getting these sent, I just don't have
>the experience to know the best programs/procedure to get my RedHat box
>to send them for me. This last time, I managed to get SendMail running
>on it, and I just used Outlook to hand them to SendMail and they went
>from there. It felt cludgy and slow.
>
>Thoughts? It's really not necessary for people to be able to sign
>themsevles up, as most of our sign-ups come from product registrations
>where they checked, "yes, I'd like to receive ..." We handle all
>bounces manually, although that's a pain.
>
>Thanks!
>Nathan
>
>BTW-A few bonus questions. :) While sending this last mailing, my CPU
>utilization never went over 5%, and I didn't notice a slowdown in my
>internet connectivity. Is it possible to get Sendmail to "hog" the CPU
>and internet, so stuff goes faster? Will SendMail scale to use as much
>as it needs? If so, then it would be Outlook that needs to hand the
>mail off quicker right?
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Edwin Johnson ....... [EMAIL PROTECTED] ~
~ http://www.shreve.net/~elj ~
~ ~
~ "Once you have flown, you will walk the ~
~ earth with your eyes turned skyward, ~
~ for there you have been, there you long ~
~ to return." -- da Vinci ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
From: Dave Phillips <[EMAIL PROTECTED]>
Subject: Re: Linux question: sound devices and multiple sound files
Date: Tue, 29 Aug 2000 09:20:48 -0400
Neil Zanella wrote:
> A long while ago I heared that under Linux it was possible to play
> multiple mp3s _simultaneously_ by creating multiple device files or
> something like that. Is this true? If so then how can this be
> achieved?
Well, just for giggles I just now started five MP3s with separate
instances of mpg123. Worked great. I'm using the ALSA driver for a
SBLive Value. I believe that your card/driver combination will make the
difference.
Best regards,
== Dave Phillips
http://www.bright.net/~dlphilp/index.html
http://www.bright.net/~dlphilp/linuxsound/
------------------------------
From: Dave Phillips <[EMAIL PROTECTED]>
Subject: Re: sound ??
Date: Tue, 29 Aug 2000 09:26:27 -0400
Gerald Willmann wrote:
> hi there: I would like to have sound on both my linux machines (office and
> home). At home it's an ensoniq audio pci and at work a soundblaster pci
> 128. What sound driver do you recommend - alsa, oss, ...? Goal is inet
> telephony, ie duplex would be nice. Thanks,
Check this site for more information:
http://www.bright.net/~dlphilp/linuxsound/
I'd recommend the latest ALSA driver package for your purposes.
Best regards,
== Dave Phillips
http://www.bright.net/~dlphilp/index.html
http://www.bright.net/~dlphilp/linuxsound/
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.misc) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Misc Digest
******************************