Linux-Misc Digest #603, Volume #26               Thu, 21 Dec 00 11:13:03 EST

Contents:
  Re: Question About Timing Functions Under Linux (Jan Panteltje)
  Re: The disadvantage of the 'fmt' program (Bob Tennent)
  Re: Squid on Speed ("Tom Edelbrok")
  Frontpage Server Extensions ("Tom Edelbrok")
  Re: MODEM SPEED; chump kppp retarded it, no? ("Hooda Gest")
  Re: not a valid block device (glitch)
  Re: Frontpage Server Extensions (glitch)
  Re: automated file transfer between UNIX and NT (Frank da Cruz)
  Re: Frontpage Server Extensions (Big Daddy)
  Re: sendmail ("Igor Borisovsky")
  Re: How to see all the cron jobs. (LFessen106)
  init: Id"X" respawning too fast: disabled for 5 minutes; kdm: Can't lock pid file 
/var/run/xdm.pid, another xdm is running (pid 827)
  Upgrade to rpm 4.0 has problems (Chet Vora)
  Re: squid proxy server (Michael Heiming)
  Re: Streaming Windows Media ([EMAIL PROTECTED])
  Problems with sigaction ([EMAIL PROTECTED])
  Re: How to see all the cron jobs. (Dwight Tovey)
  logrotate "problems" ([EMAIL PROTECTED])
  struct source for FILE pointer (Chris Shepard)

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

From: [EMAIL PROTECTED] (Jan Panteltje)
Crossposted-To: comp.os.linux.embedded,comp.os.linux.development.apps,comp.os.linux
Subject: Re: Question About Timing Functions Under Linux
Date: Thu, 21 Dec 2000 12:19:39 GMT

On a sunny day (20 Dec 2000 22:51:13 GMT) it happened [EMAIL PROTECTED]
(Dave Blake) wrote in <[EMAIL PROTECTED]>:

>Jan Panteltje <[EMAIL PROTECTED]> wrote:
>
>> This will not work in Linux,
>> due to the multitasking environment the kernel will switch tasks every so many
>> milliseconds, and sopme preemptive stuff (like reading from disk) may cause
>> long waits.
>> maybe 'real time Linux'.
>> This sort of timers should really be done in hardware.
>> I personally think 3 mS is a bit short.
>> Anything like that I move to a dedicated processor.
>
>I wouldn't be too silly. 
>
>I run psychophysical tasks using audio under linux, and 
>with nothing else running it gets about 1 msec accuracy.
>
Then your test could be invalid.
Do you have a scope?
Try measuring the delays.
Occasionally there will be longer ones (harddisk access for example).
If you are talking critical applications and life support it is a NO NO.

Did you tweak something? I am curiuous what?
Regards
Jan
>

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

From: [EMAIL PROTECTED] (Bob Tennent)
Subject: Re: The disadvantage of the 'fmt' program
Date: 21 Dec 2000 12:22:07 GMT
Reply-To: [EMAIL PROTECTED]

On Thu, 21 Dec 2000 06:47:58 GMT, Bryan Hoyt wrote:
 >Hello,
 >      I have found a rather annoying disadvantage of the fmt program. The
 >problem lies in things like numbered lists, or a poem, or anything that
 >requires lines to end at a certain point, and a new line to start at a
 >certain point. For example: (an email header)
 >
 >From: [EMAIL PROTECTED]
 >To: [EMAIL PROTECTED]
 >Subject: Fmt prog has a bug which formats my harddrive instead of a text file
 >
 >Gets formatted to:
 >
 >From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Fmt prog has a
 >bug which formats my harddrive instead of a text file
 >
 >      I can work around specific situations like this, if I know what the
 >string at the beginning of the line is (i.e. From:, To:, and Subject:), with
 >a small script. However, I won't always, of course.
 >      After thinking for a bit, I've decided that if I could get fmt not
 >to operate on lines which are shorter than the wrap length, it would serve
 >my purpose.
 >
 >      Does anyone know of a way to get fmt to do this? Any ideas for a
 >simple script which would preprocess the file before sending it to fmt?
 >      I've also tried writing my own script to do something like what fmt
 >does, but gave up probably a bit too soon. I'll try that again too, I think.
 >Any ideas here would be appreciated too.

