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

Rename file in Linux if file exist in a single command

There is need that I want to rename file in Linux if file exist in a single command. Suppose I want to search test.text file and I want to replace it with test.text.bak then I fire the following command find / -name test.text if it exist then I fire…
Saxena Shekhar
  • 219
  • 6
  • 22
3
votes
3 answers

Using Editor class in AutoCAD to execute commands

I'm trying to create a button that, when pressed, marks the position of the drawing. Right now the method looks like this. [CommandMethod("MARKPOS", CommandFlags.Session)] public void MarkPosition() { Editor ed =…
Nick Gilbert
  • 4,159
  • 8
  • 43
  • 90
3
votes
2 answers

How to reference the output of the previous command twice in Linux command?

For instance, if I'd like to reference the output of the previous command once, I can use the command below: ls *.txt | xargs -I % ls -l % But how to reference the output twice? Like how can I implement something like: ls *.txt | xargs -I % 'some…
injoy
  • 3,993
  • 10
  • 40
  • 69
3
votes
2 answers

Confused about GNU `sort(1)` of a numerical sub field

I wish to sort a space separated table, with the numerical value that found on the 2nd field. I can assume that the 2nd field is always fooN but the length of N is unknown: antiq. foo11 girls colleaguing foo2 Leinsdorf Cousy foo0…
Chen Levy
  • 15,438
  • 17
  • 74
  • 92
3
votes
2 answers

Why does PHP backticks and SSH not return identical values?

When I run ps cax with my ssh command line, I get the following: user@dqeb ~ $ ps cax PID TTY STAT TIME COMMAND 3277 ? Ss 12:51 httpd 6797 ? S 1:45 httpd 7190 ? Ss 0:00 gpopd.pl 7291 ? S 0:02…
Coert Grobbelaar
  • 627
  • 4
  • 14
3
votes
1 answer

provide qconvex's input in C++ Code

For my code I need to compute Convexhull of series of points and for some reasons I need to use qhull libraries. In this library there is a method qconvex that do exactly what I need. I can run this command in terminal and get what I want. for…
Am1rr3zA
  • 7,115
  • 18
  • 83
  • 125
3
votes
1 answer

Node.js Command Prompt; Starting in Z: instead of C:

Node.js Command Prompt is starting in my Z: drive, which is a shared drive administered by my corporation. Because I only have access to it over the ethernet or VPN, it makes my connection very slow when trying to run GULP and browser sync. Firstly,…
AzKai
  • 69
  • 2
  • 9
3
votes
1 answer

How to run one command on multiple terminals?

I am using ConEmu windows emulator and I would like to run one simple command on more terminals at the same time. Is there any way to do that?
nicusska
  • 177
  • 1
  • 2
  • 9
3
votes
2 answers

linux command produce Python OSError: [Errno 2] No such file or directory

I have a problem... import sys import subprocess subprocess.call(['traceroute -I www.yahoo.com']) and I had try import sys import subprocess subprocess.call(['/usr/sbin/traceroute -I www.yahoo.com']) why I am recieving the following error…
dong
  • 43
  • 1
  • 5
3
votes
3 answers

TextBox and Button - Binding and Command

I am using MVVM pattern. I have a Text box whose Text property is bound to ViewModel's(VM supports INotifyProperyChange) Text property Button whose command is bound to VM's ICommand property type You may think of this as a SearchTextBox and…
byte
  • 1,665
  • 1
  • 19
  • 36
3
votes
3 answers

Is there a way to override the Unix terminal find command?

Eg: Find command to search for txt files find . -iname "*.txt" I want to create an alias of find command in .bash_profile so that upon sourcing .bash_profile I should be able to pass any arguments to find command to search the file types: find…
camelCase
  • 61
  • 5
3
votes
1 answer

FFMPEG command issue

I am having an issue with FFMPEG. To be exact I'm trying to generate a number of 'meaningful' thumbnails from a video file. I have found this command on the internet: ffmpeg -ss 3 -i input.mp4 -vf "select=gt(scene\,0.4)" -frames:v 5 -vsync vfr…
user3521787
  • 101
  • 2
  • 6
3
votes
2 answers

Execute multiple command lines with the same process using C#

Hi according to my last question here I try to write a sql editor or some thing like this,in this way I try to connect to CMD from C# and execute my command. Now my problem is I connect to SQLPLUS after that I cant get SQLPLUS command,and the other…
Amir
  • 1,919
  • 8
  • 53
  • 105
3
votes
3 answers

MVVMLight: Ask information/confirmation in a command?

I've created my first MVVMLight project, and I've a question: I've a button, on which is bound a command. When the command execute, in different use cases, I've to get/give information to the enduser, like: Ask where the project should be saved if…
J4N
  • 19,480
  • 39
  • 187
  • 340
3
votes
3 answers

Execute a SQlite command with Entity Framework

I use a SQLite database and Entity Framework (with .net framework 3.5). I'm trying to execute a simple SQL non query command to create a new table in this database. My Entity Framework already contains the object model for this table : I just want…
Filimindji
  • 1,453
  • 1
  • 16
  • 23