Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I was playing around with nc and I'm discovering how powerful and versatile this tool is. I was wondering how the file /dev/input/mice works because when I do cat /dev/input/mice you see the output, but I am not sure how to play with that.

I have tried an echo "blablabla" > /dev/input/mice thought it was going to change my mouse coords but didn't do anything.

I have seen in a post that you can have a remote mouse with netcat (not sure where I saw it)

So, If I can take the write from /dev/input/mice in a remote PC to a server listening, writing it to his dev/input/mice ¿?

My idea is:

Server : nc -l -p 6000 > /dev/input/mice

Client : nc <IP> 6000 < /dev/input/mice

I think that that wouldn't work, so does anyone knows how to perform this and explain it a little bit¿? Thank you in advance

share|improve this question
    
Do I correctly understand that you want to control your mouse from terminal? –  jimmij Dec 16 '14 at 12:47
    
I want to control my mouse from another computer, sending the coords through netcat and writing them into the file that handles them. –  aDoN Dec 16 '14 at 19:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.