hide options passed to a script

2009-02-16 Thread Per-Erik Persson
If I pass options to a script or to something similar like this: some_sql_stuff.sh $username $password $database The content of the variables can be viewed with top or ps while the script is running. If I don't remember completely wrong from the bad old days the text that was displayed was act

Re: HowTo gpio with com-port?

2009-04-03 Thread Per-Erik Persson
I spent some time trying to toggle the pins in the serial port in various ways. The easiest way for me was to install pyserial and to control the pins in python takes only two or three lines of code. This is neat if you just want to do some basic stuff. Jan Klemkow wrote: Hello, I want to ge

mountd occupies port 993

2009-07-02 Thread Per-Erik Persson
mountd and and imaps occupies the same port 993. Are the any good ways of telling openbsd that mountd should not use that port. The quick n'dirty solution is to kill mountd in rc.local and start it up again after the imap mailserver has occupied the port and then start up mountd again. An o

Re: mountd occupies port 993

2009-07-02 Thread Per-Erik Persson
I am running 4.3 and the problem arised after upgrading from a previous version. Well spotted :-) Thanks a lot! Philip Guenther wrote: On Thu, Jul 2, 2009 at 1:18 AM, Per-Erik Persson wrote: mountd and and imaps occupies the same port 993. Are the any good ways of telling openbsd that

Re: About Xen: maybe a reiterative question but ..

2007-10-23 Thread Per-Erik Persson
I might be flamed for this statement but not being able to run inside a virtualized environment is not an option in the future. Most servers you can buy today are to powerful for only taking care of one task. It is really handy to be able to "shuffle" around the cpu:s to the virtual machine that

Re: reading sensor RS-232/485 output

2007-01-11 Thread Per-Erik Persson
I don't have any webpages to throw at you but converters from rs232 to rs485 exists. Also plugins cards to soekris that I would assume to be working. I have a lot of stuff I plan too hook up to OpenBSD, but have not found a good way to get the data out without writing to much code. It feels like

Re: The OACK Project

2007-01-24 Thread Per-Erik Persson
This rings a bell to me. I don't know if it still is true but "a while ago" tftpd was binding to the networkcard it found first. Try to run it on a machine that only has one networkcard and see if it works better. If you look at older postings you will probably find the exact problem. Howerver

Is it possible to fix a stale NFS hadle without rebooting?

2007-08-30 Thread Per-Erik Persson
When the nfs server gets disconnected the filesystem dissapears, I can live with that. After all networks go down now and then. But unfortunatley the location where the directory was mounted will be impossible to list, even after the server is up again. Trying to unmount ot mount the directory

alix 2c3 and i2c

2008-10-23 Thread Per-Erik Persson
A while ago I purchased an alix board. The plan is to hook up some external i2c sensors to it. I see the i2c-header on the board, but while reviewing the dmesg I cannot find anything related to i2c. Has the header no real function or is the driver for the i2c bus not written yet or do I need t

nfs failover in openbsd

2006-10-25 Thread Per-Erik Persson
Earlier on the list there have been discussions on setting up failover solutions with carp. I think most people agree that carp does a wonderful job. However there seems to be problems with nfs servers that needs a little bit more work. I can find information about nfsv4 and syncing files with r

How to get syslog to trigger an event.

2006-04-27 Thread Per-Erik Persson
A long time ago I used the following setting in syslog.conf *.crit |mail -s "blablabla" [EMAIL PROTECTED] But it doesn't seem to work nowdays. I suspect the chrooting of syslogd might have something to do with it. Is there some other very obvious way that I have missed to get a hin

Re: Filesystem redundancy

2005-11-16 Thread Per-Erik Persson
AFS would handle your storage in a redundant and distributed way where you "easily" can add and remove a machine. But this is not a thing you set up in an afternoon :-) People seems to be afraid of it since it's complexity. But when the work is done you wonder why people pay huge amounts for NAS

OT: Re: Help with lpd and XP

2005-12-12 Thread Per-Erik Persson
One reason I have read about is that there where problems with buggy printservers that did not clear the out downloaded fonts and other things.(especially these on a laserjet) Setting the the filesize to something "invalid" would lead the software to do a small soft reboot and clear up settings

ypldap and samba

2009-08-08 Thread Per-Erik Persson
I finally got around to start using ypldap on openbsd 4.5 It works, thanks! However using Samba as an ads member together with ypldap doesn't seem to do it. I still need to add the accounts to passwd to make samba work. Going thru misc gives me some hints, but has anyone actually got it working t