Questions tagged [command]

A command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. Most commonly a command is a directive to some kind of command line interface, such as a shell. Use [command-pattern] for the design pattern.

A command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. Most commonly a command is a directive to some kind of command line interface, such as a shell.

Specifically, the term command is used in imperative computer languages. These languages are called this, because statements in these languages are usually written in a manner similar to the imperative mood used in many natural languages. If one views a statement in an imperative language as being like a sentence in a natural language, then a command is generally like a verb in such a language.

Many programs allow specially formatted arguments, known as flags, which modify the default behaviour of the command, while further arguments describe what the command acts on. Comparing to a natural language: the flags are adverbs, whilst the other arguments are objects.

More links:

10688 questions
3
votes
4 answers

WPF: How to redefine CanExecute method of ApplicationCommands

I use standard Cut, Copy and Paste commands (which is part of ApplicationCommands class). Is it possible to redefine CanExecute method? Here is my code: XAML:
Nike
  • 1,297
  • 3
  • 18
  • 21
3
votes
3 answers

How to extract expression matching an email address in a text file using R or Command Line?

I have a text file that contains email addresses and some information. I would like to know how can I extract those email address using R or the terminal? I've read that I can used some regular expression that would match an email address such…
dixi
  • 680
  • 1
  • 13
  • 27
3
votes
2 answers

Programatically change icon for a eclipse RCP command

I have a menu drop down action in the coolbar. It has 3 sub items that form a radio group. I would like to change the icon shown in the coolbar when the user selects one of these options. I've googled and seen that I should look…
Craig
  • 853
  • 1
  • 10
  • 17
3
votes
2 answers

How does the "-newer $file" option of "find" command in linux shell work?

I have following linux command. find ${MOUNT_POINT} -type f -name "VM*" -newer $SENTFILE -print0 | xargs -0 -i cp {} ${TMP_DIR} I am having difficulty understanding the option -newer $SENTFILE. Could anybody explain this option?
3
votes
2 answers

Has song finished playing? (C# MCI)

I have an mp3 player that sends MCI commands to play pause/ff/rw/stop the audio files etc and the only thing i can't figure out how to do is send an MCI command to tell it to play the next song when the current one's finished playing. The songs are…
anon271334
3
votes
2 answers

Mouse position in xaml - wpf

Is it possible to specify the position of the mouse as the value of the Parameter property of a Command in XAML. Something like the following:
Simon Fox
  • 10,409
  • 7
  • 60
  • 81
3
votes
1 answer

Git command error

I have updated files in my local instance and my git have 3 days old files. So i want to commit my changes for that i done following command to merge changes in git and my local instance Sudo git pull --> pulling files from git So it will give…
user3755198
  • 105
  • 1
  • 3
  • 8
3
votes
1 answer

ACE change key binding conditionally

If the user presses the down key while a custom popup is displayed, I would like this down event to be cancelled from the editor and handled manually. However, if the popup is disactivated, the 'down' key should perform as usual. For that, I wrote…
Mikaël Mayer
  • 10,425
  • 6
  • 64
  • 101
3
votes
1 answer

Unable to load the main project's project.properties in android studio while creating a test project using terminal

I am trying to create a Test Project for a simple application project called 'SimpleMaths' in android studio. As per the android documentation for Testing from Other IDEs i used a command android create test-project -m -n
3
votes
1 answer

Django: run admin command in background and notify html when finished

I have set up an admin command in django: from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): """ Command to parse logs that can be called from django """ def handle(self, *args, **options): …
liarspocker
  • 2,434
  • 3
  • 17
  • 26
3
votes
0 answers

Reusing menu commands in an Eclipse plugin

I have two menu contribution in my Eclipse plugin, that both show the same items. One is a dropdown in the toolbar, and another is a submenu in the right-click context menu. Currently I have to add the items in each place separately, essentially…
ekj
  • 1,082
  • 2
  • 11
  • 22
3
votes
1 answer

How can I list the methods of a JavaScript object in VS command window?

When debugging JavaScript in Visual Studio 2008 and I use the ? command in the command window to list a JavaScript object's members I always get that ellipses {...}. Example: >? Page_Validators {...} [0]: {object} [1]: {object} [2]:…
John Grant
  • 522
  • 8
  • 17
3
votes
1 answer

How to create args[] from string in java

I need to simulate command line, therefore I need to change string into the args[] in the same way running program with parameters into main method does. I am using commons cli, but it does not have any parsing method, it does expect array of string…
libik
  • 22,239
  • 9
  • 44
  • 87
3
votes
3 answers

Kill a process with a certain value in the command lying between a specific range

I run a lot of curl process through a script. These curl processes specify the local ports to be used. Now I need to kill some of these processes based on their local ports. For eg i want to kill the processes with the local ports lying between…
Rishabh
  • 199
  • 3
  • 14
3
votes
4 answers

Check if a file exists inside a "Variable" Path

I am trying to find if a file exist in an iPhone application directory Unfortunately, apps directory differs from a device to another On my device, i use the following command to see if the file exists: if [[ -f…
Fouad
  • 399
  • 1
  • 7
  • 19