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

Sending Content of ContentPresented as Attached Command Parameter

In the MVVM demo app by Josh Smith, When you attempt to close a tab via the close button on that tab (which is not the currently selected tab), then it will not close, instead it closes the selected tab. How can I amend the code so that when I…
MoonKnight
  • 23,214
  • 40
  • 145
  • 277
3
votes
2 answers

How do I automatically run Node and Redis servers on laravel app start up

I have never used Node or Redis before, however in the app that I am building I am using node and Redis to run socket.io.js for some live updating features. Currently in order for me to make this work, I have to open terminal and run $ cd…
user3095721
  • 51
  • 1
  • 5
3
votes
1 answer

mkdir Command Not Found in shell script within if loop

I have simple script below, if [ ! -e $c ]; then mkdir "$c" fi $c is containing the folder path. I got the error mkdir: command not found. please help me out. Thanks in advance. Navdeep
Navdeep
  • 55
  • 1
  • 2
  • 6
3
votes
3 answers

Binding Commands to Button Inside ItemTemplate

Hello I am trying to bind a command to a button inside a LongListSelector's ItemTemplate. But facing binding problems. Here are my codes- XAML
Lamia Mehreen
  • 759
  • 1
  • 8
  • 15
3
votes
1 answer

Using wildcard characters in Windows command prompt

I was wondering if it is possible to use wildcard characters in Windows Command Prompt. For example, if I want to see all files in a directory ending with .docx, on Linux I would type this ls *.docx. Is there a similar tool in Windows? Thanks
user3124184
  • 31
  • 1
  • 1
  • 2
3
votes
3 answers

Equivalent lsof -i in Solaris

I have a fast question. I want to know what is the losf -i equivalent command in a Solaris system. I only want to show the files with network connection. Thank you!!
Alberto
  • 701
  • 4
  • 9
  • 25
3
votes
2 answers

Get default printer remotely

Windows 7: cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -g Windows XP: cscript C:\windows\system32\prnmngr.vbs -g These will get the default printer of the current system. I was wondering if there is a way to run this on…
Aaron
  • 3,135
  • 20
  • 51
  • 78
3
votes
1 answer

timeout --> command not found in linux server

I am using linux server from cPanel. Now I need to use one of the linux command to run. And the command is 'timeout'. My command is something as below $timeout 2s ./myexecutable < input > output This is just running ok in my linux machine. But I…
user2958359
  • 121
  • 1
  • 7
  • 15
3
votes
1 answer

Open a file under cursor with a line break in vim

I want to set up a key mapping to open an absolute path filename highlighted in visual mode that may have a line break in the middle. Most files I have are formatted in the following way, and I would like to highlight the path between the single…
cjtytler
  • 60
  • 6
3
votes
3 answers

Unix Shell Script: sleep command not working

i have a scenario in which i need to download files through curl command and want my script to pause for some time before downloading the second one. I used sleep command like sleep 3m but it is not working. any idea ??? thanks in advance.
user3070433
  • 31
  • 1
  • 1
  • 2
3
votes
2 answers

ld: unknown option: -Ttext on Mac OS X maverick

I am trying to run this command ld -Ttext 0x1000 -o kernel.bin loader.o main.o video.o but it returns ld: unknown option: -Ttext Is there any alternatives to this action or a way to make ld work? Here is written, that option -Ttext exists, but in…
Roman Bugaian
  • 354
  • 1
  • 7
  • 22
3
votes
2 answers

How to pass data between the View and the ViewModel

I'm a newbie in the MVVM design patter I'm trying to create a simple app where a list of students is shown in the main window and I want the user to be able to add a new student to the list I have accomplished the binding of the observable…
EnvelopedDevil
  • 658
  • 1
  • 13
  • 29
3
votes
2 answers

MVVM/Commands and ControlTemplates

I'm currently playing around with a MVVM/Commands and ControlTemplates. What I'm trying to do is quite simple. I want to have a list of e.g. Persons, where the user can trigger an action on each of them. But the event/commandhandler needs to be…
Martin Moser
  • 6,219
  • 1
  • 27
  • 41
3
votes
2 answers

How to login to an ftp server using shell scripting in linux?

I want to login to my FTP server using shell scripting. I made a .sh file having contents as ftp open 172.31.1.45 but it's not working. The second command is not executing. Please help. I am new to linux so please forgive if this is a stupid…
Vishnu Ks
  • 483
  • 1
  • 5
  • 18
3
votes
0 answers

Android Speech Recognition with Limited Vocabulary

I am new to android programming. I would like to include speech recognition in my app to allow the user to pick among limited choices, likely a handful of letters or numbers. For example, "A", "X", "2" etc. It seems that informing the speech…