Re: yet another NVIDIA problem (4496)

2003-12-11 Thread David Selby
Haim Ashkenazi wrote: David Selby wrote: Haim Ashkenazi wrote: Hi I've just bought a new GeForce 5600 (Gainward Ultra 780 TV/DVI) and for that occasion I've upgraded my nvidia drivers to 4496-10. after upgrading, X wouldn't start (error loading 'nvidia')

Re: yet another NVIDIA problem (4496)

2003-12-10 Thread David Selby
Haim Ashkenazi wrote: Hi I've just bought a new GeForce 5600 (Gainward Ultra 780 TV/DVI) and for that occasion I've upgraded my nvidia drivers to 4496-10. after upgrading, X wouldn't start (error loading 'nvidia') unless I modprobe 'nvidia' manually, and then it loads, but with an error: devfs_re

Re: finding modules in "make menuconfig"

2003-12-10 Thread David Selby
Graeme Tank wrote: On Wed, Dec 10, 2003 at 01:39:05PM +, David Selby wrote: Given a modules name, is there an easy way to locate it in "make menuconfig" without searching through & making educated guesses ? I am trying to locate information on af_packet ... which has spr

finding modules in "make menuconfig"

2003-12-10 Thread David Selby
Given a modules name, is there an easy way to locate it in "make menuconfig" without searching through & making educated guesses ? I am trying to locate information on af_packet ... which has sprung up in /etc/modules ... what does it do ? ip_conntrack_ftp ... where is it in "make menuconfig" ?

iptables firewall question ?

2003-12-03 Thread David Selby
I have installed a simple firewall, personal home PC, dial up link, no ethernet. It consisted of ... iptables -N block iptables -A block -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A block -m state --state NEW -i ! ppp0 -j ACCEPT iptables -A block -j DROP iptables -A INPUT -J block i

USB "audio" driver problem

2003-11-30 Thread David Selby
Good Morning I have a quickcam pro 4000 USB webcam with a built in microphone which I am trying to get working. I have installed USB drivers, pwcx-2.4.20 & pwc which give me video, According to /usr/src/linux-2.4.22/Documentation/philips.txt I need to install USB audio support for the microphon

Re: dpkg package "stuck"

