Re: [SLUG] Cross platform interpreter invocation

2004-03-29 Thread mlh
On Tue, Mar 30, 2004 at 06:45:52AM +, James Gregory wrote:
> /usr/bin/env: perl -w: No such file or directory
> 
> Maybe I need a more cutting-edge env.

It's not env but the kernel, and it looks like it's
deliberate:

http://www.ussg.iu.edu/hypermail/linux/kernel/0402.2/1903.html

Also, consider perlrun's comment:

 There is no general solution to all of this.  It's just a mess.

Matt

-- 
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] Cross platform interpreter invocation

2004-03-29 Thread mlh
On Tue, Mar 30, 2004 at 05:42:26PM +1000, Benno wrote:
> On Tue Mar 30, 2004 at 17:34:27 +1000, [EMAIL PROTECTED] wrote:
> >You could write your own env equivalent.
> >It's quite a simple program.
> 
> And therefore defeating the purpose of using env in the first 
> place :)

Yeah, I meant env plus the bits to custom find your
real interpreter and possibly interpret additional lines
to get the args blah blah of course!  And without doing
anything of things that env really does, like actual env
stuff!

Kids these days.

Matt


-- 
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] Cross platform interpreter invocation

2004-03-29 Thread Benno
On Tue Mar 30, 2004 at 17:34:27 +1000, [EMAIL PROTECTED] wrote:
>
>
>You could write your own env equivalent.
>It's quite a simple program.

And therefore defeating the purpose of using env in the first 
place :)

Benno
-- 
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] bash pptp heartbeat script

2004-03-29 Thread Amanda
Quoting Alexander Samad <[EMAIL PROTECTED]>:

> On Sun, Mar 28, 2004 at 12:02:01PM +1000, Amanda wrote:
> > Quoting James Gray <[EMAIL PROTECTED]>:
> > 
> > > 
> > > Amanda wrote:
> > > > Have a pptp connection from SME server to windows 2000 vpn server.
> > > > I'm looking for a bash script which will periodically (launched from
> cron)
> > > ping
> > > > a machine on the remote network and restart pptp if it doesn't
> respond.
> > > > 
> > > > I wrote a similar thing for dos years ago which captured the output of
> ping
> > > into
> > > > a text file, then looked for the string "reply from".
> > > > 
> > > > I've been googling for ages but haven't found anything.
> > > > 
> > > > thanks.
> > > > 
> > > > Amanda
> > > 
> > > Hi Amanda,
> > > 
> > > I had a similar problem but pinging wasn't going to work - we use use 
> > > BGP and sometimes the routing table would get screwed up so ping would 
> > > fail even though the tunnel was still up.
> > > 
> > > This would result in ppp1, ppp2, etc being started and wasn't what we 
> > > wanted.  So we decided to use the status of the pppd processes (via it's
> 
> > > PID file) to determine if the tunnel was active.  Maybe you could use 
> > > James Greg's and John Clarke's solutions and build some of the logic 
> > > from my script into a home-spun thing for yourself.
> > > 
> > 
> > Not sure this would work in my situation. The thing that will kill the
> > connection in my case is the ISP (telstra) dropping the connection (ISDN)
> after
> > 5 hours. I'm currently testing all this from my home network (this server
> will
> > be going to Mackay in Qld); using ADSL.  I'm re-booting my internal router
> to
> > simulate the connection being lost. If I then do "pptp-command status" it
> > reports that the link is probably up. But pinging 10.0.0.150 (the machine
> on the
> > other end that mysql replicates against) gets no response.
> 
> Why not do it the other way around and bring the connect down every 4h
> 50 min.  That way you could stop/halt/suspend anything that requires the
> link and then restart once the link is back up
> 

Because that 5 hours is not set in concrete. This is Telstra don't forget.
Besides, there's a million other reasons why the link could drop.  Also, if I
deliberately drop the link at 4 H 50 M, my users would be down for no really
good reason.  I've got enough problems keeping them happy as it is.

When the ping fails, I'm also doing killall pppd & pptpd before starting a new
tunnel. This should hopefully correct what James was saying about bringing up
multiple tunnels. Just checked the tunnel. It's been up for the last 14 hours &
working fine.

Amanda


Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

-- 
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] Cross platform interpreter invocation

2004-03-29 Thread mlh


You could write your own env equivalent.
It's quite a simple program.

But! I suspect that the problem is not env,
but the kernel; whether and how it passes args
to the interpreter.

