Linux-Misc Digest #29, Volume #24                 Mon, 3 Apr 00 06:13:02 EDT

Contents:
  cron problem ("Peet Grobler")
  bash prompt ("Peet Grobler")
  mounting second hard disk (Markus Wagner)
  Re: bash prompt (Dowe Keller)
  Re: command to find out distribution (Dave Brown)
  Re: Boot into Linux w/out X starting ??? (Dave Brown)
  Ditto Tape Drivers? ([EMAIL PROTECTED])
  Re: How do I write man pages? ("Peter T. Breuer")
  Re: Dual-booting between DOS/Win and Linux ("Peter T. Breuer")
  Re: mounting second hard disk (Prasanth Kumar)
  Re: Funky Colors on Eterm (Prasanth Kumar)
  Rockwell Riptide = WinSoundcard + WinModem ? (=?iso-8859-1?Q?S=E9bastien?= 
Cottalorda)
  Re: WINTV ? ([EMAIL PROTECTED])
  Question about Winlinux2000 and multiload (98-NT) ("Vadim V.Doubrovine")
  Re: RedHat gets "echo" wrong (Villy Kruse)
  Re: Unable to get print queue working with RH6.1 ([EMAIL PROTECTED])
  DXF viewer (Richard Hammerl)
  Re: How is identd called? (Glitch)
  Re: Newbie Q : 6 tty's running? (Glitch)
  Re: QUESTION! (Harold Stevens ** PLEASE SEE SIG **)
  Re: Effect of changing group ID? ("Martin Beier")
  Re: Newbie - a few questions (Martijn Brouwer)
  Re: Firewall stuff (Stephen Marley)
  Re: setuid-root does not work on lprm ? (peter pilsl)
  GLib and multithreading (Bonny Gijzen)
  Create batch file and send screen output to a file ("Dennis")

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

From: "Peet Grobler" <[EMAIL PROTECTED]>
Subject: cron problem
Date: Mon, 3 Apr 2000 06:52:14 +0200

How do you setup the cron program? I've read the man pages, it doesn't seem
to work. My user sysadmin's crontab looks like this:

00 * * * * /usr/bin/logrotate /etc/logrotate.d/.conf
00 * * * * /usr/bin/cleandir 5d /tmp /var/tmp

However, when logrotate runs, it mails a message to sysadmin, saying:
"Unable to open directory, too many open files"

This after a clean reboot, nothing done.

Anybody knows why this is happening?



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

From: "Peet Grobler" <[EMAIL PROTECTED]>
Subject: bash prompt
Date: Mon, 3 Apr 2000 07:25:49 +0200

I want to set the bash prompt to display the current working directory
(pwd). How do I do that?



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

From: Markus Wagner <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: mounting second hard disk
Date: Mon, 03 Apr 2000 07:51:16 +0200

Hello,

when I partition my second harddisk with cfdisk as one large Linux
partition I get the following results:

cfdisk reports one partition "sdb5".
fdisk reports two partitions: "sdb1: Extended", "sdb5: Linux", both
occupy the same disk area

Why do I get two partitions?
Why aren't the partitions numbered incrementally?
What's the difference between "primary" and "logical" partition?

Thanks, Markus

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

From: [EMAIL PROTECTED] (Dowe Keller)
Subject: Re: bash prompt
Date: Mon, 03 Apr 2000 05:41:51 GMT

On Mon, 3 Apr 2000 07:25:49 +0200, Peet Grobler <[EMAIL PROTECTED]> wrote:
>I want to set the bash prompt to display the current working directory
>(pwd). How do I do that?
>
>
put this in your .bashrc:

PS1="\w $ "

This would give you a prompt like this:

~/projects/web $

if you were in /home/USERNAME/projects/web/

-- 
dowe                                            [EMAIL PROTECTED]
---
"Virtual" means never knowing where your next byte is coming from.

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

From: [EMAIL PROTECTED] (Dave Brown)
Subject: Re: command to find out distribution
Reply-To: [EMAIL PROTECTED]
Date: 3 Apr 2000 00:57:36 -0500

In article <[EMAIL PROTECTED]>, 
Sukanta Kumar Hazra wrote:
>Is there any command that will allow me to know which distribution of
>Linux is running, somewhat like uname that tells the kernel info.
>The only way that I know of now is to read the /etc/issue.

If it's RedHat, they put a file in /etc called redhat-release (which is 
what the rc script uses to create /etc/issue).  So if it's RH, the 
command would be "cat /etc/redhat-release".  
-- 
Dave Brown  Austin, TX

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

