Re: Problem with time command

2011-04-06 Thread Chris Jackson
This also means you can't disable it: chrisj@alice$ enable -n time bash: enable: time: not a shell builtin Not sure why time is a keyword (on a par with if, for etc.) rather than a builtin, but there you go. If anyone has any enlightenment, I'd be curious ;) -- Chris Jackson Shadowcat Systems Ltd

Re: Problem with time command

2011-04-06 Thread Chris Jackson
Boyd Stephen Smith Jr. wrote: In 4d9c342a.1090...@shadowcat.co.uk, Chris Jackson wrote: Boyd Stephen Smith Jr. wrote: GNU time 1.7 bss@dellbuntu:~$ type time time is a shell keyword (Bash has a time builtin that you should avoid if you want to use the time binary.) Actually it's

Re: [OT] English language [was:Re: OpenOffice.org - how to install additional languages?]

2011-04-03 Thread Chris Jackson
? Interestingly, Samuel Johnson's admiration for the French Academy was what inspired him to write his dictionary, and it seems it was in part due to this admiration he chose the French-style spellings. Center etc. was more common before that. No political points, just observations ;) -- Chris Jackson

Re: Command line: How do you keep the output from scrolling out of sight?

2011-03-01 Thread Chris Jackson
, but a web search will provide many others: http://linuxcommand.org/ -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d6d2b63.70

Re: File systems' timestamps apparently formatted in a wrong way ...

2011-01-02 Thread Chris Jackson
. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d20774d.4000...@shadowcat.co.uk

Re: bash increment in a given way

2010-12-11 Thread Chris Jackson
S Mathias wrote: $ MAGIC; do echo Welcome $i times; done Welcome 0 times Welcome 1 times Welcome 4 times Welcome 5 times Welcome 8 times Welcome 9 times $ thanks:\ for i in 0 1 4 5 8 9; do elcome $i times; done -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email

Re: An experiment about file timestamp

2010-11-04 Thread Chris Jackson
Rodolfo Medina wrote: Chris Jackson c.jack...@shadowcat.co.uk writes: File timestamps are (or at least should be) stored in UTC. It's the display of them that's affected. But I did the following experiment: on a computer with system time set to UTC, I created a file at 14:43 UTC

Re: what is the use of -c parameter of column(1), can you demonstrate with an example?

2010-11-02 Thread Chris Jackson
-into-columns.html (bit fugly) or, depending on exactly what you need, look at pr(1). -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org

Re: Timestamps jump by one hour when switching timezone

2010-11-02 Thread Chris Jackson
are. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4cd008b0.4080...@shadowcat.co.uk

Re: [OT] Re: Toner refill

2010-10-29 Thread Chris Jackson
something tech geek living in mom's basement :) Pot, this is Kettle. Kettle, meet Pot. Don't make me come back there, you two! :) -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas

Re: escape .c files to html code with bash how?

2010-10-18 Thread Chris Jackson
at this and still haven't figured it out since July; it's very simple... -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org

Re: a data rate threshold tool?

2010-10-09 Thread Chris Jackson
)) { print STDERR error reading: $!\n; exit 1; } exit 0; -- end of script -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4cb066fc.30

Re: su?

2010-09-11 Thread Chris Jackson
/su is in the login package. If you want to supply a command to it, rather than run a shell, you need su -c command su something tries to change to user something and run a shell (man su for details). -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ

Re: Ethernet connection

2010-09-03 Thread Chris Jackson
program running locally (you can do this with an external address too, but lo is there for if you're not running one, or it's not up at the moment, etc.). eth interfaces shouldn't have this address. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ

Re: 2 packages with the same file

2010-08-10 Thread Chris Jackson
it, just: export LC_ALL=en_US.UTF-8 do your stuff, and unset LC_ALL to go back to French. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http

Re: iceweasel doesn't open research.microsoft.com

2010-06-29 Thread Chris Jackson
cookies are enabled. For example, trying to open http://research.microsoft.com/en-us/people/thoare/ Opens ok here, squeeze Iceweasel/3.5.9 It's fine from here too, lenny iceweasel 3.0.6-3 -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

