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
2 answers

Get history command of a process

Several days ago I ran multiple instances of an application (Matlab) on a remote server (I'm not root). Each instance redirects output to a log file. Today I want to kill a process that is redirecting output to a particular log file. I know the…
Tu Bui
  • 1,660
  • 5
  • 26
  • 39
3
votes
4 answers

Display the OSX Command symbol key in a JLabel

We want to show a hint for a JList that the user can select multiple items with the platform dependent key for multiselect. However I have not found any way to show the OS X COMMAND symbol in a JLabel, which means the symbol that's printed on the…
Daniel Hiller
  • 3,415
  • 3
  • 23
  • 33
3
votes
2 answers

Oracle Issue with Environment Variable 'ORACLE_UNQNAME'

I'm trying to install Oracle 11gR2 Entreprise Edition but during database creation, I got this Error : Environment Variable ORACLE_UNQNAME not defined And when I tried to lunch 'emctl.bat' From cmd I got this one : Please set ORACLE_UNQNAME to…
Chlebta
  • 3,090
  • 15
  • 50
  • 99
3
votes
4 answers

wpf prism composite command

I have a composite WPF application. I am planning to implement tool bar functionality. There are few toolbar items (basically print, save, hide, expand, undo) which will be common to all views in the main region. For this i have created default…
Praveen
  • 51
  • 1
  • 3
3
votes
4 answers

Linux: How would I pipe text into a program properly?

I've looked but can't find anything. A program for example, a TTS I use lets you do the following: ~#festival -tts | echo "I am to be spoken" Which is really nice, but for programs I use such as hexdump, I don't know how to pipe text into it. I can…
oni-kun
  • 1,775
  • 6
  • 17
  • 22
3
votes
1 answer

Is it possible to change the Windows cursor scheme with the command prompt?

I would like to know if it is possible to change the cursor scheme of Windows 8 with a command prompt. I want to have it run on start up, since I can't seem to figure out how to change it permanently. If there is any other way to change it…
3
votes
3 answers

Copying a Folder and renaming it using command prompt

I am trying to copy a folder and paste it in the same directory it was copied from. For example C:\Test is the main directory which consists of a folder ACDM, I would like to copy ACDM in the same directory and rename the new folder to ACDM1 which…
BatchScript
  • 43
  • 1
  • 1
  • 6
3
votes
1 answer

How to run executable from python and pass it arguments asked for?

I can't figure out how to run executable from python and after that pass it commands which is asking for one by one. All examples I found here are made through passing arguments directly when calling executable. But the executable I have needs "user…
Miro
  • 599
  • 10
  • 29
3
votes
1 answer

Write command line variable into text file

I've got as far as I can with this one, but struggling at the last hurdle. I am attempting to get the uptime of my Windows 7 machine, load it into a variable, trim the current time from the left part of the variable and then write it back from a…
omega1
  • 1,031
  • 4
  • 21
  • 41
3
votes
2 answers

How to Scroll To End of ListView After Data Added - WPF

I tried adding the following in a button click handler: ListView listView = MyListView; int lastItemIndex = listView.Items.Count - 1; listView.ScrollIntoView(listView.Items[lastItemIndex]); …
Buck
  • 599
  • 7
  • 20
3
votes
2 answers

Cmd - get variable in variable name

I have a problem about variable in variable ( the code is below ) : set a=1 set b=a echo %%b%% The expected result is : 1 As a is assigned to variable b and 1 is assigned to variable a. Also, there is another situation : set b=a set a1=100 set…
Jamie
  • 1,096
  • 2
  • 19
  • 38
3
votes
1 answer

What are the advantages of having customized commands with the key on Vim?

I think its self explanatory. How it is more efficient to use that key?
alexchenco
  • 53,565
  • 76
  • 241
  • 413
3
votes
0 answers

Command parser in python with command substitution

I'm writing an IRC bot in python and I don't have a clear idea on how I'm supposed to implement command substitution. Currently, if the bot sees a public message starting with an exclamation mark, it searches for a function with the name after the…
3
votes
2 answers

Open a text file in C# programmatically

I want to open a text file programmatically using C#. I have used : System.Diagnostics.Process.Start(test.txt); but this code is causing OS command injection problem when scanning for threats. Is there any way that i can open a text file…
3
votes
3 answers

question on linux command

What do the two ampersands in the following command do: (make foo&)&
gameover
  • 11,813
  • 16
  • 59
  • 70