From: [EMAIL PROTECTED] (Dave Brown)
Subject: Re: Boot into Linux w/out X starting ???
Reply-To: [EMAIL PROTECTED]
Date: 3 Apr 2000 00:52:23 -0500

In article <8c52c1$o1p$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
>Mike Murphy wrote:
>> 
>> I'm running RH 6.1. How do I boot into Linux without X starting
>> automatically? X is set to start automatically now. My display is all
>> messed up, I can't read the screen in X so I need to run  Xconfigurator
>> outside of X. I tried my rescue disk but it didn't work.
>> 
>> thanks.....Mike
>
>Change the following line in /etc/inittab:
>  id:5:initdefault:
>to
>  id:3:initdefault:
>...

Which is a good answer if you can get to an editor to do it.

When X comes up and your screen is all messed up, you should still be 
able to switch to one of the other "virtual terminals" by doing a 
"Ctrl-Alt-F2" (or F3 or ...). Then you can log in on a text terminal and 
change /etc/inittab.

Alternately, you could type at the Lilo boot prompt:

     linux 3

(assuming you left the lilo linux label named "linux" when you installed.)
which will cause the kernel to pass "runlevel 3" to the init process, 
and bring up the text mode.

Dave Brown  Austin, TX

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

From: [EMAIL PROTECTED]
Subject: Ditto Tape Drivers?
Date: Mon, 03 Apr 2000 07:12:31 +0100

Hi 

I have 3 parallel devices and not enough ports on my nt boxes so I
would like to put my Ditto 2Gb drive on one of the linux machines.  Is
this possible?

A Bientot
Marc

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: How do I write man pages?
Date: 3 Apr 2000 06:42:35 GMT

In comp.os.linux.misc Joe Pfeiffer <[EMAIL PROTECTED]> wrote:
: [EMAIL PROTECTED] (Diego Berge) writes:
:> 
:>    this is quite a basic question, but I don't seem to find the info
:> tonight with Altavista or at the usual linux places. Anyone kind
:> enough to point me to an appropiate source? TIA

: Find documentation on writing nroff, with the -man macroes.  No, I have
: no idea where it can be found, other than in the 3-ring binder in my
: office labelled ``The Necronomicon.''

The usual process is to copy and modify an existing man page.
True acolytes read the "an" macro definitions :-).

Peter

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

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,alt.linux
Subject: Re: Dual-booting between DOS/Win and Linux
Date: 3 Apr 2000 06:46:26 GMT

John Hasler <[EMAIL PROTECTED]> wrote:
: Peter T. Breuer writes:
:> I dread to think how much a complete debian would be.

: There is no such animal: some packages conflict with others.  What Debian

Despite the use of "dread", I was not being critical, but appreciative.

: has instead is 'tasks': virtual packages that depend on and therefore pull
: in a related set of packages that the maintainer believes are useful for
: a particular task.

Well, possibly. I exercise more control than to follow suggestions!
I only have pre-requisites pulled in. Using that policy, my
installations of potato are running  about 700MB.

Peter

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

From: Prasanth Kumar <[EMAIL PROTECTED]>
Subject: Re: mounting second hard disk
Date: Mon, 03 Apr 2000 07:31:42 GMT

Markus Wagner wrote:
> 
> Hello,
> 
> when I partition my second harddisk with cfdisk as one large Linux
> partition I get the following results:
> 
> cfdisk reports one partition "sdb5".
> fdisk reports two partitions: "sdb1: Extended", "sdb5: Linux", both
> occupy the same disk area
> 
> Why do I get two partitions?
> Why aren't the partitions numbered incrementally?
> What's the difference between "primary" and "logical" partition?
> 
> Thanks, Markus

A harddisk can only have 4 primary partitions. To have any more
partitions,
one of these primary partitions must be changed into an extended
partition
which in turn can be split into about 32 logical partitions maximum. My
understanding is that back in the stone ages of computing when harddisks
were small, the partitioning standard allowed for only 4 partitions. As
the devices became larger, the standards were extended in a backwards
compatible manner to allow for more parititions.

Under Linux, the devices sdb1 to sdb4 will be primary while sdb5 on up
will
be logical. In your case, the sdb1 is a primary partition labeled as
extended
and the sdb5 is the logical partition inside of the extended one. For
purposes
of mounting, you should only be concerned with logical parition sdb5.
Fdisk
give you more precise control over partitioning while cfdisk takes a
simplistic
approach and puts everything as logical paritions.

