Re: [SLUG] Robert Collins' Notebook

2005-05-29 Thread Robert Collins
On Fri, 2005-05-27 at 22:46 +1000, Carl Woodward wrote:
> Hi everyone,
> 
> I know this isn't the right forum for this question but I was
> wondering if anyone could tell me what notebook Robert Collins is
> using?
> I saw it tonight at SLUG and can't seem to find it on the web.

Its the Dell  X1. Very sweet machine, I'm enjoying using it
almost as much as folks reaction when they pick it up ;).

Rob

-- 
GPG key available at: .


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

[SLUG] several domains to one web in Apache 1.3x, single docroot ?

2005-05-29 Thread Voytek
I need to set one web space, with 4 domains pointing to same web space, as
in:

mysite.tld, minesite.tld, my_site.tld mine_site.tld.

what's the best way to set that ?

I'm thinking of duplicating  stuff, just keeping DocRoot same,
is that an OK way ?

hmmm, that will give me multiple cronlogs to same log... that can't be a
good idea..?



ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/mysite.tld/www
ServerName www.mysite.tld
CustomLog "|/usr/sbin/cronolog /home/mysite.tld/logs/%Y-%m-%d-access.log"
combined



followed by, for each additional tld, another virtual


ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/mysite.tld/www
ServerName www.my_site.tld
CustomLog "|/usr/sbin/cronolog /home/mysite.tld/logs/%Y-%m-%d-access.log"
combined



what's the best way to do that ?

-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] several domains to one web in Apache 1.3x, single docroot ?

2005-05-29 Thread Robert Collins
On Mon, 2005-05-30 at 08:38 +1000, Voytek wrote:
> I need to set one web space, with 4 domains pointing to same web space, as
> in:
> 
> mysite.tld, minesite.tld, my_site.tld mine_site.tld.
> 
> what's the best way to set that ?
> 
> I'm thinking of duplicating  stuff, just keeping DocRoot same,
> is that an OK way ?

Just leave the default wildcard in place. Otherwise, you can specify
multiple domains in a site rule IIRC.

Rob

-- 
GPG key available at: .


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] Cp -R skipping some directories

2005-05-29 Thread Peter Rundle

Simon,


Is it possible to have cp skip some directories when using cp -R?
 


Dunno, but cpio -p would be able to solve your problem.

 $ find . -print | cpio -pdmuv /new/directory

Find simply generates a list of file names, which cpio reads on it's 
standard input
as a list to copy. Obviously you can put any filter you like between 
find and cpio,

but you can also use anything to create the list to feed to cpio.

 $ find . -print | egrep -v '(not-this|nor-that)' | cpio -pdmuv 
/new/directory

 $ cat my-list-of-files | cpio -pdmuv /new/directory

HTH

P.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] several domains to one web in Apache 1.3x, single docroot ?

2005-05-29 Thread Mike MacCana

Robert Collins wrote:


On Mon, 2005-05-30 at 08:38 +1000, Voytek wrote:
 


I need to set one web space, with 4 domains pointing to same web space, as
in:

mysite.tld, minesite.tld, my_site.tld mine_site.tld.

what's the best way to set that ?

I'm thinking of duplicating  stuff, just keeping DocRoot same,
is that an OK way ?
   



Just leave the default wildcard in place. Otherwise, you can specify
multiple domains in a site rule IIRC.
 

You do indeed RC. If you feel like doing that you'd use the ServerAlias 
option.


Mike
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Newlines in environment variables

2005-05-29 Thread Peter Hardy
Pretty basic shell question, but it's Monday morning and my brain hasn't
warmed up yet.

I have the following bit of shell script to accept messages piped from
evolution filters and pop up a notice on screen:


message="Message received

`egrep "(^From:|^Subject:)"`

"

xmessage -nearmouse $message

(I'd much rather use zenity or some other xmessage replacement, but
nothing else is available in this environment)

Now, running this script with bash compresses $message to a single line,
while zsh keeps the newlines intact. So I'm wondering how to achieve the
same thing with bash.

Cheers,
-- 
Pete

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


RE: [SLUG] Cp -R skipping some directories

2005-05-29 Thread Simon
Thanks all, seems like rsync is what I have been looking for.



-Original Message-

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Julio Cesar Ody

Sent: Fri, 27. May 2005 2:21 PM

To: [EMAIL PROTECTED]; slug

Subject: Re: [SLUG] Cp -R skipping some directories





Well, that depends on what we're talking about. In a script context, you
could have an "ignore list", and by checking if "folder1" is in it, the
script would that folder and move on.



(insert your favorite shell hack here)



But strictly as a command, you have regexes available. By copying "ma*"
recursively to, say, "/tmp", you'll copy folders like "man", "mate", or
whatever else starts with "ma".





On 5/27/05, Simon <[EMAIL PROTECTED]> wrote:

> HI all,

> Is it possible to have cp skip some directories when using cp -R?

>

> 

> OLMC

> Simon Bryan

> IT Manager

> [EMAIL PROTECTED]

> LMB 14

> North Parramatta

> tel: 96833300

> fax: 98901466

> mobile: 0414238002

> 

>

> --

> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/

> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

>





--

Julio C. Ody

http://rootshell.be/~julioody

--

SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




  _  

<< ella for Spam Control >> has removed Spam messages and set aside
Later for me
You can use it too - and it's FREE!  www.ellaforspam.com

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Newlines in environment variables

2005-05-29 Thread tatz
Hi, good morning!?

From: Peter Hardy <[EMAIL PROTECTED]>
Date: Mon, 30 May 2005 11:30:48 +1000

> I have the following bit of shell script to accept messages piped from
> evolution filters and pop up a notice on screen:
> 
> 
> message="Message received
> 
> `egrep "(^From:|^Subject:)"`
> 
> "
> 
> xmessage -nearmouse $message
> 
> (I'd much rather use zenity or some other xmessage replacement, but
> nothing else is available in this environment)
> 
> Now, running this script with bash compresses $message to a single line,
> while zsh keeps the newlines intact. So I'm wondering how to achieve the
> same thing with bash.

xmessage -nearmouse "$message"

If you don't quote the variable, it is separated by IFS again.
Therefore, there is another answer:

  IFS=""
  xmessage -nearmouse $message
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Newlines in environment variables

2005-05-29 Thread Ian Wienand
On Mon, May 30, 2005 at 11:30:48AM +1000, Peter Hardy wrote:
> xmessage -nearmouse $message

> Now, running this script with bash compresses $message to a single line,
> while zsh keeps the newlines intact. So I'm wondering how to achieve the
> same thing with bash.

Quote $message, as in

$ xmessage -nearmouse "$message"

-i
[EMAIL PROTECTED]
http://www.gelato.unsw.edu.au


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html