For perl, does the the '$if_running_under_some_shell'
hack do what you want to do?

Matt




-- 
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] NSW targets employers' email snooping

2004-03-29 Thread mlh

I belive it's in part because of this:

Telecommunications (Interception) Amendment Bill 2004
http://parlinfoweb.aph.gov.au/piweb/browse.aspx?NodeID=173

It will also be illegal to archive emails, or to appraise
them as suitable for delivery or not by inspecting them
by human eye. (automated methods considered ok)

Matt
-- 
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] Cross platform interpreter invocation

2004-03-29 Thread Michael Knight
DE LUCA Ben wrote:
Ive just tested it on gentoo and osx and both of them accept arguments
I also run Gentoo:

$ cat tmp.sh
#!/usr/bin/env perl -w
$ ./tmp.sh
/usr/bin/env: perl -w: No such file or directory
So it doesn't work using the shebang line in Bash, but invoking env 
directly with:

$ /usr/bin/env perl -w

works. So I guess we're back to square one :/

-Mike
--
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] Sharp Zaurus?

2004-03-29 Thread Conrad Parker
On Tue, Mar 30, 2004 at 10:02:45AM +1000, Peter Chubb wrote:
> 
> Hi,
>   Has anyone had any experience with the Sharp Zaurus, or other
> Linux-based PDAs?  I'm particularly interested in how usable they are
> for usual PDA type stuff (like the Datebook etc., functionality on a
> PalmOs device), as well as for the usual Linux stuff (taking quick
> memos, synchronisation with a Linux desktop, etc.)  

I got a Zaurus SL-A300 recently. It's a Japanese only model hence a little
different -- smaller and without a physical keyboard, but it has good pen
input which is great for writing Japanese :)

I use it mostly for Horms' jiten (Japanese/English dictionary program),
but also for taking short notes and viewing photos. I transfer data back
and forth via an SD card -- it does have USB but I heard a rumour that it's
not USB storage and needs some special USB net software so haven't bothered.
I don't use the diary, but I do use the address book if only for the gimmick
value of actually being able to store Japanese friends' names in Japanese :)

Back on topic however, it's great being able to drop to a shell and poke
around. It runs a patched 2.4.13-ac5-rmk2- kernel out of the box, and of
course you can install random qtopia apps on it or even build stuff for it.
Plus you always know it's Linux under the hood, so it multitasks well and
corrects for daylight savings automatically etc. ...

Usability-wise, hunt-and-peck on a soft keyboard is a pretty painful way to
take more than a couple of lines of notes, or to use a shell at all, but
I'd imagine the physical keyboard would be a little faster.

cheers,

Conrad.
-- 
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] Cross platform interpreter invocation

2004-03-29 Thread Mary Gardiner
On Tue, Mar 30, 2004, Robert Collins wrote:
> Whats your /bin/sh? Bash or dash?

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


[SLUG] USB Printer

2004-03-29 Thread Edwin Humphries
We're trying to share an Epson USB printer via Samba on our new Fedora server.

The share is set up OK, and can be seen and opened from Windows clients. However, 
although the Fedora box can print to the Epson, the Windows boxes can.

All other Samba shares, including a laser printer connected to the parallel port, 
work fine.

Does anyone have a clue how to fix this?

Edwin Humphries,
Ironstone Technology Pty Ltd
[EMAIL PROTECTED]
www.ironstone.com.au
Phone: 02 4233 2285
Fax: 02 4233 2299
Mobile: 0419 233 051
-- 
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] Cross platform interpreter invocation

2004-03-29 Thread Robert Collins
On Tue, 2004-03-30 at 17:04, Mary Gardiner wrote:
> On Tue, Mar 30, 2004, DE LUCA Ben wrote:
> > Ive just tested it on gentoo and osx and both of them accept arguments
> 
> Latest env on Debian unstable doesn't. env on Solaris does.

Whats your /bin/sh? Bash or dash?

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] Cross platform interpreter invocation

2004-03-29 Thread Mary Gardiner
On Tue, Mar 30, 2004, DE LUCA Ben wrote:
> Ive just tested it on gentoo and osx and both of them accept arguments

Latest env on Debian unstable doesn't. env on Solaris does.

-Mary
-- 
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] Cross platform interpreter invocation

2004-03-29 Thread Mary Gardiner
On Tue, Mar 30, 2004, Robert Collins wrote:
> Are you sure? env --help suggests that it doesn't.