-- 
Prasanth Kumar
[EMAIL PROTECTED]

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

From: Prasanth Kumar <[EMAIL PROTECTED]>
Subject: Re: Funky Colors on Eterm
Date: Mon, 03 Apr 2000 07:34:13 GMT

Jan Schaumann wrote:
> 
> Kevin Clark wrote:
> >
> > Hey guys,
> >
> > I just upgraded to Red Hat 6.2.  Now I have funky colors for
> > directories, rpm ,etc....when using my Eterm.  How the heck do i get rid
> > of these.  I figured out how to do it with xterms by editing Xdefualts
> > but I cant seem to find any thing like that for Eterms.
> 
> funky colors, like what?
> You mean, when you type "ls" you see directories in blue and tar.gz in
> red etc? (or other colors)
> Well, that's just "ls --color" (or the equivalent in your shell). many
> people WANT that... iti set either in your .bashrc or systemwide in
> /etc/bashrc (if you use another shell, the appropriate files should
> contain something like
> alias ls='ls --color')
<snip>

That feature was enabled in Redhat Linux 6.2 by default.
-- 
Prasanth Kumar
[EMAIL PROTECTED]

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

From: =?iso-8859-1?Q?S=E9bastien?= Cottalorda 
Subject: Rockwell Riptide = WinSoundcard + WinModem ?
Date: Mon, 03 Apr 2000 09:39:48 +0200

Hi all,

I've just bought a HP Pavilion 8675 in which I've a Rockwell Riptide
card (Modem + Soundcard)

I know that the modem is a winmodem (fortunately, I've an external one
that works perfectly).

But concerning the Soundcard, I've tried to configure it with sndconfig
--> sound card not supported.

I've then tried to configure it as a SB card using the Win98 parameters
(IRQ, DMA, E/S, ...), but it didn't work : "sound device busy".

If someone as succeed in configuring this card, please mail me how I can
do.

Thanks in advance.

Sebastien


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

From: [EMAIL PROTECTED]
Subject: Re: WINTV ?
Date: Mon, 03 Apr 2000 07:49:36 GMT

Thanks for your last reply Robie.

After I sent you my last post, I wondered if the Linux Documentation
project would have anything on bttv. I found they had a nice small easy
to understand howto on the subject.

However I'm still having some trouble with xawtv. I've got a picture and
stero sound however:

a) I can't go full screen - the screen blanks out but I still have
sound.
b) The picture is at a much slower frame rate than under wintv in
windows.
c) I can't get sound when I tune into my video - the video player is
mono.

Do you have any ideas on sorting these problems out? At the moment I'm
just using the bttv suff that came with Red Hat 6.1, so I suppose I
could update them. I'll try that tonight.

Cheers for the howto compile a kernel, I might do that so I can get a
more upto date one, it doesn't look too hard now.

Duncan


In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> On Fri, 31 Mar 2000 12:07:37 +0000, Ian Mortimer said:
> >It works perfectly with xawtv - if you use windowmaker you can even
get
> >a dockapp for it - wmtv
> >
> >Rgds, Ian
>
> You may need to recompile the kernel - see the Kernel HOWTO at
> linuxdoc.org. Add support for Video4Linux, the bttv driver and (for
> teletext, if you have it) saa5429, IIRC.
>
> Then xawtv works perfectly. Also, if you have a remote control, a
> program called lirc (search freshmeat.net) lets you work it.
>
> Robie.
>
> >
> >
> >[EMAIL PROTECTED] wrote:
> >>
> >> Has anyone got Hauppage's wintv to work with Linux. (RedHat 6.1)
> >>
> >> Wintv is about the only reason I use windows now, so if someone
could
> >> help me, I will never have to see the blue screen of death ever
again -
> >> yeh!
> >>
> >> Duncan
> >>
> >> Sent via Deja.com http://www.deja.com/
> >> Before you buy.
>
> --
>


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: "Vadim V.Doubrovine" <[EMAIL PROTECTED]>
Subject: Question about Winlinux2000 and multiload (98-NT)
Date: Mon, 03 Apr 2000 08:01:51 GMT

Hi All.

I'm going to install Winlinux 2000. Will everything be OK if I have
multiload
(Win 98 and NT) on my system? They say it will not work under NT so I'll
install it under Win 98, but will my multiload remain intact?

Thank you.


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

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: RedHat gets "echo" wrong
Date: 3 Apr 2000 08:17:30 GMT

