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 "buil

Re: Problem with time command

2011-04-06 Thread Chris Jackson
;: chrisj@alice$ type kill kill is a shell builtin 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 enlightenmen

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

2011-04-03 Thread Chris Jackson
'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 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/4d98dc61.6020...@shadowcat.co.uk

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

2011-03-01 Thread Chris Jackson
p on how to use the command line. This site seems as good as any, 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? C

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

2011-01-02 Thread Chris Jackson
tails); alternatively stat can be useful. Other locales may vary. -- 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

Re: An experiment about file timestamp

2010-11-04 Thread Chris Jackson
Rodolfo Medina wrote: > Chris Jackson 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 cre

Re: Timestamps jump by one hour when switching timezone

2010-11-02 Thread Chris Jackson
ly one direction, wherever you 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: what is the use of -c parameter of column(1), can you demonstrate with an example?

2010-11-02 Thread Chris Jackson
u could perhaps use awk: http://unstableme.blogspot.com/2008/12/awk-formatting-fields-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

Re: [OT] Re: Toner refill

2010-10-29 Thread Chris Jackson
;ish IT veteran as he claims > B. A 20 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.d

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

2010-10-18 Thread Chris Jackson
ents I can't see how you've been making any serious attempt 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 "unsu

Re: a data rate threshold tool?

2010-10-09 Thread Chris Jackson
print STDERR "error writing: $!\n"; exit 1; } $nbytes-=$wbytes; } sleep($delay); } if(!defined($nbytes)) { print STDERR "error reading: $!\n"; exit 1; } exit 0; -- end of script -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE,

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 su tries to change to user and run a shell (man su for details). -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a

Re: Ethernet connection

2010-09-03 Thread Chris Jackson
twork/interfaces file (on "old desktop"). Everything has an "lo" interface on 127.0.0.1, that's correct; it's not the "main" address and is inaccessible from outside the host itself. It's called the loopback and is used for where you need to make

Re: 2 packages with the same file

2010-08-10 Thread Chris Jackson
your locale to do 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...@l

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.debia

Re: usage of ifconfig

2010-06-16 Thread Chris Jackson
255.0.0.0. That's 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

Re: tricky perl question - ascending order

2010-05-23 Thread Chris Jackson
;$f=1; while(<>) { chomp; if ($_ eq "") { $f=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 ca

Re: Put date on log file names?

2010-05-17 Thread Chris Jackson
e file name) Never caused me any problems ;) -- 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
n which may 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: Kernel headers for 2.6.32-trunk-686?

2010-03-19 Thread Chris Jackson
aders and a number of other useful things 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: 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. -

Re: bash scripting question

2010-03-19 Thread Chris Jackson
ommand strings but I 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 '

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

2010-03-19 Thread Chris Jackson
-8.3", you 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 "unsubscr

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 d

group vector not updating

2010-03-01 Thread Chris Jackson
p 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: htt

Re: Bash question: get output as a variable?

2010-02-05 Thread Chris Jackson
-k $1 | dd of=$(hostname)-$(date +%Y%m%d).tbz ) 2>&1 ) 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 "unsubs

Re: Decode unixtime

2010-01-14 Thread Chris Jackson
r...@hercule$ date -d '@1257624539' Sat Nov 7 20: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
some 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
s loaded. Mapping between the module name and the exact option needed 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

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]|/&

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 examp

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 "u

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 t

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

2009-11-27 Thread Chris Jackson
n 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.o

Re: Iceweasel annoyance

2009-11-22 Thread Chris Jackson
mailto", you can use a different mailer. -- 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-20 Thread Chris Jackson
m of unix, hence 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
They also 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 System

Re: question about timezone

2009-10-03 Thread Chris Jackson
n GMT+0200. -- 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
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 t

Re: dev/null only root access - why?

2009-09-22 Thread Chris Jackson
gular 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 Jack

Re: df/du shows big difference of used space

2009-09-09 Thread Chris Jackson
there. If you're using ext3, dumpe2fs 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
;}); $cmd.=" -c ".escape($paramhash{"cc"}) if($paramhash{"cc"}); $cmd.=" -b ".escape($paramhash{"bcc"}) if($paramhash{"bcc"}); $cmd.=" $address"; print "$cmd\n"; exec "$cmd"; -- 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: 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. -- T

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