Fairly sure. Google suggests it does. Compare

$ perl test.pl
Hello world

and

$ ./test.pl
/usr/bin/env: perl -w: No such file or directory

with the attached file.

-Mary
#!/usr/bin/env perl -w
print "Hello world\n";
-- 
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] Cross platform interpreter invocation

2004-03-29 Thread James Gregory
On Tue, 2004-03-30 at 06:22, Robert Collins wrote:
> On Tue, 2004-03-30 at 13:47, Mary Gardiner wrote:
> > Hi folks,
> > 
> > I'm accustomed to starting my various Python and Perl files with:
> > 
> > #!/usr/bin/env python
> > 
> > or
> > 
> > #!/usr/bin/env perl
> > 
> > to deal with the situation where the python or perl binary lives in
> > different places on different systems (please don't reply suggesting I
> > just move it or just install Debian or something, some of us still work
> > in archaic environments where we don't have root on servers we use)
> > 
> > However, you can't pass arguments to whatever you're invoking, thanks to
> > the limits of the #! interpretion ("#!/usr/bin/env perl -w" at the top
> > of a file causes a search for a binary named "perl -w"). 
> 
> Are you sure? env --help suggests that it doesn't.

Certainly does on my box:

$ cat t
#!/usr/bin/env perl -w
$ ./t
/usr/bin/env: perl -w: No such file or directory

Maybe I need a more cutting-edge env.

j.


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


[SLUG] NSW targets employers' email snooping

2004-03-29 Thread Howard Lowndes

I guess there are a few of out there that will be needing some legal
opinions on this one and some re-defined acceptable practice
conditions.  It looks like a minefield.


http://www.abc.net.au/news/newsitems/s1077250.htm

The New South Wales Government is moving to outlaw bosses spying on
workers' emails, unless they have a court order to do so.

The step is said to be an Australian first.

New South Wales Attorney-General Bob Debus says the union movement has
been justifiably lobbying for laws to stop employers from spying on
workers' emails.

"The Government proposes to tackle this problem and in this respect we
will be the first Australian state to do so," Mr Debus said.

"Under the template proposed by the Government, a balance will be struck
between the employee's right to privacy and the legitimate needs of
employers to protect their intellectual and commercial properties," he
said.

He says the laws being drafted will not place a blanket ban on email
surveillance but will make sure it is done ethically.

Mr Debus says the new laws will make it a criminal offence to undertake
any form of covert surveillance unless an employer can show a reasonable
suspicion of wrong-doing by an employee.

"Unless employers have a court order, they will need to give employees
notice that surveillance will be conducted," he said.

That could mean a warning box pops up when the computer is turned on.

-- 
Howard.
LANNet Computing Associates - Your Linux people 
--
Flatter government, not fatter government - Get rid of the Australian states.
--
To mess up a Linux box, you need to work at it;
to mess up your Windows box, you just need to work on it.
 - Scott Granneman, SecurityFocus

-- 
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] Cross platform interpreter invocation

2004-03-29 Thread DE LUCA Ben
Ive just tested it on gentoo and osx and both of them accept arguments

> From: Robert Collins <[EMAIL PROTECTED]>
> Date: Tue, 30 Mar 2004 16:22:21 +1000
> To: Mary Gardiner <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [SLUG] Cross platform interpreter invocation
> 
> On Tue, 2004-03-30 at 13:47, Mary Gardiner wrote:
>> Hi folks,
>> 
>> I'm accustomed to starting my various Python and Perl files with:
>> 
>> #!/usr/bin/env python
>> 
>> or
>> 
>> #!/usr/bin/env perl
>> 
>> to deal with the situation where the python or perl binary lives in
>> different places on different systems (please don't reply suggesting I
>> just move it or just install Debian or something, some of us still work
>> in archaic environments where we don't have root on servers we use)
>> 
>> However, you can't pass arguments to whatever you're invoking, thanks to
>> the limits of the #! interpretion ("#!/usr/bin/env perl -w" at the top
>> of a file causes a search for a binary named "perl -w").
> 
> Are you sure? env --help suggests that it doesn't.
> 
> Rob
> -- 
> GPG key available at: .
> 
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 

-- 
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] Cross platform interpreter invocation