On Mon, 03 Apr 2000 02:23:20 GMT, Craig Macbride <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] (Bob Tennent) writes:
>
>>It actually says
>>
>>   -e     enable interpretation of the backslash-escaped characters
>>
>>and doesn't say what the default is.
>
>It says both. However, with no arguments, there is no "-e", which means
>the above doesn't apply. From that, we don't know what the default is.
>
>However, with no arguments, "Without -E, the following sequences are
>recognized and interpolated:" is explicitly stating that backslash escapes
>will work. But they don't.
>


Check the difference between:

echo 'abc\ndef'
/bin/echo 'abc\ndef'

echo -e 'abc\ndef'
/bin/echo -e 'abc\ndef'

The man page describes /bin/echo, but why the bash builtin behaves 
exactly opposite of /bin/echo is, to say it mildly, not logical.

$ echo abc\ndef
abc\ndef
$ /bin/echo abc\ndef
abc
def
$ echo -e abc\ndef
abc
def
$ /bin/echo -e abc\ndef
abc
def



-- 
Villy



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

From: [EMAIL PROTECTED]
Subject: Re: Unable to get print queue working with RH6.1
Date: Mon, 03 Apr 2000 07:56:42 GMT

I had the same sort of promblem printing with an Hp deskjet. It works
now though.

If I remember correctly there is a patch at redhat's site. Go to tyhe
red hat site, go to the FAQ's and find the one about printers.

Oh if anyone knows about printers and linux. How do I reduce the ink
flow, my prints are coming out with much-to-much ink on them

Duncan



In article <[EMAIL PROTECTED]>,
Charlie Zender <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have Redhat Linux 6.1 running on a Compaq Presario 5240 which has
> an HP Laserject 5L attached to the parallel port. This setup is pretty
> standard, I assume. The only problem I am having is that I cannot
print.
> I can submit jobs to the queue, but the queue gives the following
error:
>
> zender@dakine:~$ lpq
> waiting for lp to become ready (offline ?)
> Rank Owner Job Files Total Size
> 1st zender 3 (standard input) 594 bytes
> 2nd root 6 ... 625 bytes
> 3rd root 7 /home/zender/.signature 138 bytes
>
> The printer appears to be online, and it does print as desired when
> I boot into Windows instead of Linux, so it's not a hardware problem.
>
> Here is the printcap:
> ##PRINTTOOL3## LOCAL
> lp|lp0|hplj5l:\
> :sd=/var/spool/lpd/lp:\
> :mx#0:\
> :sh:\
> :lp=/dev/lp0:
>
> Here are the permissions in /var/spool/lpd:
>
> zender@dakine:~$ ls -l /var/spool/lpd
> total 2
> drwxr-xr-x 2 lp lp 1024 Apr 1 03:08 lp
> -rw-r--r-- 1 root root 5 Apr 1 03:09 lpd.lock
>
> Any help would be appreciated.
> Thanks,
> Charlie
> --
> Charlie Zender [EMAIL PROTECTED] (949) 824-2987/FAX-3256, Department of
> Earth System Science, University of California, Irvine CA 92697-3100
>


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: Richard Hammerl <[EMAIL PROTECTED]>
Subject: DXF viewer
Date: Mon, 03 Apr 2000 08:06:55 GMT

Hi all,


I know there was the same posting in 1997. But perhaps things
changed in the meantime. ;)
Is there a dxf viewer for linux?

Thanks for your help.


-Richard


Sent via Deja.com http://www.deja.com/
Before you buy.

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

Date: Mon, 03 Apr 2000 04:34:51 -0400
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: How is identd called?

if a person wanted the service started at boot time, why else?; just to
have it always run since it would be starting at boot time

Leonard Evens wrote:
> 
> Identd is the daemon which establishes user identities for
> network services.  It may be started as a daemon by
> /etc/rc.d/init.d/identd or it may be run via inetd.
> 
> I checked several machines running RedHat 6.1, and found
> it was stopped. chkconfig showed it off.  So it is run
> via inetd, and that would be appear to be a common configuration.
> 
> Under which circumstances might it be started in initd?
> --
> 
> Leonard Evens      [EMAIL PROTECTED]      847-491-5537
> Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208

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

Date: Mon, 03 Apr 2000 04:43:17 -0400
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: Newbie Q : 6 tty's running?

If I understand what they are correctly they are there waiting for you
to open up another terminal screen.  There are 7 total and since you
automatically use the first one at boot time of course that makes 6
left.

