how to talk to the serial and parallel ports through a C program

2003-06-09 Thread Dan Malaby
I was wondering if there was a good place to go to get programing examples 
on how to
talk to the serial and parallel ports. I have looked in the developers 
handbook but have not
any luck finding what I want.

Any pointers would be appreciated

Thanks

Daniel Malaby   voice:(510) 531-6500
Peritek Corp.   fax:   (510) 530-8563
5550 Redwood Road   email: [EMAIL PROTECTED]
Oakland, CA 94619
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Is there a way to get a MAC address from an IP address

2003-01-02 Thread Dan Malaby
Is there a way if given an IP address to get the MAC address. The problem I 
am having is that there are two nic's that are using the same IP address on 
my network, but the error message my FBSD box gives me is only the MAC 
address for the offending card. I belive that the offending card does have 
another ligit IP address. I do have a map of all IP that respond on my 
network, but do not have a way of knowing which IP goes with which MAC address.

Any help would be appreciated.


Daniel Malaby   voice:(510) 531-6500
Peritek Corp.   fax:   (510) 530-8563
5550 Redwood Road   email: [EMAIL PROTECTED]
Oakland, CA 94619


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


problems with gramofile

2003-01-02 Thread Dan Malaby
Happy new year FSBD users!!

I am trying to use gramofile to get some records made into CD's, but I can 
not get gramofile to see any input. I can use the mixer and get the line in 
signal out of my PC speakers, so I know that I have signal to my sound 
card, but gramofile only makes a file with no music. If there is anyone who 
is using gramofile, please tell me how you configured gramofile or what 
magic needs to be done to the kernel to make it work. Also I have had 
problems with gramofile hanging up, it does not respond to any mouse or 
keyboard input, and I need to do a kill -9 to get out.

TIA

Details follow:
uname -a
FreeBSD XXX.XXX.com 4.7-STABLE FreeBSD 4.7-STABLE #1: Tue Dec 24 15:42:46 
PST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/XXX  i386

kernal
device  sbc0at isa? port 0x220 irq 5 drq 1 flags 0x15
device  pcm

dmesg
sbc1: Creative SB AWE64 at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 
drq 1,5 on isa0
pcm0: SB16 DSP 4.16 on sbc1



Daniel Malaby   voice:(510) 531-6500
Peritek Corp.   fax:   (510) 530-8563
5550 Redwood Road   email: [EMAIL PROTECTED]
Oakland, CA 94619


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


OT: shell questions

2002-12-10 Thread Dan Malaby
I know this is off topic but this list does seem to have the most 
knowledgeable people
for this kind of question.

I have a 4.7 FBSD with samba running, so I get a lot of files with unkosher 
names ie.
spaces in the name. So what I tried doing was to write a shell script using 
sh that
located these files and changed the space to a underbar.

I know that if I, from the keyboard, put quotes around the offending name, 
that I can mv
the file to a new name. So I wrote a shell script using awk and sed to make 
a file with
the offending names with quotes around them. Then I tried to feed this into 
another
script that was going to do the actually mv. The problem was that the shell 
script
that read the file still thought that the spaces in the file name were 
separators, eventho
the names were quoted. So then I tried skipping making the extra file and 
just used the
awk and sed to feed the for in statement. I know that the awk and sed were 
working properly
because I can make a file with the file names quoted. That did did not work 
either, I still kept
getting file not found because it still was seeing the space as a seperator.

Any help or pointers would be appreciated.

TIA

 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message