2004-03-29 Thread Robert Collins
On Tue, 2004-03-30 at 13:47, Mary Gardiner wrote:
> Hi folks,
> 
> I'm accustomed to starting my various Python and Perl files with:
> 
> #!/usr/bin/env python
> 
> or
> 
> #!/usr/bin/env perl
> 
> to deal with the situation where the python or perl binary lives in
> different places on different systems (please don't reply suggesting I
> just move it or just install Debian or something, some of us still work
> in archaic environments where we don't have root on servers we use)
> 
> However, you can't pass arguments to whatever you're invoking, thanks to
> the limits of the #! interpretion ("#!/usr/bin/env perl -w" at the top
> of a file causes a search for a binary named "perl -w"). 

Are you sure? env --help suggests that it doesn't.

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] Cross platform interpreter invocation

2004-03-29 Thread Rowling, Jill
I recently had to handle a similar problem on a cross-platform PERL script.
If you can guarantee that your path is correct, i.e. `python` or (in my
case) `perl` will run the appropriate interpreter, then you should be able
to pass it the path to the script as an argument.
In my case,
perl /path/to/my/script
Worked OK even though the header in my script had
#!/wrong/path/to/interpreter.
In your case,
python /path/to/your/script
Should work on all platforms.
The -w argument, if required for PERL should be invoked:
perl -w /path/to/my/script

Hope that helps,

- Jill.

-Original Message-
From: Mary Gardiner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 30 March 2004 1:47 PM
To: [EMAIL PROTECTED]
Subject: [SLUG] Cross platform interpreter invocation


Hi folks,

I'm accustomed to starting my various Python and Perl files with:

#!/usr/bin/env python

or

#!/usr/bin/env perl

to deal with the situation where the python or perl binary lives in
different places on different systems (please don't reply suggesting I just
move it or just install Debian or something, some of us still work in
archaic environments where we don't have root on servers we use)

However, you can't pass arguments to whatever you're invoking, thanks to the
limits of the #! interpretion ("#!/usr/bin/env perl -w" at the top of a file
causes a search for a binary named "perl -w"). What workaround do people use
for this problem in general? (I know -w is equivalent to "use warnings;" so
I know the Perl workaround)

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

--
IMPORTANT NOTICES
This email (including any documents referred to in, or attached, to this
email) may contain information that is personal, confidential or the subject
of copyright or other proprietary rights in favour of Aristocrat, its
affiliates or third parties. This email is intended only for the named
addressee. Any privacy, confidence, copyright or other proprietary rights in
favour of Aristocrat, its affiliates or third parties, is not lost because
this email was sent to you by mistake.

If you received this email by mistake you should: (i) not copy, disclose,
distribute or otherwise use it, or its contents, without the consent of
Aristocrat or the owner of the relevant rights; (ii) let us know of the
mistake by reply email or by telephone (+61 2 9413 6300); and (iii) delete
it from your system and destroy all copies.

Any personal information contained in this email must be handled in
accordance with applicable privacy laws.

Electronic and internet communications can be interfered with or affected by
viruses and other defects. As a result, such communications may not be
successfully received or, if received, may cause interference with the
integrity of receiving, processing or related systems (including hardware,
software and data or information on, or using, that hardware or software).
Aristocrat gives no assurances in relation to these matters.

If you have any doubts about the veracity or integrity of any electronic
communication we appear to have sent you, please call +61 2 9413 6300 for
clarification.
-- 
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] Cross platform interpreter invocation

2004-03-29 Thread James Gregory
On Tue, 2004-03-30 at 03:47, Mary Gardiner wrote:
> Hi folks,
> 
> I'm accustomed to starting my various Python and Perl files with:
> 
> #!/usr/bin/env python
> 
> or
> 
> #!/usr/bin/env perl
> 
> to deal with the situation where the python or perl binary lives in
> different places on different systems (please don't reply suggesting I
> just move it or just install Debian or something, some of us still work
> in archaic environments where we don't have root on servers we use)
> 
> However, you can't pass arguments to whatever you're invoking, thanks to
> the limits of the #! interpretion ("#!/usr/bin/env perl -w" at the top
> of a file causes a search for a binary named "perl -w"). What workaround
> do people use for this problem in general? (I know -w is equivalent to
> "use warnings;" so I know the Perl workaround)

In general I've found the easiest way is the cop-out of making a wrapper
script that finds perl/python (or in my case I have the wrapper script
generated out of a make rule that substitutes the appropriate
system-specific values) and execs it along with any arguments you need.

