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
1 answer

Telegram bot - Get user response (command) from keyboard without slash

I want get a command from custom keyboard, without slash. I read in other issue and inthe documentation, that this is not possible, the commands must always start with the ‘/’ symbol. But in many bots i see that is possible. For example @TriviaBot I…
frencisdrame
  • 53
  • 1
  • 5
3
votes
2 answers

Get foldername without path using dir in cmd

By using: dir /s /b /o:n /a:d > foldername.txt I get the following output: D:\Project\Java\MyName D:\Project\Java\Object But I want the output to look like this: MyName Object The output have to be folder names without their paths?
paulcab
  • 1,102
  • 1
  • 9
  • 16
3
votes
6 answers

unix bash command

How to write a bash command that finds all files in the current directory that contain the word “foo”, regardless of case?
scoohh
  • 375
  • 6
  • 12
  • 19
3
votes
2 answers

Get the source code of website using lynx

As I can access the source code with lynx, w3m, links, etc. protected with a form. lynx -source -auth=user:pass domain.com lynx -source -accept_all_cookies -auth=user:pass domain.com lynx -accept_all_cookies -auth=user:pass domain.com all fail…
user1847844
  • 77
  • 2
  • 7
3
votes
2 answers

why isn't eth (ethereum) working?

When I run the program 'eth.exe' (from the ethereum frontier website), I am prompted for a password. I enter a password, but then even after several hours I don't get any command line prompt. I simply get a flashing cursor that is still there after…
user3367130
  • 163
  • 8
3
votes
1 answer

How to turn on warning on rm command?

I recently installed Ubuntu and find that when I delete things in terminal using rm file there is no warning asking me to confirm the step. I did not use the -f flag. It feels vulnerable to accidental deletion in this way. I searched online and…
S Wang
  • 213
  • 3
  • 11
3
votes
1 answer

Difference between whole string command and list of strings in popen

I found most of the programmers suggest use list of strings to represent the command in popen. However, in my own project, I found a whole string works in more cases. For example, the following works subprocess.Popen('pgrep -f "\./run"',…
Jerry Chou
  • 302
  • 1
  • 11
3
votes
2 answers

How to find a word in CMD command output

i'm trying to find a word in a CMD command output (like using ctrl+f in a file) the output contains a lot of lines ... Any hints ? thanks .
The Beast
  • 1,629
  • 2
  • 29
  • 42
3
votes
2 answers

Spring mvc, how to bind a domain object that has a collection as its property

I have a domain object called Order, and it has a collection attribute called serviceOrders where a collection of service --- order m:m association relationships are hold. public class Order implements Serializable { private Long id = null; …
user421038
  • 31
  • 1
3
votes
2 answers

How to depends of a system command with python/distutils?

I'm looking for the most elegant way to notify users of my library that they need a specific unix command to ensure that it will works... When is the bet time for my lib to raise an error: Installation ? When my app call the command ? At the import…
christophe31
  • 6,359
  • 4
  • 34
  • 46
3
votes
4 answers

Parsing and Acting on commands

I am making a debugging console for my projects, taking input from a TextBox, etc. However I wish to know if there are any alternatives to simply a huge switch statement: switch(command.ToLower) { case "example": // do things... break; case…
user4859913
3
votes
2 answers

Deny all folders permission from all users/administrators via CMD/Batch in Windows 7/8/10

I need to deny all folder permissions for all users, include administrators and others groups via batch file. I found two topics about this, but i can't solve my problem icacls Deny Everyone Directory Delete Permission How to grant permission to…
rafaelfndev
  • 679
  • 2
  • 9
  • 27
3
votes
2 answers

How can the Git command be executed on Windows through Gradle?

So I have the following code snippet: def getVersion = { -> def stdout = new ByteArrayOutputStream() exec { commandLine 'git', 'describe', '--tags' standardOutput = stdout } return stdout.toString().trim() } and…
T145
  • 1,415
  • 1
  • 13
  • 33
3
votes
2 answers

laravel command not found while using laravel command

I've recently installed composer and also installed laravel installer from composer from the commmand line just like they said in laravel documentation. But when I used the laravel command on the command line, it show error: sh.exe": laravel:…
Birendra Gurung
  • 2,168
  • 2
  • 16
  • 29
3
votes
2 answers

Meaning of Docker command

It seems a simple question but it's really not clear what the meaning is of this command: docker run -d -p 5000:5000 --restart=always --name registry \ -v `pwd`/certs:/certs \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt \ -e…
user5558501