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
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
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
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
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
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
#!/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
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
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
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
> 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
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
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
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
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
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
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
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
* 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
* 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
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
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
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_
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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:
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
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
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
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
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
> 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
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
44 matches
Mail list logo