Pretty messy, but it's the best I've come up with in the past. I'd also
be interested in a better way.

HTH,

James.


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


[SLUG] Cross platform interpreter invocation

2004-03-29 Thread Mary Gardiner
Hi folks,

I'm accustomed to starting my various Python and Perl files with:

#!/usr/bin/env python

or

#!/usr/bin/env perl

to deal with the situation where the python or perl binary lives in
different places on different systems (please don't reply suggesting I
just move it or just install Debian or something, some of us still work
in archaic environments where we don't have root on servers we use)

However, you can't pass arguments to whatever you're invoking, thanks to
the limits of the #! interpretion ("#!/usr/bin/env perl -w" at the top
of a file causes a search for a binary named "perl -w"). What workaround
do people use for this problem in general? (I know -w is equivalent to
"use warnings;" so I know the Perl workaround)

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


[SLUG] OT: Justice of the Peace in Sydney CBD (Wynard/Circular Quay)

2004-03-29 Thread Rajnish Tiwari
Hi All,

It appears that finding hens teeth might be easier than
a JP in sydney cbd. The banks say call the Postoffice,
and post office direct you to the banks !! And the reception
of a high profile law firm has no idea - typical lawyers ?

Anyone know of a JP in sydney cbd (prefer Wynyard/Circular Quay but
any where along train line will do) ?

Thanks in advance.

Regards,
Raj

PS: Is there a JP amongst fellow sluggers ? :-)


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


[SLUG] TV Capture cards

2004-03-29 Thread kevin . saenz
Hi all,

I want to upgrade my T.V Capture can anyone recommend
a good tv capture card? probably something that is FM capable
as well

Thanks

Kevin


-- 
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] info on barebone laptos

2004-03-29 Thread Benno
On Tue Mar 30, 2004 at 10:47:50 +1000, Simon Wong wrote:
>On Tue, 2004-03-30 at 09:53, Grant Parnell wrote:
>> Depends what you mean by barebone. The following examples are just with no 
>> operating system & no bundled software.
>> http://www.everythinglinux.com.au/cat/systems/laptops
>
>What modems are in those laptops?

Questions about ELX products should probably be directed
to them: http://www.everythinglinux.com.au/contact.php3

Benno
-- 
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] info on barebone laptos

2004-03-29 Thread Simon Wong
On Tue, 2004-03-30 at 09:53, Grant Parnell wrote:
> Depends what you mean by barebone. The following examples are just with no 
> operating system & no bundled software.
> http://www.everythinglinux.com.au/cat/systems/laptops

What modems are in those laptops?





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


[SLUG] Sharp Zaurus?

2004-03-29 Thread Peter Chubb

Hi,
Has anyone had any experience with the Sharp Zaurus, or other
Linux-based PDAs?  I'm particularly interested in how usable they are
for usual PDA type stuff (like the Datebook etc., functionality on a
PalmOs device), as well as for the usual Linux stuff (taking quick
memos, synchronisation with a Linux desktop, etc.)  

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
The technical we do immediately,  the political takes *forever*

-- 
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] info on barebone laptos

2004-03-29 Thread Grant Parnell
On Mon, 29 Mar 2004, Rodolfo Binker wrote:

> We are looking for barebone laptops I stumble upon this site please send
> me info at [EMAIL PROTECTED] 

Depends what you mean by barebone. The following examples are just with no 
operating system & no bundled software.
http://www.everythinglinux.com.au/cat/systems/laptops
There's others available and I have to say I work there so I'm slightly 
biased :-)

If you're not in Australia I'd suggest looking in Asia.

-- 
--
Electronic Hobbyist, Former Arcadia BBS nut, Occasional nudist, 
Linux Guru, SLUG Secretary, AUUG and Linux Australia member, Sydney 
Flashmobber, BMX rider, Walker, Raver & rave music lover, Big kid that 
refuses to grow up. I'd make a good family pet, take me home today!
Do people actually read these things?



-- 
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] bash pptp heartbeat script

