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

Subscript a title in a Graph (ggplot2) with label of another file

In my program I have two main files, the first with the data and the second with labels (or titles of my graphics): File total1 (data) 3 10000 3 32039232 1 0.0017290351 2 0.0002781092 3 10001 3 32101193 1 0.0045398899 2…
Greg Rov
  • 327
  • 3
  • 12
3
votes
5 answers

How to get the content of a function in a string using bash?

I have already searched about this particular problem, but couldn't find anything helpful. Let's assume I have following functions defined in my ~/.bashrc (Note: this is pseudo-code!): ANDROID_PLATFORM_ROOT="/home/simao/xos/src/" function…
xdevs23
  • 3,824
  • 3
  • 20
  • 33
3
votes
2 answers

while loop in bash that uses pgrep to check if service exists

Can someone explain to me why this doesn't work? /usr/bin/mysqld_safe STATUS=$(/usr/bin/pgrep mysql | wc -l) while $STATUS -eq 0; do echo "$STATUS" sleep 1 done It defies any logic. Yes I'm not versed in bash :) p.s. I'm trying to…
user796443
3
votes
1 answer

Upgrade WordPress to latest version in Linux

Is there any way one could easily upgrade WordPress to latest version in Linux apart from the traditional way?
Reyan Chougle
  • 4,917
  • 2
  • 30
  • 57
3
votes
0 answers

How to use a renamed command in Redis using redistemplate in java Spring Boot

For security reasons I want to rename the command set and flushDb using the redis configuration. But I'm using the redisTemplate which only allows me to use the methods set and flushDb and not a renamed command Below my used…
Matti van Aert
  • 111
  • 1
  • 7
3
votes
1 answer

Always call a binary with a specific flag in linux

I was wondering if there is any way to execute a binary in linux, always with a specific flag. For example, whenever genisoimage executes, I want it always executes with -allow-limited-size flag. So, issuing the genisoimage in console, results in…
Vahid Noormofidi
  • 748
  • 10
  • 17
3
votes
3 answers

WPF MVVM Button Control Binding in DataTemplate

I've seen other questions that deal with this, but never any explicit code describing the fix. I can't get a button inside of my ItemTemplate to bind to ANY command anywhere. Very frustrating. I am a complete MVVM newbie, btw. Here's my Window…
Micah
  • 10,295
  • 13
  • 66
  • 95
3
votes
2 answers

Symfony : Testing email sending in command

Good morning. I would like to test sending email in my Symfony Command. My email is send with \Swift_Mailer by $this->mailer->send($message); I try to use this: http://symfony.com/doc/current/cookbook/email/testing.html But…
3
votes
1 answer

Changing bash prompt temporarily by own script

I wanted to write a tiny shell script that shortens the commmand prompt when it gets too long. Setting the PS1 variable in bash works fine. When I try the same command directly in a script and run it, nothing happens. #!/bin/bash PS1='\u:\W\$ ' I…
emergo
  • 43
  • 5
3
votes
1 answer

Create WAR file from command line for Eclipse Dynamic Web Project

I got a problem with generating a war file from a dynamic web project by the command line. Similar to this thread. But unfortunately I dont have maven or gradle... If I create a war file from commandline from the main directory of my Webproject, I…
Andreas W
  • 225
  • 3
  • 11
3
votes
1 answer

Generating a command with a message with more than one arguments in Elm

I'm following the Elm tutorial Random and I got stuck trying to run two dice together. I modified the message to deliver two numbers: type Msg = Roll | NewFace Int Int then I need to generate the command which sends the message in the…
pietro909
  • 1,811
  • 1
  • 19
  • 26
3
votes
1 answer

How to use MLT Framework through command line?

I am new with video editing. I want to use the MLT framework through command line in order to edit thousands of video. I am unable to install the framework. Can anyone help me with the installation process?
Aman sinha
  • 51
  • 1
  • 7
3
votes
2 answers

Adding command column to a jqGrid in Asp.Net MVC

I hope you have a good morning. I'd like to use jqGrid in my Asp.Net app. So far, I've been producing an html table and converting it to a grid, but I'd like to try a better approach: loading the data via an AJAX call as it's supposed with the grid.…
ulu
  • 5,872
  • 4
  • 42
  • 51
3
votes
1 answer

How to pipe in C

So, I'd like to do the following command line in C: ps -eo user,pid,ppid 2> log.txt | grep user 2>>log.txt | sort -nk2 > out.txt But I'm not sure like, at all how could the code be... I'm confused at how do I have to write the output of a command…
magalenyo
  • 275
  • 6
  • 17
3
votes
4 answers

Java Environment Variables

So I'm setting everything up to compile java on my Windows 10 computer, and when I went to the environment variables there was no existing PATH, so I added one. When I type "javac" in the command prompt it is able to recognize it, but when I try to…
Ash
  • 33
  • 1
  • 5