2003-11-20 Thread David Selby
Florian Ernst wrote: Hello David! On Thu, Nov 20, 2003 at 09:42:49AM +, David Selby wrote: My dpkg database seems to be slightly corrupted with respect to the "imgsizer" package If I try to install it I get: [...] dpkg: parse error, in file `/var/lib/dpkg/status' near line

dpkg package "stuck"

2003-11-20 Thread David Selby
Hi, My dpkg database seems to be slightly corrupted with respect to the "imgsizer" package If I try to install it I get: debian:/home/web# debian:/home/web# apt-get install imgsizer Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: img

Re: Recommend ILS server for gnomemeeting

2003-11-17 Thread David Selby
David Selby wrote: I am hopeing to use gnomemeeting to contact my realtive in Australia (a computer illiterate!) Before I email him telling him what to do I neet to find a suitable ILS server. Every ILS server I have tried is not "family friendly", Does anyone know of an ILS serv

Recommend ILS server for gnomemeeting

2003-11-16 Thread David Selby
I am hopeing to use gnomemeeting to contact my realtive in Australia (a computer illiterate!) Before I email him telling him what to do I neet to find a suitable ILS server. Every ILS server I have tried is not "family friendly", Does anyone know of an ILS server that is "Family friendly" ?! I

Re: OT yahoo messenger for Woody

2003-11-15 Thread David Selby
David Selby wrote: OK this is a bit OT but I am stuck. I am trying to get Yahoo "messenger" working on woody. Apparently the package is for woody. http://messenger.yahoo.com/messenger/download/unix.html I installed it with dpkg -i, it did not show any dependency problems, when I ru

OT yahoo messenger for Woody

2003-11-15 Thread David Selby
OK this is a bit OT but I am stuck. I am trying to get Yahoo "messenger" working on woody. Apparently the package is for woody. http://messenger.yahoo.com/messenger/download/unix.html I installed it with dpkg -i, it did not show any dependency problems, when I run it I get: [EMAIL PROTECTED]:

Re: 56K video link software?

2003-11-15 Thread David Selby
David Selby wrote: I have a relative who has moved out to Australia & am interested in using a webcam & 56K modem for a video link (I know the picture quality will be rough) Can anyone point me in the right direction for video link software ? Many thanks Dave Thanks for the help, I

56K video link software?

2003-11-14 Thread David Selby
I have a relative who has moved out to Australia & am interested in using a webcam & 56K modem for a video link (I know the picture quality will be rough) Can anyone point me in the right direction for video link software ? Many thanks Dave -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] wit

Re: DMA doesn't seem to work with my custom 2.4.21 kernel

2003-09-12 Thread David selby
Pim Bliek wrote: Hi, I've set the following in my kernel-config (2.4.21): CONFIG_BLK_DEV_IDEDMA_PCI=y CONFIG_IDEDMA_PCI_AUTO=y CONFIG_BLK_DEV_IDEDMA=y I have an ASUS A7N8X Deluxe rev 2.0 motherboard. When I run hdparm -d1 /dev/hda I get the following error: # hdparm -d1 /dev/hda /dev/hda: sett

Re: XF86 mode question ?

2003-09-11 Thread David selby
Oki DZ wrote: On Thu, Sep 11, 2003 at 08:09:07AM +0100, David selby wrote: Its quite possible I have misunderstood how to do this, I have a lot od "Doh !" moments. I had an aha moment. I set the gdm config to have two X server settings, one with 24 and the other with 16bp

Re: Suggest CD RW app ?

2003-09-11 Thread David selby
csj wrote: On Wed, 10 Sep 2003 14:35:05 +0100, David selby wrote: I have just installed a SAMSUNG DVD - CD RW drive, done the config I tried xcdroast, I like it but it insists on a 1024x768 screen which is a bit of a problem with my eyes / monitor. I believe this has been fixed in Debian

Re: XF86 mode question ?

2003-09-11 Thread David selby
Oki DZ wrote: On Wed, Sep 10, 2003 at 02:27:58PM +0100, David selby wrote: I setup my modes in subsection "display" as "800x600" "1024x768" and restarted X. Do you happen to have the word "Virtual" on the Display subsection? Oki I have tryed

Re: Suggest CD RW app ?

2003-09-11 Thread David selby
Marc Wilson wrote: On Thu, Sep 11, 2003 at 12:04:19AM +0200, Moritz Moeller-Herrmann wrote: I think k3b is the best, it works fine on my laptop (1024x768), don't know how small your screen is, but it can be resized to about 600x480, And gee, it requires all of KDE, just to have a front-end

Re: Suggest CD RW app ?

2003-09-10 Thread David selby
Moritz Moeller-Herrmann wrote: David selby wrote: I tried xcdroast, I like it but it insists on a 1024x768 screen which is a bit of a problem with my eyes / monitor. Can anyone else recommend another app, mainly for data backup, preferably GUI since it will be for occasional use. I think

Re: Suggest CD RW app ?

2003-09-10 Thread David selby
Moritz Moeller-Herrmann wrote: David selby wrote: I tried xcdroast, I like it but it insists on a 1024x768 screen which is a bit of a problem with my eyes / monitor. Can anyone else recommend another app, mainly for data backup, preferably GUI since it will be for occasional use. I think

Re: Suggest CD RW app ?

2003-09-10 Thread David selby
Erik Steffl wrote: David selby wrote: Erik Steffl wrote: David selby wrote: Hello all, I have just installed a SAMSUNG DVD - CD RW drive, done the config I tried xcdroast, I like it but it insists on a 1024x768 screen which is a bit of a problem with my eyes / monitor. I just tried it

Re: Suggest CD RW app ?

2003-09-10 Thread David selby
Erik Steffl wrote: David selby wrote: Hello all, I have just installed a SAMSUNG DVD - CD RW drive, done the config I tried xcdroast, I like it but it insists on a 1024x768 screen which is a bit of a problem with my eyes / monitor. I just tried it and the window is about 800x570. I can make

Suggest CD RW app ?

2003-09-10 Thread David selby
Hello all, I have just installed a SAMSUNG DVD - CD RW drive, done the config I tried xcdroast, I like it but it insists on a 1024x768 screen which is a bit of a problem with my eyes / monitor. Can anyone else recommend another app, mainly for data backup, preferably GUI since it will be for oc

XF86 mode question ?

2003-09-10 Thread David selby
Hello all, I run my display at 800x600, Sometimes it would be usefull to run it at 1024x768, for example to run xcdroast. I setup my modes in subsection "display" as "800x600" "1024x768" and restarted X. It appears to take the highest resolution, ie 1024x768 and make a buffer for it. If I ctr

Re: X locking out + wacom.o SOLVED

2003-09-09 Thread David selby
Just to announce to the world, I solved the X instability. I had my PS2 mouse + wacom tablet combining data and sending it to X via /dev/input/mice By chance I changed my XF86Config-4 file to split the data streams, Instability goes, rock solid debian again. I was unsure who to e-mail since it seem

Re: X locking out + wacom.o

2003-09-09 Thread David selby
Additional info ... I have upgraded my kernel to 2.4.21, I have updated my Nvidia driver to 1.0.4496 With a new kernel, I loaded wacom etc, same problem. Interestingly when I have ctrl-alt-f1, I can flip between 1-6 no probs & back again. It is only when I select 7 for X that the problems start

X locking out + wacom.o

2003-09-09 Thread David selby
Hi all, Got a problem. I have a wacom tablet which I managed to get going by following the "Linux wacom project howto", it appears to work OK, though havent tried GIMP yet. My problem is with X. If I ctrl-alt-f1, I get a console, if I ctrl-alt-f7 X restarts & I get KDM loggin ? It is then usu

Re: serial ATA

2003-08-18 Thread David selby
Mark Barnes wrote: I'm trying to install stable on a system with an Asus A7V600 motherboard, which supports serial ATA with a VIA VT8237 chipset. I've googled around for installation information on serial ATA support generally, and not found much that's on point. I'm not sure if serial ATA is sup

Re: old laptop I need ugly fast Xwindows please

2003-08-14 Thread David selby
wsykes.lists wrote: All, I have a crappy old Compaq Presario 1210, and KDE runs like a dog on it. I really only need a couple of xterminals, and mouse functionality. What version of Xwindows is light and fast on older boxes. I dont care how ugly it is. Will I need to run xdm, or kdm? Do i eve

Re: Basic 2D graphics card for Linux?

2003-08-09 Thread David selby
Anthony Campbell wrote: My Riva TNT2 AGP card has just packed up and I'm looking for a replacement that will work reliably on Linux with a 19" monitor. I don't play games so I need something fairly basic but with good 2D performance and AGP. Any recommendations please? AC I recently bought a NV

OT bash $substitution in 2.05b.0-9

2003-08-04 Thread David selby
I have hit a problem with bash ... as a sample program I have ... #!/bin/sh test="123456789" temp=${test:1:2} echo $temp If I execute the above in woody bash I get 23 OK so far. I have cgywin on 98SE, running bash 2.05b.0-9. When I run the above I get ... :syntax error:bad substitution for the

Re: stat question

2003-08-02 Thread David selby
PS still cant find coreutils or stat, though its not a problem now. debian:/home/web# dpkg -i stat dpkg: error processing stat (--install): cannot access archive: No such file or directory Errors were encountered while processing: stat debian:/home/web# Err can I crawl into a hole, please ...

Re: stat question

2003-08-02 Thread David selby
David selby wrote: Elie De Brauwer wrote: a) do you have the coreutils package installed (which provides the stat binary on my machine b) that is not true, there are manpages for a whole lot of file, for example if you have the mesa development files installed you have the manpages for

Re: stat question

2003-08-02 Thread David selby
DOH !! all I need is a -nt, -ot ! why didn't I think of that I guess this is the learning curve. Many thanks dave Colin Watson wrote: On Sat, Aug 02, 2003 at 09:07:26AM +0100, David selby wrote: A while ago someone suggested using the stat command to get modification time

Re: stat question

2003-08-02 Thread David selby
Elie De Brauwer wrote: a) do you have the coreutils package installed (which provides the stat binary on my machine b) that is not true, there are manpages for a whole lot of file, for example if you have the mesa development files installed you have the manpages for all Opengl functions ava

Re: stat question

2003-08-02 Thread David selby
day 02 August 2003 10:07, David selby wrote: Hello, A while ago someone suggested using the stat command to get modification times for files etc, ls -al will give the info but I would have to do a lot of string stripping etc ... I have looked up man "stat", confusing ... googled

stat question

2003-08-02 Thread David selby
Hello, A while ago someone suggested using the stat command to get modification times for files etc, ls -al will give the info but I would have to do a lot of string stripping etc ... I have looked up man "stat", confusing ... googled for it, confusing ! It is not a regular command, ie "stat"

Re: system has started e-mailing me, cron demon

2003-08-01 Thread David selby
David selby wrote: Hello mate, Ive been quiet for a couple of days, trying things & looking for the results next morning, found out a few things .. think I have cracked it. /etc/cron.d/anacron & /etc/anacrontab are not duplicate I found this by accident. /etc/cron.d/anacro

Re: How do I log onto anonymous ftp ?

2003-08-01 Thread David selby
Many thanks everyone, now logged in Dave -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

How do I log onto anonymous ftp ?

2003-08-01 Thread David selby
Hello I have logged onto ftps before, but never an anonymous one. I need to log into ftp://archive.progeny.com/ I can view the files with mozilla, no passwords needed. I will be using wget, but initially I want to loggon with ncftp, which I have used before. I have tried [EMAIL PROTECTED]:~$ n

Re: system has started e-mailing me, cron demon

2003-07-31 Thread David selby
Hello mate, Ive been quiet for a couple of days, trying things & looking for the results next morning, found out a few things .. think I have cracked it. /etc/cron.d/anacron & /etc/anacrontab are not duplicate I found this by accident. /etc/cron.d/anacron is the system crontab /etc/anacro

Re: system has started e-mailing me, cron demon

2003-07-30 Thread David selby
Stephen Touset wrote: Did you try restarting anacron when you made the /etc/anacrontab changes? The reason it's working now is probably because you added that line into /etc/cron.d/anacron, and it restarted the next time it came across that. Try taking out /etc/cron.d/anacron and see if it s

Re: system has started e-mailing me, cron demon

2003-07-29 Thread David selby
Stephen Touset wrote: Did you try restarting anacron when you made the /etc/anacrontab changes? The reason it's working now is probably because you added that line into /etc/cron.d/anacron, and it restarted the next time it came across that. Try taking out /etc/cron.d/anacron and see if it s

Re: system has started e-mailing me, cron demon

2003-07-28 Thread David selby
You might wanna chance those lines to "nice -19 run-parts --report /etc/cron.". I don't know if that's the problem, but it might be ;) Also, check in your cron directories to see if there's a crontab entry that restarts crontab. That's what's likely to be causing the problem. Crontab emails yo

system has started e-mailing me, cron demon

2003-07-27 Thread David selby
Hello, I have started to get the following message e-mailed to me at night. Envelope-to: [EMAIL PROTECTED] From: [EMAIL PROTECTED] (Cron Daemon) To: [EMAIL PROTECTED] Subject: Cron <[EMAIL PROTECTED]> test -x /etc/init.d/anacron && /etc/init.d/anacron start +2>/dev/null X-Cron-Env: X-Cron-Env:

Re: bash: finding if mozilla is running

2003-07-26 Thread David selby
David selby wrote: Hello, Writting a small script to make mozilla show the results of HTML code written in vi, when vi saves, the script automaticly changes mozilla to show that HTML. I need to know if mozilla is running, if not I need to call it first ... seemed simple if ! ps ax | grep

bash: finding if mozilla is running

2003-07-26 Thread David selby
Hello, Writting a small script to make mozilla show the results of HTML code written in vi, when vi saves, the script automaticly changes mozilla to show that HTML. I need to know if mozilla is running, if not I need to call it first ... seemed simple if ! ps ax | grep "mozilla-bin" &>/dev/n

Re: Some shell's problem

2003-07-25 Thread David selby
David selby wrote: James Ng Yuen Sum wrote: Hi, I am a chinese user. If i want to use xcin(one input chinese characters XIM server), I need to open a konsole and type the following command: export LANG=zh_TW.Big5 env|grep LC I have tried to add the above command in ~./bashrc and ~/.profile, but

Re: Some shell's problem

2003-07-25 Thread David selby
James Ng Yuen Sum wrote: Hi, I am a chinese user. If i want to use xcin(one input chinese characters XIM server), I need to open a konsole and type the following command: export LANG=zh_TW.Big5 env|grep LC I have tried to add the above command in ~./bashrc and ~/.profile, but when i start kde aga

Re: cron, won't change time !

2003-07-24 Thread David selby
Shawn Lamson wrote: On Thu, July 24 at 8:13 AM EDT David selby <[EMAIL PROTECTED]> wrote: # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file. # This file also has

Re: bash: can I cd from a script

2003-07-24 Thread David selby
Dave Carrigan wrote: On Wed, 2003-07-23 at 07:36, David Z Maze wrote: Depending on how complicated the script is, rewriting it as a shell function might be appropriate. You could add to your .bashrc file something like cdls() { cd "$1"; ls; } and then "cdls foo" would change directories to

cron, won't change time !

2003-07-24 Thread David selby
OK Ive looked into this, but I can't get it to work ... my /etc/cron.daily executes at 7:35 AM +- a couple of mins. I need it to execute at 1:30AM +-, no problem I thought .. I enterd /etc/crontab # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' #

Re: xterm colour codes

2003-07-23 Thread David selby
[EMAIL PROTECTED] wrote: On Wed, 23 Jul 2003, David selby wrote: I am trying to get my bash scripts to highlight some of their output in colour, a bit like ls --color It seems that I have to use ANSI esc sequences ... man xterm .. SEE ALSO resize(1), X(7), pty(4), tty(4) Xterm

Re: xterm colour codes

2003-07-23 Thread David selby
[EMAIL PROTECTED] wrote: On Wed, 23 Jul 2003, David selby wrote: I am trying to get my bash scripts to highlight some of their output in colour, a bit like ls --color It seems that I have to use ANSI esc sequences ... man xterm .. SEE ALSO resize(1), X(7), pty(4), tty(4) Xterm

Re: xterm colour codes

2003-07-23 Thread David selby
Colin Watson wrote: On Wed, Jul 23, 2003 at 09:44:57AM +0100, David selby wrote: I cant find the control sequences document ctlseqs.ms, though I have searched the system as root for it. .ms is the source form (it's a troff macro set). Try /usr/share/doc/xterm/ctlseqs.ps.gz or /usr/

bash: can I cd from a script

2003-07-23 Thread David selby
I have a script to show a certain directory, it would be great if that script could change my pwd to that directory. Inside my script is a cd /usr/lo., however since the script automaticly runs in a subshell, when it ends my directory has not changes. I have tries export PWD=/usr/lo no

xterm colour codes

2003-07-23 Thread David selby
I am trying to get my bash scripts to highlight some of their output in colour, a bit like ls --color It seems that I have to use ANSI esc sequences ... man xterm .. SEE ALSO resize(1), X(7), pty(4), tty(4) Xterm Control Sequences (this is the file ctlseqs.ms). http://dickey.hi

Re: Some shell's problem

2003-07-22 Thread David selby
James Ng Yuen Sum wrote: Hi, I am a chinese user. If i want to use xcin(one input chinese characters XIM server), I need to open a konsole and type the following command: export LANG=zh_TW.Big5 env|grep LC I have tried to add the above command in ~./bashrc and ~/.profile, but when i start kde aga

Re: OT: Secure (?) way of displaying a popup window

2003-07-22 Thread David selby
Joerg Johannes wrote: Hi everybody. I have written a short perl script which reads the battery status of my laptop out of /proc/acpi/battery/BAT1/state, to be able to see how much time I have left until I have to shutdown or running to the nect power jack. I know there exists a kde applet whic

bash: trap, logout signal ?

2003-07-22 Thread David selby
Hello ... My ppp link is dial on demand. At present I have /etc/ppp/ppp_on_boot to start it. This is OK but if online I have to su and poff to kill the link once started, so I can use the phone, or wait 5 mins for it to drop. My wife struggles with this. I cannot use fluxbox docapps, or KDE to

Re: Auto load pop3 mail at night ?

2003-07-21 Thread David selby
Paul Johnson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Jul 20, 2003 at 09:11:13PM +0100, David selby wrote: When I installed Debian, it offered me something like this, but at the time I ignored it and enterd defaults ! I now can not remember what the package was to do a

Re: cron & cannot open display

2003-07-20 Thread David selby
Sebastian Kapfer wrote: On Sun, 20 Jul 2003 13:30:10 +0200, David selby wrote: PS works with mozilla mozilla --display=:0 Mozilla is GDK/GTK-based. Those apps use the GNU-style long options with two leading dashes. * * * * * dillo --display=:0 works for me. (What about DISPLAY=:0 dillo

Auto load pop3 mail at night ?

2003-07-20 Thread David selby
Hello I need a program to auto load my many pop3 mail accounts (can't get on with IMAP) preferably in the middle of the night. And hopefully grab them from a spool directory via Mozilla 1.3 When I installed Debian, it offered me something like this, but at the time I ignored it and enterd defa

Re: cron & cannot open display

2003-07-20 Thread David selby
Elie De Brauwer wrote: On Sunday 20 July 2003 12:17, David selby wrote: Hello I have been trying to get cron to execute programs at set times, As a test I am trying to execute dillo (loads fast!) I setup cron as user testbed to execute dillo every five mins, I get the following .. From

Re: cron & cannot open display

2003-07-20 Thread David selby
Elie De Brauwer wrote: On Sunday 20 July 2003 12:17, David selby wrote: Hello I have been trying to get cron to execute programs at set times, As a test I am trying to execute dillo (loads fast!) I setup cron as user testbed to execute dillo every five mins, I get the following .. From

cron & cannot open display

2003-07-20 Thread David selby
Hello I have been trying to get cron to execute programs at set times, As a test I am trying to execute dillo (loads fast!) I setup cron as user testbed to execute dillo every five mins, I get the following .. From [EMAIL PROTECTED] Sun Jul 20 11:10:01 2003 Return-path: <[EMAIL PROTECTED]> E

bash: where is $PATH set ?

2003-07-18 Thread David selby
Can anyone tell me where $PATH is set ? In /etc/profile, it is set to PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/java/java.current /bin" However [EMAIL PROTECTED]:~$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games [EMAIL PROTECTED]:~$ So this doe

Re: bash: esc space not recognised in cat script ?

2003-07-13 Thread David selby
Colin Watson wrote: On Sun, Jul 13, 2003 at 04:47:39PM +0100, David selby wrote: Hello again, more thorny bash escaped space problems ... in $_tox is a file called "this is a test" Below is the portion of code that is causing problems for _scantox in $_tox/* ; do _scantox=

bash: esc space not recognised in cat script ?

2003-07-13 Thread David selby
Hello again, more thorny bash escaped space problems ... in $_tox is a file called "this is a test" Below is the portion of code that is causing problems for _scantox in $_tox/* ; do _scantox=${_scantox// /\\ } echo $_scantox cat "$_scantox" | xmessage -fn 9x15 -center -buttons OK,Print,

Re: bash: for to, reading escaped spaces in filenames

2003-07-13 Thread David selby
Jeff Schaller wrote: David selby <[EMAIL PROTECTED]> wrote: I need to scan a directory for the file names contained in it. However some of the file names are in the form of 342345\ remind\ for\ apt-get\ update ie they have escaped spaces in the name. Without resort

Re: bash: for to, reading escaped spaces in filenames

2003-07-13 Thread David selby
Steve Lamb wrote: On Sun, 13 Jul 2003 11:05:41 +0100 David selby <[EMAIL PROTECTED]> wrote: I need to scan a directory for the file names contained in it. for _scantox in $(ls $_tox); do . done Why use ls? Use the shell's globbing. IE, poor man's ls:

bash: for to, reading escaped spaces in filenames

2003-07-13 Thread David selby
Hello, I need to scan a directory for the file names contained in it. for _scantox in $(ls $_tox); do . done works just file with _scantox holding the file name, However some of the file names are in the form of 342345\ remind\ for\ apt-get\ update ie they have escaped spaces in the name. I

Re: bash: let exp ? exp : exp problem

2003-07-13 Thread David selby
Sebastian Kapfer wrote: On Sun, 13 Jul 2003 01:20:08 +0200, David selby wrote: Hello, I am trying to get a bash script to work which will hibernate till 1:00 am, it appears to work OK Ahh, the bash :-) let $_mintoone -gt 1440:_mintoone=$_mintoone-1440 let 'toone = toone &

bash: let exp ? exp : exp problem

2003-07-12 Thread David selby
Hello, I am trying to get a bash script to work which will hibernate till 1:00 am, it appears to work OK # ensure script executes next at 1:00am let _mintoone=(1440-($(date '+%H')*60+$(date '+%M')))+60 if [ $_mintoone -gt 1440 ] ; then let _mintoone=$_mintoone-1440 fi sleep $_mintoone'm' However

Re: bash: get file modification time query

2003-07-10 Thread David selby
Vineet Kumar wrote: * David selby ([EMAIL PROTECTED]) [030709 12:08]: Is there a neater way to get a modification date for a file without ls -l & sed ? I have a bash script that needs to get the info. Because the file size varies I cannot use cut, it may cut the wrong bit. stat -c

bash: get file modification time query

2003-07-09 Thread David selby
Is there a neater way to get a modification date for a file without ls -l & sed ? I have a bash script that needs to get the info. Because the file size varies I cannot use cut, it may cut the wrong bit. Dave -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Troubl

Re: bash: a pipe bodge, is there a better way ?

2003-07-03 Thread David selby
David selby wrote: I have a pipe of commands echo $scanhtml | csplit -f index -q - /lock/ {*} I want the output to go to $tempdir/websync/ ... Is there a more elegant way than my present solution of .. cd $tempdir/websync echo $scanhtml | csplit -f index -q - /lock/ {*} This seems a bit

bash: a pipe bodge, is there a better way ?

2003-07-02 Thread David selby
I have a pipe of commands echo $scanhtml | csplit -f index -q - /lock/ {*} I want the output to go to $tempdir/websync/ ... Is there a more elegant way than my present solution of .. cd $tempdir/websync echo $scanhtml | csplit -f index -q - /lock/ {*} This seems a bit of a bodge and I am s

Re: simple bash loop problem ...

2003-06-30 Thread David selby
David selby wrote: Hello, I am writing bash a bash & sed script, it has been going suprisingly well. I need a loop to count 9 times & the variable n to the count .. for n=1 to 9 next kind of thing, but this is not BASIC !! My best guess is declare -i n=1 while [ $n < 9 ];

Re: sed expression problem ?

2003-06-30 Thread David selby
David selby wrote: I am starting to use sed but am having a problem with one expression in ... cat /mnt/archive/fluxbox/keys | sed 's/:ExecCommand//g ;s/^Mod4 \(.\) Mod 4 \(.\)/WinKey \1\2/g' works except I hoped s/\/[^ ]+\///g would match any /path/to/file/ and delete it. It refuse

Re: simple bash loop problem ...

2003-06-30 Thread David selby
Jonathan Matthews wrote: On Sat, Jun 28, 2003 at 03:03:27PM +0100, David selby wrote: Hello, I am writing bash a bash & sed script, it has been going suprisingly well. I need a loop to count 9 times & the variable n to the count .. [snip] for N in 1 2 3 4 5 6 7 8 9 do echo $N

simple bash loop problem ...

2003-06-29 Thread David selby
Hello, I am writing bash a bash & sed script, it has been going suprisingly well. I need a loop to count 9 times & the variable n to the count .. for n=1 to 9 next kind of thing, but this is not BASIC !! My best guess is declare -i n=1 while [ $n < 9 ]; do . n=$((n+=1)) done All i get

sed expression problem ?

2003-06-29 Thread David selby
I am starting to use sed but am having a problem with one expression in ... cat /mnt/archive/fluxbox/keys | sed 's/:ExecCommand//g ;s/^Mod4 \(.\) Mod 4 \(.\)/WinKey \1\2/g' works except I hoped s/\/[^ ]+\///g would match any /path/to/file/ and delete it. It refuses to match. Idealy ... /usr/loca

Re: .Xclients, .xinitrc, .xsessions not read by sys what to use?

2003-06-25 Thread David selby
David Z Maze wrote: David selby <[EMAIL PROTECTED]> writes: I run fluxbox and KDE. where can I put setup files ie xhost setup, Most google searches suggest .Xclients, .xinitrc or .xsessions, ITYM .xsession (singular). On debian, when booting via a graphical login manager (I u

Re: restrict x server access with xhost

2003-06-25 Thread David selby
David Z Maze wrote: David selby <[EMAIL PROTECTED]> writes: I can enable other users to log into my x server with xhost +, I need to do this because I want ro run a program via user web crontab which uses xmessage. Uh, there's no better solution at all? With the default Debi

.Xclients, .xinitrc, .xsessions not read by sys what to use?

2003-06-24 Thread David selby
I run fluxbox and KDE. where can I put setup files ie xhost setup, Most google searches suggest .Xclients, .xinitrc or .xsessions, On debian, when booting via a graphical login manager (I use KDM) these do not appear to be read by the system. Dave -- To UNSUBSCRIBE, email to [EMAIL PROTECTED]

restrict x server access with xhost

2003-06-24 Thread David selby
I can enable other users to log into my x server with xhost +, I need to do this because I want ro run a program via user web crontab which uses xmessage. Idealy I would like only root user to be able to access my x server ... (less users who can access it, more secure ... rule of thumb) so I t

Re: bash: problem with [sets]

2003-06-24 Thread David selby
Colin Watson wrote: On Mon, Jun 23, 2003 at 07:57:07PM +0100, David selby wrote: My bash masterpeice is almost complete ... I have one last problem that no matter how many "" or '' I use I cannot get around. I need to use an if...then construct to check that my 4 di

bash: problem with [sets]

2003-06-23 Thread David selby
My bash masterpeice is almost complete ... I have one last problem that no matter how many "" or '' I use I cannot get around. I need to use an if...then construct to check that my 4 digit date field is 4 numerical digits.This is for error checking. I thought [sets] was the way to go if

Re: bash: how to split a $var ?

2003-06-23 Thread David selby
Boukhaïri wrote: what about tr ? David selby wrote: David selby wrote: In bash how can I split a string eg ... var1=0624todaysfile I want var2 to equal the first 4 digits, ie 0624 My first instinct was cut but this is for files only, head & tail are of no use ... Many thanks Dave

Re: bash: how to split a $var ?

2003-06-23 Thread David selby
David selby wrote: In bash how can I split a string eg ... var1=0624todaysfile I want var2 to equal the first 4 digits, ie 0624 My first instinct was cut but this is for files only, head & tail are of no use ... Many thanks Dave Many thanks everyone, still a learner with respect to

bash: how to split a $var ?

2003-06-23 Thread David selby
In bash how can I split a string eg ... var1=0624todaysfile I want var2 to equal the first 4 digits, ie 0624 My first instinct was cut but this is for files only, head & tail are of no use ... Many thanks Dave -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Troub

Re: you guys are great!

2003-06-21 Thread David selby
i'll teach you to turn away. wrote: hi there. i've recently installed 3.0r1 on my spanking new p3-600 (hey, it's exciting for me) after running an old-assed verison of debian since 1997 on my primary box. i've had a few annoying little problems, most of which have been fixed. but that's no

Re: New line with xmessage?

2003-06-21 Thread David selby
Vineet Kumar wrote: * David selby ([EMAIL PROTECTED]) [030620 11:07]: Many thanks everyone, xmessage -file xxx seems to work, It seems to take the formatting from the file and not have a problem, strange it can't take it directly from "" however will remember this workaround

Re: New line with xmessage?

2003-06-20 Thread David selby
David selby wrote: Having quite a bit of success with bash, got first script to work, auto archives a backup every day and delete the oldest backup files if partition is >95% full ... Want to try something more adventurous however am stuck on something s simple, how do I generate a

Re: can anyone reccomend ?

2003-06-20 Thread David selby
Vineet Kumar wrote: I can recommend you start using meaningful subject lines! This is at least the third question you've posted with a Subject of "can anyone recommend ?" I didn't read your message, but I saw the word font in it before I deleted it. Even that one word "font" would have made a b

Fonts, anyone reccomend a doc ?

2003-06-20 Thread David selby
Can anyone suggest a man or document to explain fonts to me in relatively clear terms ? I am having problems tieing up my "Ariel" size "12" font on Abiword with the same font on the command line. At the moment I stick to -fn 9x15 which i borrowed from a script. It works but I would really like to k

can anyone reccomend ?

2003-06-19 Thread David selby
Can anyone suggest a man or document to explain fonts to me in relatively clear terms ? I am having problems tieing up my "Ariel" size "12" font on Abiword with the same font on the command line. At the moment I stick to -fn 9x15 which i borrowed from a script. It works but I would really like

New line with xmessage?

2003-06-19 Thread David selby
Having quite a bit of success with bash, got first script to work, auto archives a backup every day and delete the oldest backup files if partition is >95% full ... Want to try something more adventurous however am stuck on something s simple, how do I generate a new line in xmessage I got

  1   2   >