2004-03-29 Thread Alexander Samad
On Sun, Mar 28, 2004 at 12:02:01PM +1000, Amanda wrote:
> Quoting James Gray <[EMAIL PROTECTED]>:
> 
> > 
> > Amanda wrote:
> > > Have a pptp connection from SME server to windows 2000 vpn server.
> > > I'm looking for a bash script which will periodically (launched from cron)
> > ping
> > > a machine on the remote network and restart pptp if it doesn't respond.
> > > 
> > > I wrote a similar thing for dos years ago which captured the output of ping
> > into
> > > a text file, then looked for the string "reply from".
> > > 
> > > I've been googling for ages but haven't found anything.
> > > 
> > > thanks.
> > > 
> > > Amanda
> > 
> > Hi Amanda,
> > 
> > I had a similar problem but pinging wasn't going to work - we use use 
> > BGP and sometimes the routing table would get screwed up so ping would 
> > fail even though the tunnel was still up.
> > 
> > This would result in ppp1, ppp2, etc being started and wasn't what we 
> > wanted.  So we decided to use the status of the pppd processes (via it's 
> > PID file) to determine if the tunnel was active.  Maybe you could use 
> > James Greg's and John Clarke's solutions and build some of the logic 
> > from my script into a home-spun thing for yourself.
> > 
> 
> Not sure this would work in my situation. The thing that will kill the
> connection in my case is the ISP (telstra) dropping the connection (ISDN) after
> 5 hours. I'm currently testing all this from my home network (this server will
> be going to Mackay in Qld); using ADSL.  I'm re-booting my internal router to
> simulate the connection being lost. If I then do "pptp-command status" it
> reports that the link is probably up. But pinging 10.0.0.150 (the machine on the
> other end that mysql replicates against) gets no response.

Why not do it the other way around and bring the connect down every 4h
50 min.  That way you could stop/halt/suspend anything that requires the
link and then restart once the link is back up

> 
> Amanda
> 
> 
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.fsf.org/philosophy/no-word-attachments.html
> 
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 


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


[SLUG] Reminder: Goonellabah Linux User's Group Visit

2004-03-29 Thread Mary Gardiner
Hey folks,

The website reminds me that final confirmation for the Goonellabah Linux
Users Group Visit (fly to the Northern Rivers Region the weekend of May
22, meet GLUG members, share skills etc) is approaching: final
confirmation due Friday 2nd April (this Friday).

Details: http://www.slug.org.au/events/detail.html?id=138

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


[SLUG] automated response

2004-03-29 Thread Retired Users
Hello! You mailed to an address that is no longer in Use. If your mail is a newsletter 
or similar please remove from Mailing List!
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] info on barebone laptos

2004-03-29 Thread Rodolfo Binker








We are looking for barebone
laptops I stumble upon this site please send me info at [EMAIL PROTECTED] 






-- 
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] Forwarding netbios broadcasts

2004-03-29 Thread Robert Collins
On Fri, 2004-03-26 at 17:18, Glen Turner wrote:

>   [1] Spanning tree is getting more and more
>   doubtful, better to set MAC address limits
>   on end-user ports to prevent accidental
>   switch attachment and then disable STP
>   on those user-facing ports.

Thats always been the case. STP is not appropriate to have on random
switch ports... STP simply allows one to build a redundant LAN
infrastructure.

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] Is SATA a viable upgrade for aging Linux workstations?

2004-03-29 Thread Keith Hopkins
David wrote:
for those of us who aren't up with the latest acronym, what exactly is
PATA and SATA, and should I already know??
You should already know ;)

  ATA is/was the "new" name for IDE (Integrated Drive Electronics).  ATA (Advanced Technology Attachment) is the official ANSI (American National Standards Institute) name for IDE.

  S/P are Serial and Parallel, respectively.  SATA is the "new" technology, and since it has come into use, we had to start using PATA (instead of IDE) to tell them apart.

  So, generally speaking, they are the names for the interfaces connecting your mainboard to your hard drive.

  Older technology used names like RLL, MFM, ESDI.  Still commonly used on high end systems are SCSI and sometime FC and FC-AL (Fibre Channel-Arbitrated Loop).

--
Lost in Tokyo,
  Keith
--
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] Is SATA a viable upgrade for aging Linux workstations?

2004-03-29 Thread Alexander Samad
On Mon, Mar 29, 2004 at 06:35:13PM +1000, David wrote:
> 
> 
> for those of us who aren't up with the latest acronym, what exactly is
> PATA and SATA, and should I already know??

PATA - Parrallel ATA 
SATA - Serial ATA - new gen drives