Peet Grobler wrote:
> 
> When I boot my RedHat Linux system, and I type "ps", I see 6 tty processes
> running. Why is this? I tried stopping them (hey, that's me), and they just
> autostart again. What's these processes for?

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

From: [EMAIL PROTECTED] (Harold Stevens ** PLEASE SEE SIG **)
Subject: Re: QUESTION!
Date: Mon, 03 Apr 2000 08:48:43 GMT

In <[EMAIL PROTECTED]>, brian moore:

[Snip...]

|> Oh, I wouldn't say "cheapo".

|> The systems made by places like ASL (http://www.aslab.com/), for
|> example, are extremely high quality and work much better than the "brand
|> name" systems that come with Windows.

[Snip...]

Linux has come a long way not only in servers, but desktop/portable also.

I've used an ASL latptop for just short of a year now, and it's one of the
best IMO. Certainly not "cheap" as you say, but they used quality hardware
and there's the hassle aspect. Having done several installs myself on some
very "interesting" hardware, I appreciate and will pay for someone else to
ship me a system that worked *flawlessly* for me from the first boot. They
are also very prompt about service and my emails have been answered on the
same day basis. Right now, they are hassling with a vendor for me over the
original battery which failed to take a full recharge after a few boots.

I don't mean to bore everyone with this; just a reminder that, except with
the Evil Empire, you mostly get what you pay for. Horses for courses, etc.

I have no commercial relationship with ASL except as a happy customer.

--

Regards, Weird (Harold Stevens) * IMPORTANT EMAIL INFO FOLLOWS *
Pardon the bogus email domain (dseg etc.) in place for spambots.
Really it's (wyrd) at raytheon, dotted with com. DO NOT SPAM IT.
Standard Disclaimer: These are my opinions not Raytheon Company.


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

From: "Martin Beier" <[EMAIL PROTECTED]>
Subject: Re: Effect of changing group ID?
Date: Mon, 3 Apr 2000 11:00:37 +0200

> 3.  Translate the gid across the NFS mount.  I thought there was a way
> to do this, but now I can't find it!?  Does this sound familiar to
> anyone?
I tried that on a System V Unix called SINIX. The mount command supported
an option called G=<file> and U=<file> where G pointed to a file that
translated the group id and U translated the user id. For example

103:107

in a file called GUID and a mount option like

mount -o G=GUID ...

translated the group id 103 on the remote system to
a local id 107.

[EMAIL PROTECTED]




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

From: [EMAIL PROTECTED] (Martijn Brouwer)
Subject: Re: Newbie - a few questions
Date: Mon, 03 Apr 00 09:36:52 GMT

In article <2RUF4.3235$[EMAIL PROTECTED]>, "soldier" <[EMAIL PROTECTED]> 
wrote:
>Hello,
>
>I purchased Linux 6.0 with the Linux Unleashed book. I have installed it and
>learned all the basics, and have a few questions I was hoping someone could
>answer:
What dows Linux 6.0 mean?? Linux is the kernel and the latest stable kernels 
are 2.2.xx. What you mean is some distribution version. SuSE 6.0, RedHat 6.0 
etc.

>2. Is there an easy way for me to upgrade from 6.0 to the latest version of
>Linux?
To upgrade to a new kernel or an entirely new distribution?? 

>3. I'd like to use Linux as my main OS if possible (switching over from
>Windows) but need access to a suite of apps similar to MSOffice if I am
>going to do it. I heard from someone that these apps, or their equivalents
>are free on the Net somewhere? I would like to have an MS Word equivalent
>program if possible.
When you are looking for an M$ alike office suit, take StarOffice 
(www.sun.com) It is free, and can deal with files from M$ applications. You 
should not have an to old computer.

>4. Last question: Working with TAR, GZ, Z and all the other types of files
>at the command line is a bunch of bull. Is there a nice GUI that handles ALL
>of the possible archives (similar to Winzip)?
Xtar is a graphical shell for tar, and can do the same as tar. Check 
www.linuxapps.com and www.freshmeat.com.


Martijn


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

From: [EMAIL PROTECTED] (Stephen Marley)
Crossposted-To: uk.comp.os.linux
Subject: Re: Firewall stuff
Date: 3 Apr 2000 09:36:54 GMT

James Campbell Andrew <[EMAIL PROTECTED]> wrote:
> I'm setting up some basic firewalling rules on my SuSE 6.2 (kernel
> 2.2.14) box. However, when going through the system configuration in
> Yast I discovered a bunch of FW_* variables. Could someone please
> explain what they are since the descriptions seem to be absent. I know
> they pertain to firewalling but I don't know what values to put in them.
> I'm running a very small network using the 192.168.1.x IP range. The
> Linux box is the gateway to the Internet via ppp, and my Mac is
> networked through eth0.