Re: usage of ifconfig

2010-06-16 Thread Chris Jackson
the classful netmask for 70.x.x.x. I've never seen ifconfig used without an interface specified before (other than to print current settings), but a quick experiment indicates the netmask needs to go after the ip address: ifconfig eth0 70.7.4.102 netmask 255.255.255.0 -- Chris Jackson Shadowcat

Re: tricky perl question - ascending order

2010-05-23 Thread Chris Jackson
=1 } else { if ($f) { $x{$_}=[]; $k=$_; $f=0 } else { push @{$x{$k}}, $_ } } } for(sort keys %x) { print $_, \n, join(\n, @{$x{$_}}), \n\n }' There's probably a perl hacker or two who can do it neater, but as I say, it seems to work ;) -- Chris Jackson Shadowcat Systems Ltd

Re: Put date on log file names?

2010-05-17 Thread Chris Jackson
;) -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf1874f.60...@shadowcat.co.uk

Re: Odd logcheck behaviour.

2010-04-28 Thread Chris Jackson
not be in the same directory you were in. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bd854dd.1080...@shadowcat.co.uk

Re: how to remove postgresql package that don't want to be ?

2010-03-19 Thread Chris Jackson
need to remove it by that name, not just postgresql. You may need to remove the client/common files separately. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: bash scripting question

2010-03-19 Thread Chris Jackson
can't for the life of me see what's going on. now='09:07:16'; startHr=${now%%:*}; startHR=${startHr#*0}; echo $startHr; 09 str=09; str=${str#*0}; echo $str; 9 Did you mean to echo $startHR - capital 'R' - in the first one? That is '9' as you are expecting ;) -- Chris Jackson Shadowcat

Re: bash scripting question

2010-03-19 Thread Chris Jackson
Paul E Condon wrote: Try: bgn=$(date +%s) sleep 7 end=$(date +%s) echo elapsed seconds = $(( end - bgn )) You might also want to experiment with: ps h -o etime $$ as long as you're happy with it only running under gnu. Prints the elapsed time for the shell. -- Chris Jackson Shadowcat

Re: Kernel headers for 2.6.32-trunk-686?

2010-03-19 Thread Chris Jackson
for building source packages. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ba3f43e.60...@shadowcat.co.uk

Re: why does resolv.conf change?

2010-03-18 Thread Chris Jackson
Clive McBarton wrote: My /etc/resolv.conf gets overwritten periodically. Any ideas why? I thought network-manager was the culprit and deinstaled it, but the problem persists. dhcpd can do it. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ

Re: Clearing Screen on Logout?

2010-03-02 Thread Chris Jackson
Carlos Williams wrote: I think having to type 'clear' before log out is crazy. Also if I have 1,000 users, thats a log of files to edit. Is there no global file config that will achieve this? /etc/bash.logout -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user

group vector not updating

2010-03-01 Thread Chris Jackson
is there. Anyone any idea as to what causes that - and what to do about it? Thanks. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org

Re: Bash question: get output as a variable?

2010-02-05 Thread Chris Jackson
of=$(hostname)-$(date +%Y%m%d).tbz ) 21 ) It may cause unexpected results if there're spaces in the filenames though. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: Decode unixtime

2010-01-14 Thread Chris Jackson
:08:59 GMT 2009 -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: Two computers in one: two users each with their own accounts, monitor, and keyboard?

2010-01-06 Thread Chris Jackson
time to experiment this weekend if you're still interested. -- Chris Jackson Shadowat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: USB disk shows up late at boot

2009-12-22 Thread Chris Jackson
is not always as easy as it might be, but we'll call that learning experience ;) Apart from that, you have to anticipate: for example if you think you might need USB printing, but don't have one right now, perhaps include it. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian

Re: regexp: anything but |

2009-12-09 Thread Chris Jackson
lee wrote: Hi, I'm looking for a regular expression that matches anything but the pipe sign ('|'). To match anything except |, use: [^|] -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble

Re: regexp: anything but |