> 
> On Mon, 29 Mar 2004, Malcolm V wrote:
> 
> > Date: Mon, 29 Mar 2004 13:31:15 +1000
> > From: Malcolm V <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Re: [SLUG] Is SATA a viable upgrade for aging Linux workstations?
> >
> > On Sun, 2004-03-28 at 17:10, Andrew Lau wrote:
> > > Hey everyone,
> > >
> > > I'm stuck at a crossroads right now. My main Athlon 1.2 Ghz workstation
> > > with a Promise UDMA5/100 controller is probably on its last legs before
> > > retirement (its given me 3 years of loyal service -- looking to squeeze
> > > out 2 more). Seeing as it needs a new harddrive anyway, I'm really
> > > wondering whether paying an extra $20-$25 per harddrive and an another
> > > $70 for a Silicon Image Serial ATA Controller [1] is worth it. LKML
> > > posts also seem to give the general impression that overall SATA driver
> > > support under Linux is still preliminary.
> >
> >   My parents wanted a new computer so I used them as guinea pigs for a
> > software raided SATA Gentoo install. It had its moments but it is
> > running fine now.
> >
> >   For the best "bang for your buck", I'd recommend sticking with PATA,
> > (2 cheap, smaller drives) and software raiding them under Linux. The
> > ability to mix and match the raid types per partition is a bonus, and as
> > most on-board/cheap raid is actually software raid (with poorly
> > supported Linux drivers) the only loss is raid performance in Windows
> > (if you're dual-booting).
> >
> > Cheers,
> > Malcolm V.
> >
> > --
> > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> >
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
> 


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


Re: [SLUG] Is SATA a viable upgrade for aging Linux workstations?

2004-03-29 Thread David


for those of us who aren't up with the latest acronym, what exactly is
PATA and SATA, and should I already know??

On Mon, 29 Mar 2004, Malcolm V wrote:

> Date: Mon, 29 Mar 2004 13:31:15 +1000
> From: Malcolm V <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [SLUG] Is SATA a viable upgrade for aging Linux workstations?
>
> On Sun, 2004-03-28 at 17:10, Andrew Lau wrote:
> > Hey everyone,
> >
> > I'm stuck at a crossroads right now. My main Athlon 1.2 Ghz workstation
> > with a Promise UDMA5/100 controller is probably on its last legs before
> > retirement (its given me 3 years of loyal service -- looking to squeeze
> > out 2 more). Seeing as it needs a new harddrive anyway, I'm really
> > wondering whether paying an extra $20-$25 per harddrive and an another
> > $70 for a Silicon Image Serial ATA Controller [1] is worth it. LKML
> > posts also seem to give the general impression that overall SATA driver
> > support under Linux is still preliminary.
>
>   My parents wanted a new computer so I used them as guinea pigs for a
> software raided SATA Gentoo install. It had its moments but it is
> running fine now.
>
>   For the best "bang for your buck", I'd recommend sticking with PATA,
> (2 cheap, smaller drives) and software raiding them under Linux. The
> ability to mix and match the raid types per partition is a bonus, and as
> most on-board/cheap raid is actually software raid (with poorly
> supported Linux drivers) the only loss is raid performance in Windows
> (if you're dual-booting).
>
> Cheers,
> Malcolm V.
>
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
-- 
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] file permissions, php, & move_uploaded_file

2004-03-29 Thread Amanda
Quoting James Gregory <[EMAIL PROTECTED]>:

> On Sun, 2004-03-28 at 12:18, Amanda wrote:
> 
> > If I then do
> > if(!move_uploaded_file($_FILES['userfile']['tmp_name'], $dest_file))
> >  (snip error messages for clarity)
> 
> 
> > 
> > it uploads the file just fine, but permissions are set to -rw---
> > 
> > If I then do
> > $result = chmod ("$dest_file", 0777);
> > if (!$result) 
> >   {
> >   echo "ERROR CHANGING PERMISSIONS FOR $dest_file";
> >   }
> 
> This is probably PHP trying to be "secure". It's been a very long time
> since I've used php, but as a starting point I'd suggest looking in
> php.ini for 'safe mode' or similar. It might also be worth doing the
> chmod before the move. I don't know if it'll change anything, but PHP
> does keep track of the files it uses for uploads, It may let you perform
> operations on uploaded files that you can't do on arbitrary files.
> 
> And, as always, check the filename and so forth.
> 
> HTH,
> 
> James.
 
Safe mode is already off. I'll trying doing a chmod on the uploaded temporary
file before I move it. And yes, the file name is correct (it's held in a variable).

Amanda

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

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