You should do this kind of thing in an editor, so you can select which
sections to re-format.  If you want more flexibility, you should look for
a program called par:

       par is a filter which copies its input to its output, changing all white
       characters (except newlines) to spaces, and reformatting each paragraph.
       Paragraphs  are  separated  by protected, blank, and bodiless lines (see
       the TERMINOLOGY section for definitions), and  optionally  delimited  by
       indentation (see the d option in the OPTIONS section).

       The latest release of Par is available on the Web at:

       http://www.cs.wustl.edu/~amc/Par/

Bob T.

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

From: "Tom Edelbrok" <[EMAIL PROTECTED]>
Subject: Re: Squid on Speed
Date: Thu, 21 Dec 2000 05:02:57 -0800

Have you tried the mailing lists at www.squid-cache.org?

Tom


> I am having problems with squid in httpd_accel_mode> but nothing! I get a
forwarding loop but that should not cause the problem




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

From: "Tom Edelbrok" <[EMAIL PROTECTED]>
Subject: Frontpage Server Extensions
Date: Thu, 21 Dec 2000 05:12:11 -0800

I have been checking out articles on the web regarding webserver security in
conjunction with FrontPage Server Extensions. It seems like using the
extensions is like giving someone the key to your front door. Can anyone
comment on this? Would I be better to use PHP, (I see they have a good
section in the manual for security but I don't know if that will translate
into better security). The things that would be nice to have from FrontPage
Server Extensions are the "web site search" feature and the use of forms,
(don't know if PHP does forms).

Any help appreciated - I am not an expert in this area.

Tom



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

From: "Hooda Gest" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake,comp.dcom.modems
Subject: Re: MODEM SPEED; chump kppp retarded it, no?
Date: Thu, 21 Dec 2000 08:21:02 -0500


Peter T. Breuer <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> In alt.os.linux.mandrake Dan Jacobson <[EMAIL PROTECTED]> wrote:
> > And furthermore, I noticed in kppp, gnome-ppp, and linuxconf,
> > they _assume_ that one at most would need to squeeze one line
> > of a modem initialization string into their glitzy little x-windows
>
> You do. More than one line is never necessary.
>
> > form, where as we see below that whatever win98 was using had
> > flexibility to break the initialization string into as several step
> > process, _just incase_ it might be better that way.
>
> It isn't. Change your init string as you like. "at&f1" is usually the
> best idea!

Not for all modems. That is the ideal default for USR modems but not for
many others.

>
> > Lucent Venus Serial Voice Modem
>
> A lucent? Why, that's a winmodem!

Lucent also makes hardware modems. I believe the Venus chipset is one.

>
> > Initializing modem.
> > Send: AT<cr>
> > Recv: AT<cr>
> > Recv: <cr><lf>OK<cr><lf>
> > Interpreted response: Ok
> > Send: AT &F E0 &C1 &D2 V1 S0=0\V1w0<cr>
>
> Yes, well, after the at&f0  i doubt that anything else is noticed by
> the modem. It certainly isn't noticed after atz0.

Everything after an AT&F is accepted by the modem. Always.

>
> > Recv: AT &F E0 &C1 &D2 V1 S0=0\V1w0<cr>
> > Recv: <cr><lf>OK<cr><lf>
> > Interpreted response: Ok
> > Send: ATS7=60S30=0L0M1\N3%C1&K3B0B15N1X4<cr>
>
> Eccch. Do you really need that? L0 turns off loudness. M1 turns on the
> loudspeaker. Point?

None but no harm either.

> S7 probably can be forgotten about. Read the manual yourself.

S7 is Wait for Carrier timing. 60 is usually the default.

>
> The rest isn't very interesting. The X4 is very useful.

Well, X4 simply provides the widest range of result codes.

Hooda




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

Date: Thu, 21 Dec 2000 08:51:13 -0500
From: glitch <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux
Subject: Re: not a valid block device

Even if you don't have the right options actually enabled u should still
see the IMM or PPA modules listed for the parallel port zip drive.  

Also, something which is definitely wrong and that i just noticed, you
hav a parallel port drive. That means you don't use hdd to access it.
hd* is for IDE drives, the parallel port zip drive is considered scsi,
therefore you access it using scsi devices, aka sd*

use:
mount -t vfat /dev/sda4 /mnt/zip

for some reason zip disks use the 4th partition and as long as u don't
have any other scsi devices 'a' will be the one for the zip drive.

of course, this only works once you have scsi emulation support and the
actual zip drive driver in your kernel or compiled as modules (use ppa
for old zip drives and imm for newer).

HTH


[EMAIL PROTECTED] wrote:
> 
> It doesn't even give me this option (it must be incompatibe with my
> other choices and I can't quite guess which ones)
> 
> Thanks
> 
> WRoot
> 
> In article <[EMAIL PROTECTED]>,
>   Christophe GUICHOU <[EMAIL PROTECTED]> wrote:
> >   Are "SCSI support" and "IOMEGA parallel port (imm -newer drives)"
> (in
> > "SCSI LOW Level Drivers") enabled?
> >
> > [EMAIL PROTECTED] wrote:
> >
> > > Hi,
> > >
> > > After compiling a new kernel, I get this
> > >
> > > mount: /dev/hdd4 is not a valid block device
> > >
> > > error after I do
> > >
> > > mount -t vfat /dev/hdd4 /mnt/zip
> > >
> > > I didn't find anything mentioning IOMEGA Zip drive in
> > > "make xconfig / Block Devices", so maybe I missed something.
> > >
> > > Help
> > >
> > > Sent via Deja.com
> > > http://www.deja.com/
> >
> >
> 
> Sent via Deja.com
> http://www.deja.com/

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

Date: Thu, 21 Dec 2000 09:00:54 -0500
From: glitch <[EMAIL PROTECTED]>
Subject: Re: Frontpage Server Extensions

Frontpage is made by MS. Take a wild guess at the level of security
built in.

Tom Edelbrok wrote:
> 
> I have been checking out articles on the web regarding webserver security in
> conjunction with FrontPage Server Extensions. It seems like using the
> extensions is like giving someone the key to your front door. Can anyone
> comment on this? Would I be better to use PHP, (I see they have a good
> section in the manual for security but I don't know if that will translate
> into better security). The things that would be nice to have from FrontPage
> Server Extensions are the "web site search" feature and the use of forms,
> (don't know if PHP does forms).
> 
> Any help appreciated - I am not an expert in this area.
> 
> Tom

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

From: [EMAIL PROTECTED] (Frank da Cruz)
Subject: Re: automated file transfer between UNIX and NT
Date: 21 Dec 2000 14:06:53 GMT

In article <91s8a4$gs1$[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:
: I am looking for a solution to transfer files automatically between a
: UNIX box and a NT box. These two boxes are connected through a LAN.
: Each box has two directories, inbound & outbound. Each one send the
: files in its outbound directory to another one's inbound directory.
: Does anybody know is there any shareware/freeware/third-party product
: which can meet this goal? I have not selected the UNIX  type, so any
: UNIX, Linux/HP-UX/AIX/Solaris, whatever is OK. However the  NT version
: is 4.0.  I would appreciate if somebody help.
: 
Kermit:

  http://www.columbia.edu/kermit/

You can use a Kermit-protocol approach in which a secure (or insecure if
you prefer) Internet Kermit Service Daemon:

  http://www.columbia.edu/kermit/iksd.html

is installed as an NT service, and C-Kermit is scheduled by cron in UNIX:

  http://www.columbia.edu/kermit/ckermit.html

C-Kermit is available for all versions of Linux, HP-UX, AIX, and Solaris,
as well as most other UNIXes (and other OS families such as VMS, VOS, AOS/VS).

You can also do it the other way around: IKSD on UNIX and Kermit 95:

  http://www.columbia.edu/kermit/k95.html

on NT as the client.

Or you can use C-Kermit as an automated FTP client:

  http://www.columbia.edu/kermit/ftpscript.html

Note: both the Windows IKSD and the Kermit FTP client are in prerelease
testing.

- Frank

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

From: Big Daddy <[EMAIL PROTECTED]>
Subject: Re: Frontpage Server Extensions
Date: 21 Dec 2000 14:08:34 GMT

Scribbling furiously, Tom Edelbrok managed to write....
: I have been checking out articles on the web regarding webserver security in
: conjunction with FrontPage Server Extensions. It seems like using the
: extensions is like giving someone the key to your front door. Can anyone
: comment on this? Would I be better to use PHP, (I see they have a good
: section in the manual for security but I don't know if that will translate
: into better security). The things that would be nice to have from FrontPage
: Server Extensions are the "web site search" feature and the use of forms,
: (don't know if PHP does forms).

PHP *DEFINITELY* does forms......

There are also site-searching tools available, like htdig... try
freshmeat.net.


-- 
Big Daddy

If it were truly the thought that counted, more women would be
pregnant.

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

From: "Igor Borisovsky" <[EMAIL PROTECTED]>
Subject: Re: sendmail
Date: Thu, 21 Dec 2000 17:03:45 +0300

Does anybody have a experience with Sendmail::Milter perl package?

"Igor Borisovsky" <[EMAIL PROTECTED]> wrote in message
news:3a3f11bb$[EMAIL PROTECTED]...
> Hi!
>
> Whether it is possible so to adjust sendmail, that he at transfer
> Mail changed a field " Subject: " as necessary?
>
>
>



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

From: [EMAIL PROTECTED] (LFessen106)
Date: 21 Dec 2000 14:30:04 GMT
Subject: Re: How to see all the cron jobs.

>
>Title says it all. As root I want to see all the cronjobs scheduled.
>Right now I only see root's jobs ( of which there are none ).
>Can anyone help?
>


Maybe - well, this works for me.  Not a wonderful script but it'll do in a
pinch if you can't think of anything better...  As root, run this 1 line
script...:

awk -F: '{print "crontab -u "$1 " -l"}' /etc/passwd >> seecrons

Then chmod the 'seecrons' file to be executable 'chmod +x seecrons' and then
run it './seecrons'...
This will list all the cron jobs for every user.  I suppose you could also pipe
the output of the seecrons script to a file or to the printer without much
problem - ie './seecrons | lpr'.

Hope this helps..
-Linc Fessenden


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

From: <[EMAIL PROTECTED]>
Subject: init: Id"X" respawning too fast: disabled for 5 minutes; kdm: Can't lock pid 
file /var/run/xdm.pid, another xdm is running (pid 827)
Date: Thu, 21 Dec 2000 22:32:37 +0800

Hello,

Is there anyone has idea why the above error message repeated occurs in my
/var/log/messages ?

Happy christmas,
Sze Shun Fai



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

From: Chet Vora <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,alt.linux
Subject: Upgrade to rpm 4.0 has problems
Date: Thu, 21 Dec 2000 10:05:22 -0500

Hi all,

I upgraded my rpm3.03 of RH6.2 to Rpm4.0 using gnorpm. When doing the upgrade,
it didn't complain. Now when I run gnorpm, it says -
"error in loading shared libraries: /usr/lib/librpm.so.0: undefined symbol:
ufdio"

Any pointers on what I can do. I saw people mention on here that upgrade to
3.0.5-9.6 works better - is that true ? 

Also, the reason I was trying the upgrade was that gnorpm was giving me "only
packages with major nos <= 3 are supported by this version of RPM" when trying
to install ddd3.2.1.rpm. Anyone's been able to install that successfully ?

TIA,
Chet

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

From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: squid proxy server
Date: Thu, 21 Dec 2000 17:26:07 +0100

Derek wrote:

> Well that didn't work...
> is it possible for my other linux machine to acces the proxy server that
> has an address of 24.183.219.xxx from the its own IP address of
> 192.168.0.1?
> Or is there something else in the squid conf file?
> thanks
> Derek
>

You box that is online, should have at least two IP's, the one that you get
from your ISP and it's private one
192.168.0.x, I don't know if these IP are on the same device, but that doesn't
matter.

Are you able to access your squid from the box it's running on?
Is it possible to ping the private IP of the squid box from the other boxes and
the other way?

Is routing set right? Try netstat -n  to see if the Kernel IP routing table
point to the right direction...

Try ifconfig if your devices are setup in the right way (if the netmask is OK)


>
> Michael Heiming wrote:
>
>  Hello,
>
>  no problem, just setup your squid.conf the right way and restart squid
> via
>  it's init script
>  (SuSE) /sbin/init.d/squid...
>
>  You should have some lines in squid.conf like:
>
>  acl localhost src 127.0.0.1/255.255.255.255
>  acl MyEthernet src 192.168.0.99-192.168.0.100/255.255.255.0
>  http_access allow MyEthernet
>  http_access deny all !localhost !MyEthernet
>  icp_access allow MyEthernet
>  icp_access deny all !localhost !MyEthernet
> >
> > For easy setup look out for webmin or use swat, but configure it propably,
> > to only allow access to it from one box.
> >
> > Better, read the docs that come with squid...:-)
> >
> > Good luck
> >
> > Michael Heiming
> > Sysadmin
> >
> > Derek wrote:
> >
> > > I am using a proxy server on a linux box and have a connection through a
> > > cable internet provider with a static IP. Now I am wondering if you can
> > > setup Squid proxy server to let in my computers on the home network with
> > > a different  set of ip addresses....
> > > (e.g. cable IP = 24.183.219.xxx and home IP = 192.168.0.xxx) without the
> > > use of another network card on server or router?
> > > thanks for any help.
> > > Derek

Good luck

Michael Heiming
Sysadmin
--
       __   __   __     Virtueller Bau-Markt AG
 \  / [__) [__] [ __    Meerbuscher Strasse 64
  \/  [__) |  | [_./    40670 Meerbusch
     www.vbag.de        Michael Heiming ([EMAIL PROTECTED])



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

From: [EMAIL PROTECTED]
Crossposted-To: alt.test
Subject: Re: Streaming Windows Media
Date: Thu, 21 Dec 2000 15:22:50 GMT

not if streamed. If you want to reference the files via http:// you can

We have some basic streaming media faq at
http://developer.thetuckshop.com

[EMAIL PROTECTED]

In article <3a2ade5a$0$1521$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> Is it possible to play a Windows Media stream on a Linux box?
>
> Bruce
>


Sent via Deja.com
http://www.deja.com/

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

From: [EMAIL PROTECTED]
Subject: Problems with sigaction
Date: Thu, 21 Dec 2000 15:34:17 GMT



  Hi Everyone,

  I'm having a problem with sigaction() and I'm wondering if someone can
  help.. it will be appreciated...
  My system is running Redhat 6.1..

  Here's the problem.. I have a parent process that spawns several child
  processes and I need to know
  which child process has died when I receive a SIGCHLD signal.

  The sigaction man page indicates I should be able to determine this
from
  the si_pid field in siginfo_t structure..
  However every time I print the value of this field it's always 0... In
  fact only the signo field in this structure
  seems to be set correctly to 17.. i.e. SIGCHLD.

  Here are the relevant pieces of code

  Setting up the signal handler..

  struct sigaction chld_action;

      chld_action.sa_handler = 0;
      chld_action.sa_sigaction = rmm_child_term;
      sigemptyset(&chld_action.sa_mask);
      chld_action.sa_flags = SA_SIGINFO;
      if (sigaction(SIGCHLD, &chld_action, 0) != 0)
        {
         ...
         }

  ------

  The signal action function..

  void rmm_child_term(int signum, siginfo_t *info, void *ptr)
  {
    pid_t pid;

    rmm_chld_reap = (int)info->si_pid;

    /* Remove zombie kid */
    while ((pid = waitpid(-1, &stat, WNOHANG)) > 0);
  }

  ----------------------
  Checking the value of the signal...

  int rmm_check_signal(int my_qid, int test)
  {

    printf("rmm_chld_reap: %d\n", rmm_chld_reap);

  }


  If anyone has any idea why si_pid is zero.. please let me know..
  Some sample code would be awesome...
  Thanks,
  Paul





Sent via Deja.com
http://www.deja.com/

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

From: Dwight Tovey <[EMAIL PROTECTED]>
Subject: Re: How to see all the cron jobs.
Date: Thu, 21 Dec 2000 09:00:42 -0700

On Thu, 21 Dec 2000, Thaddeus L Olczyk wrote:

> Title says it all. As root I want to see all the cronjobs scheduled.
> Right now I only see root's jobs ( of which there are none ).
> Can anyone help?
> 

 cat /var/spool/cron/*

-- 
Dwight N. Tovey
We will fear no eval


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

From: [EMAIL PROTECTED]
Subject: logrotate "problems"
Date: Thu, 21 Dec 2000 15:49:48 GMT

Uhg!  My logrotate is not performing as I would expect, resulting in a
"bunch" of log files being kept.

Example:
I have tons of the following files in my /var/log/news directory:

news.notice.2.gz.3.gz.2.gz.1.gz.2.gz.1.gz.2.gz.1.gz.2.gz

I also have tons of those type of file in my /var/log/mail directory


There is nothing strange in my logrotate configuration files that I can
find.  (I would not know what to put in the configuration files to make
this happen...)

Any help will be well received.


--
MM


Sent via Deja.com
http://www.deja.com/

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

From: Chris Shepard <[EMAIL PROTECTED]>
Subject: struct source for FILE pointer
Date: Thu, 21 Dec 2000 09:09:48 -0700


Where in the Linux source can I find the definition 
(a struct, I assume) for FILE * ?

Did an rgrep on the src tree and found nothing.

I know it's a "black box", I'm just curious. 

TIA.

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


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.misc.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to