Re: Shell scripts: variable assignment within read loops

2008-08-21 Thread Jan Grant
could try this: foo=$( cat $filename | ( while read bar; do ... foo=$bar ... done echo $foo ) ) Cheers, jan -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/

Re: sh script difficulties (running parallel functions)

2007-11-01 Thread Jan Grant
to trap the signals you're interested in catching. Just a trap 'int=1' INT wait trap - INT if [ "x$int" = x1 ]; then ... ; fi should do it. -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http:/

Re: is this for OO-2 for FBSD?

2007-10-30 Thread Jan Grant
ll that OOo won't complete a build on a filesystem with noatime; there's a perl(? it's a long time since I did this) script that can't tell the difference between an fstat successfully returning 0 (for midnight, Jan 1 1970) and failing. jan -- jan grant, ISYS, University of Br

Re: Repeated PXE jumpstart

2007-09-21 Thread Jan Grant
the HD in the boot order, and call back to the deployment host at the end of installation (prior to reboot) to signal a DHCP reconfiguration. It adds a PXE timeout to each boot; the upside is that replacing a wedging or otherwise broken install is just a matter of reconfiguring a DHCP server. -

Re: best programming language for console/sql application?

2007-04-23 Thread Jan Grant
; me know. I already did quit a few searches. I know someone is > > working on a console front-end of G-Forge, but a big software like > > G-Forge is not what I am thinking of. Not sure it's quite what you're after, but have a look at request tracker. It is pr

Re: Corrupted C Compiler

2006-12-05 Thread Jan Grant
On Mon, 4 Dec 2006, Rachel Florentine wrote: From: Jan Grant <[EMAIL PROTECTED]> >>I don't think it makes much sense, no. Zope is python-based and unless >>you're building products that rely on native libraries, what you >>describe doesn't sound like

Re: Corrupted C Compiler

2006-12-04 Thread Jan Grant
for production - however, Zope will run without those .pyc files (the .py files are compiled on first load instead). I suspect that that's what's going on. Cheers, jan -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.

Re: Real-time command history sharing between interactive shells

2006-11-29 Thread Jan Grant
commands. I don't tend to spend much time as root, but that's a question of personal taste. Cheers, jan -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ Spreadsheet through network. Oh yeah. ___

Re: Real-time command history sharing between interactive shells

2006-11-29 Thread Jan Grant
ing a full range of redirection and control constructs. You should look at that, in particular the set -o sharehistory option (which does half of what you're after). Combine this with a shared .history file and you should get the effect you're after. -- jan grant, ISYS, University

Re: What Is the PATH to cyrus-sasl2?

2006-11-15 Thread Jan Grant
On Wed, 15 Nov 2006, Rachel Florentine wrote: > Hi; > I'm building openldap from source since I can't figure out how to pass > arguments to the port. I need to build with cyrus-sasl2, which is > built. > However, I don't know what the path is, and my build can't find it by > itself. Please hel

Re: Questions on first-time installation

2006-11-11 Thread Jan Grant
On Fri, 10 Nov 2006, Jerry McAllister wrote: > On Wed, Nov 08, 2006 at 08:42:04AM +0000, Jan Grant wrote: > > > On Tue, 7 Nov 2006, Bob Schwartz wrote: > > > > > ... at least as it is desribed in the DELL > > > docs and bios... > > > > Be really

RE: Questions on first-time installation

2006-11-08 Thread Jan Grant
e an fdisk partition inside windows and don't do any fdisk editing from the freebsd install, just label and install into the precreated slice, you should be ok. Usual provisos apply: back up, and if at all possible try it first on some scratch kit. G'luck, jan -- jan grant, ISYS, U

RE: Questions on first-time installation

2006-11-08 Thread Jan Grant
tion editor is a few years old; I've not tried again recently with new Dell kit. -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ Axioms speak louder than words. ___ freebsd-quest

Re: file redirect is destroying the file ? Help!

2006-10-30 Thread Jan Grant
robably fit into one stdio buffer) and everything's hunky-dory. If the other half gets to go first, then the shell will open the file for output, truncating it in the process, and exec grep. At that point the "cat" will have another go and find nothing there. Basically, what yo

Re: tao.thought.org is back.....

2006-10-19 Thread Jan Grant
obably need to run "newaliases". Since that's run on reboot if required, that'd explain your reboot-to-reconfigure behaviour. Cheers, jan PS. If sendmail config is such an arcane art (and it is, unless you do it regularly) you might find there's mileage in installing

Re: tao.thought.org is back.....

2006-10-18 Thread Jan Grant
other than a shutdown -r > now?? Sounds like you need a mailertable entry that maps your incoming domain name to smtp:whatever.thought.org jan -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ New Freedom of Information

Re: How do I give 2 parameters to programs in an unix enviroment?

2006-09-11 Thread Jan Grant
cfs mounted, ksh can do something like what you're after using the syntax: diff <(cat foo) <(cat bar) zsh supports something similar and can work around the lack of fdescfs. -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3

Re: man page bug in mv(1) ?

2006-09-10 Thread Jan Grant
s wrong, or is the man page incorrect? The man page is correct, but a little misleading unless you read it carefully. The first two paragraphs of the description section define the term "destination path". -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (

Re: Cluster mail system using FreeBSD

2006-08-27 Thread Jan Grant
our cluster's semantics to preserve email client operations in the face of the loss of one member of the cluster then rsync is not enough. > What other solution would you think of ? You might want to chase down the Cambridge patches to cyrus, which added an application-level transaction

Re: /tmp permissions

2006-08-07 Thread Jan Grant
Not necessaily, but you might want to consider adding "nosymfollow" -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ Whenever I see a dog salivate I get an insatiable urge to ring a bell. __

Re: Need /bin/sh script help

2006-04-11 Thread Jan Grant
no "[" invocation: if grep -q ... then ... fi Note that if you're looking at automating the update process you should probably pay careful attention to the world/kernel update process described in the handbook; there are steps (like an initial mergemaster -p) tha

Re: UFS extended attributes

2006-04-10 Thread Jan Grant
, and device nodes. I'm > probably not th eright person to answer questions about the layout itself. Looks like it is: see /usr/include/ufs/ufs/dinode.h -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ Theoremhood is positively

Re: Shell scripting question [newby]

2006-04-10 Thread Jan Grant
On Mon, 10 Apr 2006, Malcolm Fitzgerald wrote: > > On 10/04/2006, at 12:39 AM, Jan Grant wrote: > > > On Sun, 9 Apr 2006, Malcolm Fitzgerald wrote: > > > > > I'm trying to follow the instructions at > > > <http://www.daemonology.net/freebsd-upgra

Re: OT - Scalable email server solution needed

2006-04-09 Thread Jan Grant
s" DB holding folder information (including ACLs), per-user seen/subscription databases and a deliverdb for duplicate suppression. The latter can all be stored in multiple formats, including bdb; hot backups for these work much the same way as for anything other bdb. It's not perfect, bu

Re: Shell scripting question [newby]

2006-04-09 Thread Jan Grant
eb and man > bash haven't helped me. Would someone provide the correct syntax for me? That syntax is correct for sh and bash; you're not running it, however. Double-check that after you su to root, you're really running bash. That error is what csh will tell you. -- jan

Re: /proc/loadavg?

2006-04-07 Thread Jan Grant
; which you might want to mount on /compat/linux/proc, that should have waht you're after. -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ "No generalised law is without exception." A self-demonstrating axiom. __

Re: Why are so many people using 4.x?

2006-03-29 Thread Jan Grant
means I have something solid to fall back to if the upgrade fails. -- jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ That which does not kill us goes straight to our thighs. ___ freebsd-

Re: Shellscript syntax question

2006-01-10 Thread Jan Grant
uot; is also a shell meta-character used to indicate file redirection. To get something like that to work, you'd need to quote it somehow: if [ "$a" \< "$b" ]; then ... ; fi or if [ "$a" '<' "$b" ]; then ... ; fi --

Re: Fast diff command for large files?

2005-11-05 Thread Jan Grant
dumps, they're order-independent. So, sort the files into a predictable lexical order, then a diff is a linear operation over tonight's file versus last night's. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/

Re: portupgrade -ar (why?)

2005-10-15 Thread Jan Grant
e code of P might not have changed, it might (for instance) be using a macro defined by a header in L that will look at the wrong offset in the new structure. These kinds of ABI compatibility problems can be fixed by recompilihng P. -- jan grant, ILRT, University of Bristol. http://www.ilr

Re: Help Understanding While Loop

2005-10-15 Thread Jan Grant
g. Once the expression has been interpolated, it's evaluated, using the values of any variables named in the expression. That is, count=1 count=$((count + 1)) will do what Drew intended. I think his problem is elsewhere (the while loop is a subshell). -- jan grant, ILRT, University of B

Re: sysctl or system tweak for symbolic links?

2005-09-10 Thread Jan Grant
havior of or access to symbolic links in this fashion that I may have > missed. Seemed like a reasonable conclusion after these tests have been > failing, though it could be something else, too. Stock apache configuration. Look at the documentation for the "Options" directive, p

Re: What is fsck trying to tell me?

2005-09-10 Thread Jan Grant
sklabel rather than actually "tasting" the partition to determine what fsck to use. You can fix this by disklabelling your device and fixing the type of partition "c": this should be ok. You can probably also tell fsck explicitly what type of filesystem to check, or just invoke

RE: BSD legal question

2005-05-19 Thread Jan Grant
jan PS. This is basic implication: you claim P = "you distribute the code" Q = "all of it is under the GPL" and P -> Q. I'm not taking issue with that; merely pointing out that (as you describe), Q is false, therefore since -Q -> -P the conclusion is that you ca

Re: PF RULES! But mine doesn't ...

2005-05-10 Thread Jan Grant
xy running on localhost:8021. On the other hand, I could be barking up the wrong tree completely; I've pretty much run out of useful things to say about this config. Cheers, jan -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44 (0)117 9287088 (with luck) h

Re: PF RULES! But mine doesn't ...

2005-05-08 Thread Jan Grant
_if inet proto { tcp, udp } \ from ($ext_if) port 53 to any ^^^ and that lets it back out. If you add the "query-source address * port 53;" to your named.conf "options" section, that'll suffice; additionally, since your DNS query source port is then predictable

Re: What is --- WRONG --- with my network?

2005-05-06 Thread Jan Grant
On Fri, 6 May 2005, Fafa Hafiz Krantz wrote: > > Hello boys! > > I just spent a few days doing a make world and kernel. > My machine is terribly slow. Yet, my network problem hasn't > gone away. This shows that it wasn't an asynchronisation > between my world and kernel. I've also compiled io an

Re: KDE not starting. Cannot start kdeinit

2005-04-17 Thread Jan Grant
rtkde exits, then exits), or you can use "exec startkde" to replace the .xinitrc process with the startkde one. In either case the only difference is that leaving out the exec means you've got one additional shell process hanging around until you quit X. -- jan grant, ILRT, Uni

Re: Is this a good or a bad idea to delete all off this ?

2005-03-15 Thread Jan Grant
ink that tells us non-sysadmins how to do this? He's referring to the misc/screen port. The man page is pretty comprehensive. It basically gives you "virtual" terminal sessions that you can attach, detach and reattach a client to without disturbing the underlying session. -- j

Re: How do I set the source address on a multi-homed host?

2005-02-16 Thread Jan Grant
ress for internal packes should already _be_ that of the internal interface. Your routing table looked good, too, IIRC. What does your NAT / ipfw configuration look like? -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287864 or +44 (0)117 9287088 http://i

Re: How do I set the source address on a multi-homed host?

2005-02-13 Thread Jan Grant
On Sun, 13 Feb 2005, Jan Grant wrote: > On Sat, 12 Feb 2005, Daniela wrote: > > > Yes, this happens when I connect from my machine (which functions as a > > router > > with NAT to allow the other LAN machines connect to the internet) to > > another &g

Re: How do I set the source address on a multi-homed host?

2005-02-13 Thread Jan Grant
the IP of the outgoing interface. Unless your particular application explicitly supports the selection of source addresses, you're mostly out of luck. For instance, ping(8) supports this (see the -S option). Cheers, jan -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.u

Re: what is /entrophy ?

2005-02-07 Thread Jan Grant
ed into this file. On reboot, the kernel's random pool is reinitialised using these "spare" bits. Assuming nobody's sneaked a peek at them in the itme the machine's been turned off, this is a reasonable way to quickly satisfy the startup requirements for randomness. -- jan grant

Re: 300Gb hard drive formatting to 249Gb - boo.

2004-12-06 Thread Jan Grant
d unless you know what you're doing (that is: benchmark your typical usage to see if the performance is still within acceptable limits). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287864 or +44 (0)117 9287088 http://ioctl.org/jan/ You know somet

Re: Is my Apache server running as the root user or not?

2004-12-04 Thread Jan Grant
g here: http://httpd.apache.org/docs-2.0/mod/prefork.html which, although it's apache 2 documentation, also describes the apache 1.3 preforking behaviour. The root process creates sockets and log files, then forks child worker processes which retain the open file handles. However, it is onl

Re: shell programming challenge

2004-11-26 Thread Jan Grant
I don't get as command prompt back in the new xterm, either with > sh or bash. ALso, the --rcfile arcument does not appear to work in conjunction > with -c. > > This is what the man for hold specifies, but I need the prompt. If you have the option to modify it, ensure that your sc

Re: Backup/Restore

2004-10-01 Thread Jan Grant
onise mailstores and to get the closest fidelity out of the copy. Breaking your mailstore into separate chunks may well help. Yes, the total time for a dump/restore may be close to your current state of play, but if you can split the partitions between machines then you have the option to per

Re: White Paper on routing & freebsd

2004-09-22 Thread Jan Grant
already read the HandBook, but there are still couple of things that I > haven't catch. Are you after the basic theory behind routing? If you have specific questions then this list is as good a place as any to ask them. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.u

Re: what are the pros and cons of running in single user?

2004-09-16 Thread Jan Grant
imum profile on the machine. However if you modify rc to the extent that it turns on everything you need in order to set up bridging, run a few daemons etc then you're effectively duplicating the multiuser startup anyway. jan * modulo securelevel changes which can only be reverted via

Re: gcc34 Question - Request for help

2004-08-11 Thread Jan Grant
c33. The appropriate binaries are installed as gcc34, &c. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Goedel would be proud - I'm both inconsistent _and_ incomplete. _

Re: implementing spf

2004-07-26 Thread Jan Grant
at it simply won't fly, regardless. SPF itself is in use right now, however. jan * if you're originating email from "offsite" (dialup lines etc.) then you may need to coordinate with your mail admin to ensure you're targeting the correct MSA. -- jan grant, ILRT, Univ

Re: setuid diffs...

2004-07-23 Thread Jan Grant
ilesystem. It's that difference that the nightly check is picking up on. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Strive to live every day as tho

Re: "sanitizing" disks: wiping swap, non-allocated space, and file-tails

2004-07-17 Thread Jan Grant
partition; secure use needs human intervention. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ If it's broken really badly - don't fix it either. ___ [EMAI

Re: closer, no cigar.

2004-07-14 Thread Jan Grant
er needs to do lots more work: rewriting email addresses, and so on. The split of sendmail's operation into MTA (Transmission) and MSA (Submission) is to support this. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org

Re: HP Visualize workstation

2004-06-29 Thread Jan Grant
ll run on it. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ On modesty: whoever said "it's hard being perfect" obviously wasn't me. ___ [EM

Re: md5 of a filesystem / verifying filesystem integrity after dump/restore operation

2004-06-23 Thread Jan Grant
stem. The base system utility, mtree, also has this capability, although you'll have to fiddle with its options to get it to work. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ You see what happen

Re: Utility to guess a remote hosts operating system?

2004-06-23 Thread Jan Grant
kind of network fingerprinting is required. If you can narrow down the parameters of your question (eg: I have a network of windows machines and I'd like to figure out exact versions on each one) then you might have more luck. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +

Re: [OT] Re: What's the best possible email failover solution

2004-06-23 Thread Jan Grant
bout Coda, and it doesn't look like I'll have time to > experiment in the near future. A previous responder to this thread has already pointed at the cam.ac.uk work which offers transactional replication for fast fail-over. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac

Re: [OT] Re: What's the best possible email failover solution

2004-06-22 Thread Jan Grant
cture responses and offsets to each mime piece. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ HP-unix: Open Sauce product, available in 57 distributions. ___

Re: java not running .jar files without absolute path. (take II)

2004-06-10 Thread Jan Grant
ariable that is required? shouldn't the $PATH entry be > sufficient? Well, the path entry only suffices on my installation; I merely hypothesised that an erroneous setting of that variable might be the cause. If I were you I'd take this to the freebsd-java list, there's more of a

Re: java not running .jar files without absolute path. (take II)

2004-06-09 Thread Jan Grant
ur for java? Works for me; is JAVA_HOME set to something broken in your environment? -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ ( echo "ouroboros"; cat ) > /dev/fd/0 # it's like talk

Re: wine

2004-05-13 Thread Jan Grant
ems that not many freebsd people use wine or play games. This is > odd as from what i heard freebsd's power is in it's speed, something that > i noticed for my self by using it for desktop aplications. I've also experienced a loss of network connectivity for Wine apps since the

Re: looks like i've dug my hole too deep, plz help quick.

2004-05-13 Thread Jan Grant
On Wed, 12 May 2004, carvin5string wrote: > You have only those two files in root? What about the kernal files I > see on my system? You're running a -STABLE branch, the responder is running -CURRENT. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)

Re: private subsubdomains

2004-04-07 Thread Jan Grant
rm of STARTTLS negotiation that might be able to send the desired hostname. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Bolstered by my success with vi, I proceeded to learn C with 'learn c'.

Re: How to get memory usage for process?

2004-04-06 Thread Jan Grant
i need to know how much > memory is shared and how much memory is used for each new > running script (including buffers, e.t.c.). What command shoud > do the trick and with what options? You're probably after the sysutils/pmap utility, in the ports. -- jan grant, ILRT, University of Bri

Re: secure cvs server, urgent

2004-04-05 Thread Jan Grant
f trust in your users. If you want something "secure" like this you might want to consider an alternative source control system. Or maybe, if licensing permits, offload that risk to sourceforge, who've got a lot of practice at this sort of thing. -- jan grant, ILRT, University

Re: Java Requires X Windows?

2004-03-29 Thread Jan Grant
tes for Java include details about its somewhat improved (ie, it works) "headless" support. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ ...and then three milkmaids turned up (to th

Re: sleeping for 30 seconds

2004-03-26 Thread Jan Grant
time in seconds between two points, you might try something like this: start_time=`date +%s` # ... do something end_time=`date +%s` time_taken=$(($end_time - $start_time)) -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 92870

Re: The chown command

2004-03-23 Thread Jan Grant
g away" files. Rather than present your solution first, perhaps you could indicate the use cases that motivate your suggestion. There may be other ways to achieve the goals you have. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0

Re: Why does `df` lie about free space (it doesn't)

2004-03-18 Thread Jan Grant
inode(5) descrbes inodes as a table of block addresses kinda FAT but > with variable block sizes inodes point to. That is. It's not really like FAT operation at all; but another responder has given some detail along these lines. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bri

Re: Why does `df` lie about free space

2004-03-17 Thread Jan Grant
locks with free inodes. They're not the same thing: they are two distinct resources and your filesystem can run out of either pretty much independently. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/

Re: RAID1 vs RAID5 [ was Re: 1 processor vs. 2]

2004-03-05 Thread Jan Grant
ID-5 array has to read 4 sectors and write five sectors if you > change one byte. Wrong; see previous response. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Q: What's yellow and equivalent to

Re: 1 processor vs. 2

2004-03-05 Thread Jan Grant
e), an in-memory exclusive or against the new data, and two writes. Reads and writes can be in parallel. The "work" for parity updates only scales linearly with number of disks if you use a naive parity algorithm. Or, obviously, if a drive fails. -- jan grant, ILRT, Universi

Re: Problem with sed and awk

2004-03-01 Thread Jan Grant
be split using the new FS setting. As another poster supplied, slap the FS setting in a BEGIN-guarded block. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ If it's broken really badly - don't fix it ei

Re: Shell scripting woes.

2004-02-26 Thread Jan Grant
t to ensure the first thing they do is to recreate the environment you're after: setting $PATH, the working directory, umask, and so on. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Boycott Arabic num

Re: Move to mail server? WAS Re: Sending mail gets 'Relaying Denied' from off network.

2004-02-18 Thread Jan Grant
rectory/authentication to cyrus quotas. You'll probably get the same story with most roll-your-own setups. There are a number of products that claim to be email "appliances" and you might look at those, depending on how much preexisting infrastructure you've got for managing virtua

Re: Lock order reversal

2004-01-29 Thread Jan Grant
e. A "lock order reversal" means that the debugging watchdog in your kernel has detected that locks of two classes were acquired in different orders. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.or

Re: portupgrade

2004-01-23 Thread Jan Grant
gt; > How can I avoid portupgrade touching big packages such as KDE, Mozilla and > OpenOffice which were installed from binary? Look for HOLD_PKGS in /usr/local/etc/pkgtools.conf -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 928

Re: Problems using portupgrade to recompile all ports

2004-01-15 Thread Jan Grant
ng the distfiles prior to a build (ie, while I'm around to sort out problems manually rather than overnight). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ If it's broken really badly - don

Re: NOQUEUE: SYSERR (root): host "localhost" unknown ?

2004-01-15 Thread Jan Grant
hink is wrong with it... The "host" command doesn't use the full resolver; it uses DNS queries only. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Theory and practice _are_ the same thing.

Re: /usr/home directory

2003-12-23 Thread Jan Grant
home directories could rove. If you want to change this, pw useradd -D -b /home will probably do the trick (you will need to move existing directories). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioc

Re: use vi style in all line-edit environment

2003-12-23 Thread Jan Grant
referring to use the GNU readline library. The manpage (readline(3)) _claims_ that it offers a vi-style editing mode. You'll have to suck it and see: try echo set editing-mode vi > ~/.inputrc and check the man page for more information. -- jan grant, ILRT, University of Bristol. h

Re: How to count the lines of code in a project?

2003-12-23 Thread Jan Grant
ols that probably already do what you want. In this case: find . -type f -name \*.c -print0 | xargs -0 wc -l -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ (ECHOY GRUNTING) (EERIE WHISPERS) aren'

Re: FreeBSD CVS for DOS/Windows sources?

2003-12-21 Thread Jan Grant
ws clients will be able to deal with them correctly. > I didn't edit the repo because I don't consider myself savvy enough > about CVS yet to start playing with repo files directly, except to > look at them with a curious eye. For text files, they're line-oriented. The serv

Re: spamassassin

2003-12-21 Thread Jan Grant
to final delivery on mail spools. It can integrate SpamAssassin and the virus scanner(s) of your choice; as a plus, the load generated is far more predictable. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioct

Re: Release Tag and Branch Tag and Upgread ..

2003-12-17 Thread Jan Grant
u've got that set up it pretty much takes care of the rest of the leg work involved in maintaining a system. ] Although it is possible on older machines to selectively build parts of the system that you wish to update, in general I've found it to be a false economy on modern har

Re: last question about up-to-date ( I hope )

2003-12-12 Thread Jan Grant
ompared to hand-application of patches. You are not required to track the -STABLE branch. Every (recent) release also has a maintenance branch, which merely receives security updates. Cvsup can track these just as easily for you. The handbook has more information on this. -- jan grant, ILRT, Univer

Re: When FreeBSD have higer performans than Linux and When Linux have higher performans than FreeBSD

2003-12-12 Thread Jan Grant
s and measure the performance. If you have specific questions about tuning for a particular application, then the man page tuning(7) has some information; or bring specifics to the list. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117

Re: how to build Spamassassin

2003-12-09 Thread Jan Grant
f-less endif > "Makefile", line 35: Need an operator > > I recalled being able to make individual ports this way in the past. Where did you unpack the ports tree to? /usr/share/mk/bsd.port.mk expects /usr/ports, or the PORTSDIR variable to be set if the tr

Re: x11/kde3 and libglut error

2003-12-08 Thread Jan Grant
the old libraries nearby, so rather than a full rebuild of the XFree86-4-libraries, you can pkg_deinstall nvidia-driver, do the build, then reinstall nvidia-driver. Much quicker. Incidentally pkgtools.conf can be taught to do this for you. -- jan grant, ILRT, University of Bristol. http://ww

Re: Ports intelligent?

2003-11-28 Thread Jan Grant
port upgrades don't usually overwrite these, but if they do you'll be able to recover (and report the matter to the port maintainer). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ ___

Re: Recursion with grep?

2003-11-14 Thread Jan Grant
t of your path than the system one. Even the win32 shell is more capable of command composition these days. Chucking as much disparate functionality as possible into each tool is a poor tactic because you wind up with every tool being indistinguishable from its peers, modulo the totally incompatible an

Re: exim not running after portupgrade?

2003-11-13 Thread Jan Grant
uirement for > exim_enable="YES" in /etc/rc.conf was introduced. Yes, exactly. The exim port is now compatible with -current's rcng; if you look at /usr/local/etc/rc.d/exim.sh you'll probably see it's checking for that flag. -- jan grant, ILRT, University of Bristol. h

Re: Newbie: The C / C++ Issue

2003-11-12 Thread Jan Grant
all comes down to what exactly you want to do. If it's just the odd command-line script you might find that the convenience of the standard library of C++ makes it worthwhile learning the bits of C++ you need. jan PS. As a first text, I would generally advise people to avoid KnR. * standard and

Re: portupgrade -arR

2003-11-12 Thread Jan Grant
e of these might well pop up just after you leave portupgrade to do its thing and go to bed. You can normally select batch operation and choose the appropriate options by putting them into /usr/local/etc/pkgtools.conf; the exact mechanism used to indicate "non-interactive" mode isn't

Re: Mesa port

2003-11-11 Thread Jan Grant
What to do ? pkgdb -F The above fixed the issue (automatically) for me. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Goth isn't dead, it's just

Re: Backing up kernel before upgrade - 4.9 - how?

2003-11-06 Thread Jan Grant
ut > > /kernel (file) > /modules (directory) > > Anything else? > > TIA for your help, "make installkernel" will rename your current kernel and modules to kernel.old and modules.old for you. I tend to explicitly grab a copy of configs (/etc) prior to using mergemaster; this

Re: Is Java/Tomcat on FBSD practical?

2003-11-05 Thread Jan Grant
t running happily under the 1.3 and the 1.4 native ports on a -stable freebsd. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ (Things I've found in my attic, #2: A hundredweight of pornography.) _

Re: PostgreSQL on FreeBSD

2003-10-28 Thread Jan Grant
vague recollection of trying to figure out how the hell the values were supposed to get into the sysctl value until I looked at the -current tree). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 htt

Re: how do you actually download an up date for KDE

2003-10-26 Thread Jan Grant
th persevering with. There's plenty of advice on using it contained in the archives of this mailing list (also on freebsd-stable). Note that a from-source rebuild of KDE and its dependencies, while generally painless, will take quite a bit of time on your machine - but somewhat less than three

  1   2   >