It's documented in /usr/doc/packages/firewall (masq stuff too).

> Also, is it possible to log any from the firewall to somewhere other
> than /var/log/messages? Say, /var/log/firewall?

Probably. See man syslogd, syslog.conf.

-- 
[EMAIL PROTECTED]

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

From: peter pilsl <[EMAIL PROTECTED]>
Subject: Re: setuid-root does not work on lprm ?
Date: Mon, 03 Apr 2000 09:47:37 GMT

In article <8c8s99$cc$[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> 
> Because lprm has out-smarted you, so to speak.  The lprm is designed to be
> setuid root, but it does its own permission checking inside to ensure that
> non-root users can only remove their own jobs.  Thus you cannot fool it
> into letting everyone delete any job, just by changing the permissions on it.
> 

the problem is, it seems to be too smart ;)
user cant even delete their own jobs ! only root can delete jobs !!

[stefan]$ lpq
Rank   Owner      Job  Files                                
1st    stefan     713  printtest                             
[stefan]$ lprm 713
cfA713Aa01244: Permission denied


in /var/spool/lpd/lp0 I find:

-rw-rw----   1 bin      lp             72 Apr  1 21:32 cfA713Aa01244
-rw-rw----   1 stefan   lp             24 Apr  1 21:32 dfA713Aa01244 

ps waux | grep lp gives:

root      1518  0.0  0.6   824   408  ?  S    23:48   0:00 lpd 
root      1598  0.0  0.7   844   472  ?  S    23:59   0:00 lpd 
stefan    1599  0.0  1.1  1224   704  ?  S    23:59   0:00 bash 
/var/spool/lpd/lp0/filter -w132 -l66 -i0 -n stefan -h 
stefan    1601  0.0  1.1  1220   708  ?  S    23:59   0:00 bash 
/var/spool/lpd/lp0/filter -w132 -l66 -i0 -n stefan -h 
stefan    1603  0.0  0.5   836   348  p2 S    23:59   0:00 grep lp 

---printcap----
lp:\
        :sd=/var/spool/lpd/lp0/:\
        :mx#0:\
        :sh:\
        :lp=/dev/lp0:\
        :if=/var/spool/lpd/lp0/filter:
---endprintcap---

-r-sr-sr-x   1 root     lp          22212 Oct  2  1998 /usr/sbin/lpc
-rwxr--r--   1 root     root        42108 Oct  2  1998 /usr/sbin/lpd
-r-sr-sr-x   1 root     lp          15068 Oct  2  1998 /usr/bin/lpr
-r-sr-sr-x   1 root     lp          14732 Oct  2  1998 /usr/bin/lprm

drwxr-xr-x   2 root     lp           2048 Feb 22 21:33 /var/spool/lpd/lp0


any idea ??

peter



-- 
pilsl@
goldfisch.at.at

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

From: Bonny Gijzen <[EMAIL PROTECTED]>
Subject: GLib and multithreading
Date: Mon, 03 Apr 2000 11:51:13 -0400

I'm using the GTK+ library and multithreading (pthreads)

I found that the GLib has a function: g_thread_init(NULL) to make it
threadsafe
Does this mean that every GLib element is now threadsafe?

I am using the GSList from multiple threads, which I have now
synchronized with Mutexes.
When I use g_thread_init(NULL), does this mean I can do WITHOUT the
mutexes or not?

Is there anybody who has some experience with this??

Oh yeah: What do I have to do with some defines like:
- G_THREADS_ENABLED
- G_THREADS_IMPL_POSIX
etc.

Do I have to define these myself, or is this already done??

I use the GTK+ 1.2.7 and glibc2

Rgs Bonny Gijzen




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

From: "Dennis" <[EMAIL PROTECTED]>
Subject: Create batch file and send screen output to a file
Date: Mon, 3 Apr 2000 20:09:33 +1000

Hi,

I want to execute a number of linux commands from a batch file, and have the
screen output sent to a file. So...

How do I create a batch file (like in dos).

How do I then send the screen output from the programs which are run from
the batch file to another file.

Thanks for anyone who can help,

Dennis





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


** 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
******************************

Reply via email to