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

Convert Windows Java Commands to Linux Java Commands?

I have the following text in a BAT files so I java program in windows. I was wondering how you can do this in linux. File 1: "C:\Program Files (x86)\Java\jdk1.6.0_23\bin\javac.exe" -sourcepath src -classpath…
Eric
  • 33
  • 2
3
votes
1 answer

How to clone GIT repository with private key

I am trying create an application which will clone the GIT repository to the computer. My question is how to clone the secured repository if the SSH keys are not in the default place. I want to let people to upload keys and then with those keys to…
Goran
  • 3,292
  • 2
  • 29
  • 32
3
votes
1 answer

Shell script to run a series of commands (Ubuntu)

I'm new to Ubuntu and command line scripts and wondering how to write a script that runs / automates a series of steps. For example, a script that does the below steps. I could save it as "doeverything.sh" and put it in my user root. sudo -s in &…
Kirk Ross
  • 6,413
  • 13
  • 61
  • 104
3
votes
1 answer

Docker command with build / run / etc. "too many open files"

Im installed Docker on server machine (with Ubuntu 16.04), but trying run any commands, I get this error: "Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: too many open files" Please, who…
Slava K
  • 31
  • 1
  • 2
3
votes
1 answer

Postgres COPY TO PROGRAM with dynamic command

I have command that I want to execute after insert in table event, the command is: /usr/bin/php /var/www/app/artisan broadcast --sid=14 --cid=89 Which number 14 and 89 are dynamic depending on inserted data. For that purpose, I create trigger like…
Fathur Rohman
  • 73
  • 3
  • 6
3
votes
3 answers

rsync only files created or modified after a date and time

The goal is to rsync (or using any other tools that give the desired result) only files that are created or modified after a date. I succeeded using this command on OS X 10.6.5: find . -newermt "2010-11-23 16:52:50" -type f -exec rsync -vuptn '{}'…
Yanik
  • 529
  • 2
  • 5
  • 14
3
votes
3 answers

How to check if a program exists in path using Qt?

I have this code: QProcess* proceso = new QProcess(); QString programa = "unknow -v"; proceso->start(programa); proceso->waitForFinished(); QString normal = proceso->readAllStandardOutput(); QString errores =…
Omar Murcia
  • 547
  • 2
  • 11
  • 26
3
votes
2 answers

Command Line Arguments - Set Timeout Limit when Running Python Code

I have a bash file in which I execute a python code in a for loop several times. I want to set a timeout so that if the python code takes more than a certain time then we go to the next iteration. How can I add timeout to my bash code line when…
USC.Trojan
  • 391
  • 5
  • 14
3
votes
1 answer

Laravel Run function from console command

LARAVEL 5.2, just created the command named "HelloWorld" and here is the code:
Miril Terolli
  • 211
  • 1
  • 5
  • 14
3
votes
1 answer

Override yml configuration in spring-boot with command line arguments not work

I have a spring-boot application. I want to override some properties which was configuration in application.yml when executing the jar. My code like this: @Service public class CommandService { @Value("${name:defaultName}") private String…
free斩
  • 421
  • 1
  • 6
  • 18
3
votes
0 answers

WPF Command DependencyProperty

I am building a WPF wrapper to display PDFs using Acrobat (from this CodePlex project) The Codeplex project supplies enough samples on performing basic functions on the PDF Viewer, but lacks the functionalities of the WPF MVVM pattern. My WPF…
Johan Aspeling
  • 765
  • 1
  • 13
  • 38
3
votes
1 answer

How to run a command when atom starts

I would like to run various commands when Atom starts, so that it opens in the state I expect it to without having to run those commands manually every time. I know init.coffee is run when Atom starts, but I don't know how to run a command from…
Marco Roy
  • 4,004
  • 7
  • 34
  • 50
3
votes
4 answers

PHP IRC Robot, Send Command, but now I need the bot to read the command

I have a PHP IRC Robot that I use in my channel and I need it to make OPs to specific set users in the script by me. Anyways I want the robot to check if the user is logged into NickServ to prevent any sort of fraud or anything. Anyways, here is my…
Brad R
3
votes
1 answer

How does Command Pattern enables Undo?

Can someone help me understand how can the Command Pattern in Java or C# enables "undo" functionality in application design? Any explanation would be appreciated.
miiworld2
  • 296
  • 1
  • 2
  • 11
3
votes
3 answers

How to take user input in playground in Swift?

I want to take user input from command line. I'm using readLine() but I'm unable give any input.