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

What is the Programdata/Application Data folder?

So I am writing an application that iterates through a specified directory tree and I was experimenting with the exception that handles permissions for folder access and there was one folder I came across that the compiler returned that had the…
user3421896
3
votes
2 answers

teamcity command line interpretter : quotes are replaced

I need to run a simple command line within teamcity FINDSTR /M /N /P /S /R /C:"goto end" D:\blabla\* The double quote are replaced and somehow doubled when teamcity calls the command. The resulting command is cmd.exe /c FINDSTR /M /N /P /S /R…
NicolasW
  • 1,519
  • 5
  • 22
  • 34
3
votes
3 answers

Sending commands to a Tera Term via script file

I am testing some boards and the system used to test these is Tera Term. In Tera Term I use the Serial Port to send commands to the board in order to log in and run certain settings that I want. Instead of typing these commands each time I test a…
Adam
  • 71
  • 1
  • 1
  • 5
3
votes
1 answer

Node.js - Call a system command or external command

I've an issue with Node.js. With Python, if I wanted to execute an external command, I used to do something like this: import subprocess subprocess.call("bower init", shell=True) I've read about child_process.exec and spawn in Node.js but I can't…
Henrique Dias
  • 182
  • 4
  • 13
3
votes
1 answer

TestNG [Error] no test suite found. nothing to run

I am Unable to run the testng test suite from command line I am using windows System TestNG [Error] no test suite found. nothing to run had report ng listeners i have removed that fro my xml and i have removed those jars from library I…
Chaitanya Pujari
  • 367
  • 4
  • 16
3
votes
0 answers

How do I open a specific port on OS X Yosemite from the command line?

I cannot seem to find anywhere how to open a specific port on OS X Yosemite. I understand that I can use 'Little Snitch' in order to open a port, but I would love to do it from the command line. This is for a Firewall port.
Wir3d_Gh0st
  • 39
  • 1
  • 3
3
votes
1 answer

TextBox binding is not working

I have two UserControls: 1) ContactDetailsView. 2) SearchBarView. In theSearchBarView, I have a Search button, which raises a command when clicked: Command="{Binding SearchCommand}" In the SearchBarView code behind, I have the following code:…
Idanis
  • 1,918
  • 6
  • 38
  • 69
3
votes
1 answer

Command to replace string in a file

I want to replace a string in a file using command, but the thing is the string is such "https": false, I want to change it to "https": true, and vice versa. is there any way to accomplish this thru command? Am developing auto script so whenever…
Harsh
  • 152
  • 1
  • 1
  • 9
3
votes
2 answers

Running a script on each reboot of EC2

I am running an Amazon Linux EC2 instance. It is a node.js server. I need to run the following command on each reboot/startup: sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080 The command above redirects port 80 to port…
Mate Hegedus
  • 2,887
  • 1
  • 19
  • 30
3
votes
1 answer

Lua: command lines parameters are nil on windows 8.1

I run the Lua script using command line: scipt.lua arg But when I want to print the value arg1 in script: print(arg[1]) Result is nil. When I try to run it like: lua script.lua arg It returns not recognized command for windows. What I am doing…
Hrablicky
  • 143
  • 1
  • 9
3
votes
0 answers

AppJS --harmony issue?

I'm using msvc and have nodejs tools setup in it. Fairly new to node.js but all the other npm packages i've simply installed via command line or through nodejs tools and they have worked. AppJS however gives me the error when I call…
Chase Lewis
  • 163
  • 6
3
votes
1 answer

Launch app with parameters with Google Now

It's possible with Google Now (with voice command) to open app with parameters? Example: I have an app that can controls an alarm, named "Alarmed" Can I say: "OK google , 'command' app" -> Then open app and pass data 'command' to the app…
Kotik_o
  • 295
  • 6
  • 19
3
votes
2 answers

Visual Studio set command arguments

I'm using Visual Studio 2013. Now, I have a few C# and C++ projects in a solution. Under project properties I can add some debugging properties. That works fine. But when I run the visual studio solution on another computer the command arguments are…
user2644964
  • 763
  • 2
  • 10
  • 28
3
votes
3 answers

Laravel 5 Commands - Execute one after other

I have a CustomCommand_1 and a CustomCommand_2. Any way to create a pipeline of commands and executing CustomCommand_2 right after CustomCommand_1 execution? (without call a command inside the other one).
Christopher
  • 3,379
  • 7
  • 25
  • 36
3
votes
1 answer

Line of Python code not working in my game

So this line of code in my Python game is not working: direction=raw_input("What would you like to do?\n") It's supposed to get the player to type in a command either: North, South, East, West, Look, Search, Commands or Inventory. It's coming up…