2009-12-09 Thread Chris Jackson
lee wrote: On Wed, Dec 09, 2009 at 06:07:34PM +, Chris Jackson wrote: To match anything except |, use: [^|] Thanks! That's nice, but the pattern '\^.*\|[^\|]-[0-9]\|' still matches all lines ... and I don't see why/how it could to that ... Hmm. Here's an example line: TV|VOX-1|167(2

Re: regexp: anything but |

2009-12-09 Thread Chris Jackson
lee wrote: On Wed, Dec 09, 2009 at 07:07:52PM +, Chris Jackson wrote: Note that from the shell this is in single quote marks to stop shell expansions. Doing it without those would be masochism ;) It already is: l...@yun:~/tmp/chan$ cat channels.dvb | sed '/^[^|]*|[^|]*-[0-9]|/' | wc

Re: Which package provides /etc/init.d/inetd ?

2009-11-27 Thread Chris Jackson
in the package inetutils-inetd, which is started in turn by /etc/init.d/inetutils-inetd. If it's important to be called that, for a script or the like, you could symlink it perhaps? -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

Re: Which package provides /etc/init.d/inetd ?

2009-11-27 Thread Chris Jackson
Chris Jackson wrote: Looks to me like Debian doesn't have that specific file, as far as I can make out. It does have a pretty well standard /usr/sbin/inetd in the package inetutils-inetd, which is started in turn by /etc/init.d/inetutils-inetd. If it's important to be called

Re: Iceweasel annoyance

2009-11-22 Thread Chris Jackson
. This produces a little window with the email address in it. I copy this into Mutt and carry on from there. Not very elegant but it works. If you go to Edit - Preferences, go to the Applications section, and add or change the entry for content type mailto, you can use a different mailer. -- Chris

Re: BonziBuddy

2009-10-20 Thread Chris Jackson
not Windows in any way means or form, You may have better luck on perhaps a Windows mailing list. Have fun. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: BonziBuddy

2009-10-19 Thread Chris Jackson
went out of business four years or so ago, so it's not supported. Not to mention the fact it is horrible and reputed to be spyware... However, if your friend has a Windows system and really wants to do this, just search for it. HTH HAND. -- Chris Jackson Shadowcat Systems Ltd

Re: question about timezone

2009-10-03 Thread Chris Jackson
. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: dev/null only root access - why?

2009-09-22 Thread Chris Jackson
. It's a regular file of size zero created at 2109 on the 22nd of what looks like cen - which is sep in cyrillic. Whoever made the comment about something creating the file before the device gets created is right I rather suspect ;) Or udev isn't running for some reason. -- Chris Jackson

Re: dev/null only root access - why?

2009-09-22 Thread Chris Jackson
Chris Jackson wrote: Or udev isn't running for some reason. I correct myself, /dev/null exists, at least on my system (lenny), on the underlying /dev with the minimal set of devices on there. So it should never not exist as far as I can see. Did you do anything that might have

Re: df/du shows big difference of used space

2009-09-09 Thread Chris Jackson
a journal on there. If you're using ext3, dumpe2fs device will tell you how big that is. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: how to set up iceweasel 3.5 to use mutt as mailer for link sendto

2009-09-04 Thread Chris Jackson
/=/, $x, 2; print $key: $val\n; $paramhash{$key}=$val; } $cmd=mutt; $cmd.= -s .escape($paramhash{subject}) if($paramhash{subject}); $cmd.= -c .escape($paramhash{cc}) if($paramhash{cc}); $cmd.= -b .escape($paramhash{bcc}) if($paramhash{bcc}); $cmd.= $address; print $cmd\n; exec $cmd; -- Chris

Re: chown question

2009-07-02 Thread Chris Jackson
chown the home directory: chown chrisj.chrisj ~chrisj That won't follow the .. link. -- Chris Jackson -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: chown question

2009-07-02 Thread Chris Jackson
Chris Burkhardt wrote: chown chrisj.chrisj ~chrisj That won't follow the .. link. Shouldn't that include the recursive flag? chown -R chrisj.chrisj ~chrisj Apologies, yes it should. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