Console based menu in bash [closed] - bash

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
can anyone tell me how can i build console based menu in which i can navigate by direction keys to select options. Code should be in bash or shell script.

Look at pdmenu. It is pretty simple to use.
Or in case you need go deeper there is whiptail tool. It also allow you to build dialog box and so on. But it is a little bit harder to use comparing to pdmenu.

What about the dialog command?

Related

Shell: Sub command list/display [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have written a shell script, it takes many commands. On pressing TAB key shell should list the commands. How to make it?
Br,
Praveen P B
It depends on the shell you're targeting. For bash, you'll want to read the chapters on programmable completion in the Bash Reference Manual.
Basically, you write a script for it and have users source it somewhere (usually by placing it in /etc/bash_completion.d/ or similar; examining existing scripts there is probably a good idea, too).

How to simulate a key press and mouse click in C++ [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How can I simulate a mouse click / key press in C++? When I run the program I want it to click the left mouse and press "A". Thanks!
(I'm making this program for MacOSX)
I don't do any programming for OSX but I think this is what you are looking for:
https://developer.apple.com/library/mac/#documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html
In particular CGEventPost

Monitor a process for actions applied on a file [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to monitor a process in windows to check what actions it performs on a particular file including renaming it, or encrypt it. I want to generate events for these actions.
its easier to monitor the file than the process. Take a look at FileSystemWatcher class. http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx

Algorithm to "learn" from user input [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Like the 20Q, is there a published algorithm that allows a program to "learn" from user input?
Programs like junk mail filters learn from what you tell it and uses that information to make more insightful choices in the future when classifying an email as junk.
Mahout is one open source machine learning library. It has implementations of a few different algorithms

How to Execute Script with Parameter on a Mac? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have command line script, i need to execute it by programmatically with parameters.
How to execute script from coding? Can anyone guide me?
With Regards
Vadivelu
NSTask allows you to do this.

Resources