![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Memoryleak detection using MALLOCDEBUG | Lazzar | AIX | 0 | 03-30-2008 08:55 AM |
| external USB detection problems | mahendrakamath | Filesystems, Disks and Memory | 2 | 11-19-2007 11:33 AM |
| usb hdd detection problem | mahendrakamath | UNIX for Dummies Questions & Answers | 0 | 11-16-2007 11:42 AM |
| Extrusion Detection is Ripe for CEP | iBot | Complex Event Processing RSS News | 0 | 07-10-2007 03:50 PM |
| virus detection | pbonilla | UNIX for Dummies Questions & Answers | 1 | 11-20-2002 10:14 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Heloo every one
I want to write a script that detects a key press and mouse click and movement,but I dont know how. The second one is I want to run myscript without writing the shell ie not "sh script.sh" but "script.sh" Can you help me out of here? Thanks in advance. |
|
|||||
|
You may want to check out Chris F.A Johnson's article Unix Review > Shell Corner: Mouse Reporting in a Shell Script
|
|
|||||
|
Quote:
|
|
|||||
|
Quote:
File extensions have no meaning to the OS in UNIX, as they have in Windows. You could name your script whatever you want. But, in order to run it, as cfajohnson has told you, you have to set exec perms. On the other hand, what you want is to avoid the use of either "sh" before the name of the script, and the use o "./" after it. To do so, you have at least two possibilities: - Add the directory which contains the binary to your PATH variable. - Copy or link it in one directory that's already in your PATH. Regards. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|