Sponsored Content
Top Forums Shell Programming and Scripting How to make a script (Bash, KornShell, etc.) executable by mouse clicking? Post 302295762 by neked on Monday 9th of March 2009 01:35:59 PM
Old 03-09-2009
Are you talking about using the mouse from inside the Graphical Desktop Environment (i.e. GNOME/KDE?) or you talking about using the mouse from within the console with gpm?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I make a cgi script World-executable

I'm trying to set up a form mail script on a website that when Submitted, a cgi script is executed and a perl translator (located in a secured and inaccessible folder) translates the script. After speaking to my hosting provider, I was told to "Telnet into the system and make the script... (2 Replies)
Discussion started by: tylerl
2 Replies

2. Solaris

How to make a script executable by all users?

I have a script in my home direcroty which upon execution gives the essential system information like memory,cpu etc and is currently owned by root:root. Now I want to see that every non root user will run this file and grab the reqired system info. I know this is some thing associated with chown... (2 Replies)
Discussion started by: chrs0302
2 Replies

3. UNIX for Dummies Questions & Answers

Mouse clicking/positioning in Terminal

Is is possible to use the mouse in Terminal on OS X Leopard? I thought I read somewhere in the book that I have that it is, but I can't find it. I'd like to use it to click in one of the editors if I have to. (0 Replies)
Discussion started by: Straitsfan
0 Replies

4. Shell Programming and Scripting

Unable to make script executable

Hello everybody, I'm unable to make my shell script an executable file. The details are as follows: PATH includes my $HOME/bin i.e. /rchome/rc1/bin HOME directory is /rchome/rc1 script name is prep_mig.sh permissions set are 755 It's executing if I give below command sh prep_mig.sh but... (4 Replies)
Discussion started by: jitu.keshwani
4 Replies

5. Shell Programming and Scripting

How to run my make file in Kornshell

Hello Forum Memebers, I have file with exension of .shsrc ie(startA.shsrc) .while iam trying to make ,its getting Ksh not found. file:startA.shsrc error:KSH not found the content about shell declaration in the korn shell is below. ... (3 Replies)
Discussion started by: rajkumar_g
3 Replies

6. UNIX for Dummies Questions & Answers

Running Executable in Bash Script

Hey guys, so I've been trying to write a bash script called runSorter.sh that runs an executable that also takes in some parameters and outputs the results to a text file. The executable, sorter, takes in a number parameter. I want to make it so that you can input as many number parameters into... (4 Replies)
Discussion started by: Duo11
4 Replies

7. Shell Programming and Scripting

How to produce a executable Oracle script from bash script?

Hi here's my code ${ORACLE_HOME}/bin/sqlplus /nolog <<!EOF --step 5 create db script start set feedback off set heading off set echo off conn / as sysdba spool ${ORACLE_SID}_db_link.sql SELECT 'CREATE '||DECODE(U.NAME,'PUBLIC','public ')||'DATABASE LINK '||CHR(10)... (2 Replies)
Discussion started by: jediwannabe
2 Replies

8. Shell Programming and Scripting

How to create an executable bash script for these commands?

I wish to create an executable bash script that will run the following commands as root, that is, using sudo su iptables-save | awk '/^ / { print $1 } /^:+ / { print $1 " ACCEPT" ; } /COMMIT/ { print $0; }' | iptables-restoreMy first attempt at bash... (9 Replies)
Discussion started by: thixeqi
9 Replies

9. Shell Programming and Scripting

Making bash script allways executable when transfer ?

Does it possible to make some bash script automatic to be a executable when transfered to another pc...? (5 Replies)
Discussion started by: tomislav91
5 Replies

10. Shell Programming and Scripting

Bash script make itself executable

Is there a way to make this make itself executable? Thanks. :-) cat > somescript.sh << \EOF #!/bin/bash block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Block count:/ {print $NF}') reserved_block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Reserved block count:/ {print $NF}') perl -e... (4 Replies)
Discussion started by: drew77
4 Replies
MEV(1)							      General Commands Manual							    MEV(1)

NAME
mev - a program to report mouse events SYNOPSIS
mev [ options ] DESCRIPTION
The `mev' program is part of the gpm package. The information below is extracted from the texinfo file, which is the preferred source of information. The mev program is modeled after xev. It prints to stdout the mouse console events it gets. mev's default behaviour is to get anything, but command line switches can be used to set the various fields in the Gpm_Connect structure, in order to customize the program's behaviour. I'm using mev to handle mouse events to Emacs. Command line switches for mev are the following: -C number Select a virtual console to get events from. This is intended to be used for debugging. -d number Choose a default mask. By default the server gets any events not belonging to the event mask. The mask can be provided either as a decimal number, or as a symbolic string. -e number Choose the event mask. By default any event is received. The mask can be provided either as a decimal number, or as a symbolic string. -E Enter emacs mode. In emacs mode events are reported as lisp forms rather than numbers. This is the format used by the t-mouse pack- age within emacs. -f Fit events inside the screen before reporting them. This options re-fits drag events, which are allowed to exit the screen border, -i Interactive. Accepts input from stdin to change connection parameters. -m number Choose the minimum modifier mask. Any event with fewer modifiers will not be reported to mev. It defaults to 0. The mask must be provided either as a decimal number, or as a symbolic string. -M number Choose the maximum modifier mask. Any event with more modifier than specified will not be reported to mev. It defaults to ~0, i.e. all events are received. The mask must be provided either as a decimal number, or as a symbolic string. -p Requests to draw the pointer during drags. This option is used by emacs to avoid invoking ioctl() from lisp code. When the arguments are not decimal integers, they are considered lists of alphanumeric characters, separated by a single non-alphanumeric character. I use the comma (,), but any will do. Allowed names for events are move, drag, down or press, up or release, motion (which is both move and drag), and hard. Allowed names for modifiers are shift, leftAlt, rightAlt, anyAlt (one or the other), control. When the -i switch is specified, mev looks at its standard input as command lines rather than events. The input lines are parsed, and the commands push and pop are recognized. The push command, then, accepts the options -d, -e, -m and -M, with the same meaning described above. Unspecified options retain the previ- ous value and the resulting masks are used to reopen the connection with the server. pop is used to pop the connection stack. If an empty stack is popped the program exits. Other commands recognized are info, used to return the stack depth; quit to prematurely terminate the program; and snapshot to get some configuration information from the server. BUGS
Beginning with release 1.16, mev no longer works under xterm. Please use the rmev program (provided in the sample directory) to watch gpm events under xterm or rxvt. rmev also displays keyboard events besides mouse events. AUTHOR
Alessandro Rubini <rubini@linux.it> Ian Zimmerman <itz@speakeasy.org> FILES
/dev/gpmctl The socket used to connect to gpm. SEE ALSO
gpm(8) The mouse server gpm-root(1) An handler for Control-Mouse events. The info file about `gpm', which gives more complete information and explains how to write a gpm client. 4th Berkeley Distribution February 1995 MEV(1)
All times are GMT -4. The time now is 12:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy