Re: [SLUG] FW: Script help

2005-09-21 Thread Matthew Hannigan
On Thu, Sep 22, 2005 at 04:22:38PM +1000, Vino Fernando Crescini wrote: > > >#!/bin/bash > >while read name; do > >grep $name smbpasswd > newlist; > >done < allusers.txt > > The > redirection will overwrite the file if it exists. Use >> > to append to the file. Or move the >newlist to the last

Re: [SLUG] FW: Script help

2005-09-21 Thread Vino Fernando Crescini
Hmmm, just loaded the allusers.txt file into pico and did a write out and it now works, must have still been a windows file. Now my modified procedure is below but I only get one entry in the newlist file (either the last one in allusers or the last processed if I interrupt it. #!/bin/bash whi

Re: [SLUG] FW: Script help

2005-09-21 Thread Vino Fernando Crescini
Hmmm, just loaded the allusers.txt file into pico and did a write out and it now works, must have still been a windows file. Now my modified procedure is below but I only get one entry in the newlist file (either the last one in allusers or the last processed if I interrupt it. #!/bin/bash whil

Re: [SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Mark Johnathan Greenaway
On Thu, Sep 22, 2005 at 03:18:23PM +1000, Denis Crowdy wrote: > > I use an Edirol UA-20 audio/MIDI interface, and it just works. It has > > the features you're describing, but is probably overkill for your > > application. I thought you might appreciate hearing from someone who has > > worked with

[SLUG] FW: Script help

2005-09-21 Thread Simon
Hmmm, just loaded the allusers.txt file into pico and did a write out and it now works, must have still been a windows file. Now my modified procedure is below but I only get one entry in the newlist file (either the last one in allusers or the last processed if I interrupt it. #!/bin/bash while r

Re: [SLUG] Script help

2005-09-21 Thread Vino Fernando Crescini
yep, and if I cat the file they are displayed that way I know it's a longshot, but can you confirm that there are no ^M (CR) characters in the end of each line in allusers.txt? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vino Fernando Crescini Se

Re: [SLUG] Script help

2005-09-21 Thread Vino Fernando Crescini
#!/bin/bash while read name; do grep $name smbpasswd; done < allusers.txt are the names in allusers.txt listed one per line? -- Vino Fernando Crescini Intelligent Systems Laboratory School of Computing & IT phone: +61 2 4736 0140 Univer

[SLUG] Script help

2005-09-21 Thread Simon
Hi all, Can anyone tell me why I get no output from this script? I am not good at writing my own so modify others. I have tested that it is reading the allusers.txt by adding an echo $name #!/bin/bash while read name; do grep $name smbpasswd; done < allusers.txt My basic problem is I have an smbp

Re: [SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Denis Crowdy
On Thu, Sep 22, 2005 at 11:38:57AM +1000, Mark Johnathan Greenaway wrote: > On Wed, Sep 21, 2005 at 05:41:38PM +0200, Gottfried Szing wrote: > > so, has someone a usb-audio device in use? > > requirements: > > - linux 2.4 support (because openwrt uses this version) > > - headphone mini jack. i want

Re: [SLUG] gzip from perl script

2005-09-21 Thread Erik de Castro Lopo
Jacinta Richardson wrote: > Voytek wrote: > > > > > > unless( unlink("$backuppath/$database-$oldyear$oldmonth$oldday.sql.gz"); > > Ah. Remove the trailing ; and replace with a ) { Oh, cool, a Perl person. One thing thats been bugging me for a while about Perl is the lack of a butfirst keyw

Re: [SLUG] gzip from perl script

2005-09-21 Thread Voytek
> Voytek wrote: > My apologies. Although I do find that it's usually better to to assume > that people who are asking about an existing Perl program are more often > Perl > literate than they are Perl newbies. :) no need to apologize, I'm flattered > On further thought you proably want to ch

Re: [SLUG] gzip from perl script

2005-09-21 Thread Julio Cesar Ody
On 9/21/05, Voytek <[EMAIL PROTECTED]> wrote: > ... > do I simply add like: > > system("gzip $backuppath/$arr[1]-$year$month$day.sql"); > (and change the 'rm' line extension?) Go for it. There's no reason to install the module when you can safely do it via system(). In fact, don't be afraid of usi

Re: [SLUG] gzip from perl script

2005-09-21 Thread Jacinta Richardson
Voytek wrote: > > > thanks, Jacinta > > ahem, you assume I'm somewhat perl-literate, beyond knowing how to > paste'n'save... I'm not... My apologies. Although I do find that it's usually better to to assume that people who are asking about an existing Perl program are more often Perl literate

Re: [SLUG] gzip from perl script

2005-09-21 Thread Voytek
thanks, Jacinta ahem, you assume I'm somewhat perl-literate, beyond knowing how to paste'n'save... I'm not... the script was kindly given to me in the past by a slugger paste'n'save gave me an error on the last '}' in your additions, after chopping it, I'm getting: # perl mysqlbackup-day.pl

Re: [SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Mark Johnathan Greenaway
On Wed, Sep 21, 2005 at 05:41:38PM +0200, Gottfried Szing wrote: > so, has someone a usb-audio device in use? > requirements: > - linux 2.4 support (because openwrt uses this version) > - headphone mini jack. i want to connect it to my amplifier I use an Edirol UA-20 audio/MIDI interface, and it j

Re: [SLUG] gzip from perl script

2005-09-21 Thread Jacinta Richardson
G'day Voytek, In a spirit of defensive programming, I have an important question for you. What happens if the mysqldump fails? Perhaps the database goes offline part way through, perhaps the disk fills up... since you've just deleted your old backup, what are you going to do? I suggest the follo

Re: [SLUG] great code to learn from - request

2005-09-21 Thread O Plameras
Hi Taryn, It seems to me you are looking for a project to exercise and to learn new tricks in programming. Project that challenges you enough but not too much, for starters. An environment that provides feedbacks - positive, neutral, or negative or peer reviews of your work. Then, if I w

Re: [SLUG] Gentoo

2005-09-21 Thread Dean Hamstead
just for everyones info if you want BSD style linux (and lets face it... who doesnt) there is crux! www.crux.nu Dean Julio Cesar Ody wrote: I'm a FreeBSD user/sysadmin/tweak-for-fun-guy. I used slackware until recently when I started to use Gentoo as my GNU/Linux system. Gentoo has a package

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Taryn East
* Matthew Hannigan <[EMAIL PROTECTED]> spake thus: > On Wed, Sep 21, 2005 at 01:09:52PM +1000, Taryn East wrote: > > what nobody else is going to bite? :( > > Depends whether you wanted programming in the small or large. anything and everything will help. > Jon Bentley's Programming Pearls books

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Taryn East
* Ian Wienand <[EMAIL PROTECTED]> spake thus: > So the best code is code you look at and say "is that it - I could > have done that", even though you probably couldn't have. good point! > If you're interested in systems, I'd suggest starting with an > intermediate step of some good books first, t

Re: [SLUG] Gentoo

2005-09-21 Thread Julio Cesar Ody
I'm a FreeBSD user/sysadmin/tweak-for-fun-guy. I used slackware until recently when I started to use Gentoo as my GNU/Linux system. Gentoo has a package management system that resembles the BSD ports system. If you take your time reading the Gentoo Handbook, you'll have enough knowledge to make it

Re: [SLUG] gzip from perl script

2005-09-21 Thread Gonzalo Servat
On 9/22/05, Voytek <[EMAIL PROTECTED]> wrote: [snip] > do I simply add like: > > system("gzip $backuppath/$arr[1]-$year$month$day.sql"); > (and change the 'rm' line extension?) > ? http://search.cpan.org Look for the GZIP module, nicer way of doing it. Also, you probably want to use unlink instea

[SLUG] gzip from perl script

2005-09-21 Thread Voytek
I'm using a Perl script for MySQL backup, I'd like to compress the database dumps, the business end of the script runs like: --- while (my @arr = $sth->fetchrow) { print "$arr[1]\n"; system("rm $backuppath/$arr[1]-$oldyear$oldmonth$oldday.sql"); system("mysqldump --opt $arr[1] -u $DB_

Re: [SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Peter Hardy
On Wed, 2005-09-21 at 17:41 +0200, Gottfried Szing wrote: > i have checked the support for external storage of linux and this works > fine, but i havent seen a list of supported usb-audio-devices. on the > web are hosts of pages that describe sometimes that usb-audio is no > problem, sometimes t

Re: [SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Rev Simon Rumble
On 21/9/2005, "Gottfried Szing" <[EMAIL PROTECTED]> wrote: >i have checked the support for external storage of linux and this works >fine, but i havent seen a list of supported usb-audio-devices. on the >web are hosts of pages that describe sometimes that usb-audio is no >problem, sometimes that

[SLUG] usb audio device for kernel 2.4

2005-09-21 Thread Gottfried Szing
hi slugs, today my asus wifi router has arrived and i am going to play around with it this weekend. so i will try to install openwrt. because it has 2x usb ports, having a standalone mp3-player with an external harddisk seems to be possible. i have checked the support for external storage o

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread Conrad Parker
On Mon, Sep 19, 2005 at 10:03:23AM +1000, Jacinta Richardson wrote: > G'day everyone, > > You are invited to join us in a talk by Paul Fenwick about Presentation Mind > Control - how to make other people think your talk is much better than it > really > is. Come and learn some great tips on how

[SLUG] Heres on for the late nighters

2005-09-21 Thread James Purser
I am trying to get Skype to run through artsd and jack so I can pipe it to an icecast client. Below is what I got from the guy who wrote the icecast client: This bit works fine: jackd -d alsa -r 44100 & # Or however you normally start it. # The next line will not work if arts is suspended. It m

Re: [SLUG] minimal live CD

2005-09-21 Thread Peter Hardy
On Wed, 2005-09-21 at 21:30 +1000, Ken Caldwell wrote: > On Wed, 2005-09-21 at 19:38 +1000, David wrote: > > I just used a live CD for the first time (Ubuntu), and as good as it is, > > all I really want is a shell for diagnostics. It took ages to install. > > > > Can anyone suggest a live distro

[SLUG] minimal live CD

2005-09-21 Thread James
On Wednesday 21 September 2005 19:47, [EMAIL PROTECTED] wrote: > I just used a live CD for the first time (Ubuntu), and as good as it is, > all I really want is a shell for diagnostics. It took ages to install. > > Can anyone suggest a live distro that either doesn't have X at all, or has > an opti

Re: [SLUG] "Your browser does not support script"

2005-09-21 Thread unauthorized
> Yet under all the Preferences I've ticked all the correct boxes explicitly > allowing Javascript. My Gnome network proxy is set to allow direct > internet connection (unlike T*bird & F*fox I never managed to get > it working) and I'm at a loss ... What's the gnome network proxy? Chris- -- SLUG

Re: [SLUG] minimal live CD

2005-09-21 Thread David Kempe
David wrote: I've looked at the Knoppix website, but that looks similar in concept to Ubuntu. There are a million Knoppix variants, but if you want a Knoppix shell you can simply boot knoppix with knoppix 2 at the boot prompt. it boots runlevel 2 I think - all knoppix root shell, with all har

Re: [SLUG] "Your browser does not support script"

2005-09-21 Thread Richard
pop up blocking St George for example wont even work with IE6 sp2 unless you tell the pop up blocker to ignore the St George website (same for Firefox). So add your banks URL to the pop up blocker "allowed" list. On Wed, 2005-09-21 at 23:28 +1200, Adam Bogacki wrote: Huh ? I've happily us

Re: [SLUG] minimal live CD

2005-09-21 Thread Ken Caldwell
On Wed, 2005-09-21 at 19:38 +1000, David wrote: > I just used a live CD for the first time (Ubuntu), and as good as it is, > all I really want is a shell for diagnostics. It took ages to install. > > Can anyone suggest a live distro that either doesn't have X at all, or has > an option to bypass

[SLUG] "Your browser does not support script"

2005-09-21 Thread Adam Bogacki
Huh ? I've happily used internet banking with Commonwealth, St. George, and ANZ using Epiphany, Galeon, Firefox & Mozilla but now find Moz is the only one working and all the others are giving me variations on the message that 'Your browser does not support Javascript'. Yet under all the Preferenc

Re: [SLUG] great code to learn from - request

2005-09-21 Thread Matthew Hannigan
On Wed, Sep 21, 2005 at 01:09:52PM +1000, Taryn East wrote: > what nobody else is going to bite? :( Depends whether you wanted programming in the small or large. Jon Bentley's Programming Pearls books are excellent. Not sure whether they count as FOSS though. Matt -- SLUG - Sydney Linux User's

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread Matthew Hannigan
On Wed, Sep 21, 2005 at 05:59:10PM +1000, Michael Kraus wrote: > Lighten up - the talk is obviously on conference presentation. Of course, that's just what YOU would LIKE us TO believe! -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http:

Re: [SLUG] Gentoo

2005-09-21 Thread Sridhar Dhanapalan
On Wed, 21 Sep 2005 18:54, Gerald <[EMAIL PROTECTED]> wrote: > Do any Sluggers run Gentoo? I do. > Has anyone tried to install the Gentoo live cd? Not since 2002, when I installed my main system. That's a testament to how well a Gentoo system can run and be kept up-to-date, despite being sourc

Re: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread O Plameras
Michael Kraus wrote: Oscar, Have you grown too technical and too old to have a sense of humour anymore? You've nothing to say constructive, so don't say it here. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mai

[SLUG] minimal live CD

2005-09-21 Thread David
I just used a live CD for the first time (Ubuntu), and as good as it is, all I really want is a shell for diagnostics. It took ages to install. Can anyone suggest a live distro that either doesn't have X at all, or has an option to bypass it. Naturally it would be nice if it was reasonably mode

[SLUG] Gentoo

2005-09-21 Thread Gerald
Hi to all Once more. I have been travelling around Aus for abount 15 Months and am noew settled down again. Its a BIG country 15 months and we saw only a small part of it. Down to business!!! Do any Sluggers run Gentoo? Has anyone tried to install the Gentoo live cd? How many answers to affirn w

Re: [SLUG] Re: wifi router

2005-09-21 Thread Alexander Samad
On Wed, Sep 21, 2005 at 04:44:21PM +1000, Shaun Butler wrote: > I recently acquired a couple of WRT54G routers to create a wireless network > at home. I've flashed one of them with the dd-wrt firmware. The great thing > about using the open source firmwares out there like dd-wrt and OpenWRT is > th

RE: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread Michael Kraus
> 3) Unfortunately, Jacinta earnt her bile. And here I was thinking that enough bile would be produced in Jacinta's own liver. Rafael Kraus Software Developer Wild Internet & Telecom [EMAIL PROTECTED] 02 8306 0088 Technical Support 02 8306 0077 Sales | 02 8306 0099 Fax 02 8306 0055 Administration

RE: [SLUG] Presentation Mind Control - 21st September 2005

2005-09-21 Thread Michael Kraus
Oscar, Have you grown too technical and too old to have a sense of humour anymore? Lighten up - the talk is obviously on conference presentation. Rafael Kraus Software Developer Wild Internet & Telecom [EMAIL PROTECTED] 02 8306 0088 Technical Support 02 8306 0077 Sales | 02 8306 0099 Fax 02 8306