03-22-2019
Hi drew77...
And it is Python 2.x.x too and would fail without mods on Python 3.x.x.
you could use: cat /dev/input/mice but I suspect it will produce lots of garbage unless you know how to decode what is presented during mouse movement.
EDIT:
This will not be portable so be well aware!
Bazza.
Last edited by wisecracker; 03-22-2019 at 10:51 AM..
Reason: See EDIT:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm getting the following error:
line 21: syntax error near unexpected token `done`
line 21: `done`
and I haven't been able to figure out why.
Here is my code
#!/bin/sh
if ; then
echo 'Usage: rename getexp/replStr '
exit 0
fi
arg = $1
shift
while ; do (5 Replies)
Discussion started by: NullPointer
5 Replies
2. Shell Programming and Scripting
Guys ,
This is an output of my script errored out for "Syntax error near unexpected token `(' " Can someone tell me whats wrong with my script.
Below is my original script pasted.
#!/bin/bash
Script Creation Date 01/21/2010
Author baraghun
... (7 Replies)
Discussion started by: raghunsi
7 Replies
3. UNIX for Advanced & Expert Users
Hi,
I am running the following script through cygwin and getting below mentioned error.
*******************************************
#!/bin/sh
# constants
WORK_DIR="deploy"
INFOFILE="deploy.info"
INTROFILE="Intro.sh"
CMGMT_PKG="com.kintana.cmgmt.deploy"
DEPLOY_PREFIX="mitg"
... (2 Replies)
Discussion started by: MandyR
2 Replies
4. Shell Programming and Scripting
Hi all,
This is a script which converts hex to bin. However am finding an error while executing
syntax error near unexpected token `='
`($hexfile, $binfile) = @ARGV;'
I am running using ./fil.pl <hexfile> <binfile>
###################################################
#
# this script... (3 Replies)
Discussion started by: jaango123
3 Replies
5. Shell Programming and Scripting
What do I do here?
#!/bin/bash
payload=-1 AND 1=IF(21,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)#
hash=`echo -n $payload md5sum tr -d 'n' sed 'ss-sg' md5sum tr -d 'n' sed 'ss-sg'`
curl --data cs2=chronopay&cs1=$payload&cs3=$hash&transaction_type=rebill... (2 Replies)
Discussion started by: iiiiiiiiiii
2 Replies
6. Shell Programming and Scripting
Hi,
I am trying to read the session log through script. But it keeps showing me some error near. I have tried everything. Even tried converting the script using sed command to remove the hidden characters(\r).But nothing seems to be working.Below is the script :
#!/bin/bash
cd... (6 Replies)
Discussion started by: Aryan12345
6 Replies
7. Shell Programming and Scripting
I tried to execute the code but I got this error
./Array.c: line 9: syntax error near unexpected token '('
./Array.c: line 9: ' nvals = get_data(a,MAXARRAY);'
and
#include<stdio.h>
#define MAXARRAY 1000
main()
{
int a,
nvals;
nvals =... (7 Replies)
Discussion started by: sgradywhite
7 Replies
8. Shell Programming and Scripting
Hi all,
I have a simple script that doesn't work somehow. I can't seem to be spotting the cause of the malfunction.
count=$((1))
for item in `cat test1.txt`
printf %s `sed -n $((count))p test2.txt` > test3.txt
count=$((count+1))
do
something
done
I get ;
./why.sh: line 3:... (14 Replies)
Discussion started by: y33t
14 Replies
9. How to Post in the The UNIX and Linux Forums
I have 2 files like a.txt and b.txt and the content is as below
cat a.txt
810750125 117780 /BSCSQAT4A/bscsqat4a/lib/jar/wclt_common.jar
1803152428 13300 /BSCSQAT4A/bscsqat4a/lib/jar/WFMSSupportTool.jar
2663502779 67049 /BSCSQAT4A/bscsqat4a/lib/jar/wma.jar
687942896 665272... (1 Reply)
Discussion started by: ranabhavish
1 Replies
10. UNIX for Beginners Questions & Answers
Dears,
While executing the below script im getting the error at line 30. Please let me know what changes to be done to fix this.
test.sh: line 30: syntax error near unexpected token `done'
test.sh: line 30: ` done '
#!/bin/sh
# Rev. PA1
# author: eillops
# date: 26-04-2018
#
#... (1 Reply)
Discussion started by: Kamesh G
1 Replies
LEARN ABOUT DEBIAN
input-linux-mouse
input-linux-mouse(7) GGI input-linux-mouse(7)
NAME
input-linux-mouse - Direct mouse input
SYNOPSIS
input-linux-mouse: [<mousetype>] [,<file>] [,[b<bauds>][r<rts>][d<dtr>]]
DESCRIPTION
This input opens a file (usually a device file or pipe) and reads mouse protocol data from it.
OPTIONS
mousetype
Indicates what type of mouse is attached. The following types are supported:
o ms, Microsoft : Two button Microsoft compatible mice.
o ms3, IntelliMouse, mman+ : Serial Intellimouse or compatible. Supports four buttons for mice like the Logitech MouseMan+.
o MouseSystems, msc : MouseSystems compatible (used in most 3-button mice).
o Logitech, logi : Used in older Logitech serial mice.
o mm, MMSeries : MM series mice.
o Sun : Sun mice. The protocol is the same as 'msc' protocol except it used only 3 bytes per packet.
o MouseMan, mman : MouseMan protocol.
o BusMouse, bm : Non-PS/2 busmice.
o LinuxUSB, lnxusb : IMPS2 that doesn't choke on USB (no init attempted).
o ps2, PS/2 : PS/2 mice (most non-serial mice use this protocol)
o imps2, IMPS/2 : PS/2 IntelliMouse and compatible (not USB, see lnxusb for that.)
o mmanps2, MouseManPlusPS/2 : PS/2 Logitech MouseMan+ and compatible.
Most of the strings supported by GPM, SVGAlib and XFree can be specified. If you find one that isn't, please report.
The special value auto tells input-linux-mouse to read ~/.ggi/input/linux-mouse, and if that fails, $sysconfdir/ggi/input/linux-
mouse. If none of the two files are found, input-linux-mouse tries to auto-detect the mouse, and as a last resort uses the mouse
information specified in /etc/vga/libvga.config.
file The file to read mouse protocol data from; defaults to /dev/mouse.
baud Baud rate of mouse device.
rts Turns off RTS if set to 0; turns RTS on if set to a number greater than 0.
dtr Turns off DTR if set to 0; turns DTR on if set to a number greater than 0.
FEATURES
o Generates evPtr* events.
FILES
~/.ggi/input/linux-mouse and $sysconfdir/ggi/input/linux-mouse consists of the following entries:
mouse mousetype
mdev file
where mousetype and file has the same semantics as the invocation options of the same names.
libgii-1.0.x 2003-08-11 input-linux-mouse(7)