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
2 answers

command to find UNIX flavor?

I am facing problem to find the UNIX flavor, any body please provide the command so I can check UNIX flavour I have tried below commands but that's not working as expected $ lsb_release -irc ksh: lsb_release: not found $ uname -a SunOS…
Girdhar Singh Rathore
  • 5,030
  • 7
  • 49
  • 67
3
votes
1 answer

C program to perform a pipe on three commands

I have to write a program that will perform the same operation that du | sort | head in the command line would do, but I'm stuck, and my program is not working. The output right now is 112 . and the program doesn't terminate. Please help, I don't…
CSstudent
  • 43
  • 1
  • 7
3
votes
3 answers

Unix - Only list directories which contain a subdirectory

How can I print in the Unix shell the number of directories in a tree which contain other directories? I haven't found a solution yet with commands like find or ls.
Stein
  • 33
  • 3
3
votes
1 answer

DB backup in cron is creating a file with zero byte

I have set up a cron in my godaddy server for taking DB backup. For Testing purpose, I run the cron in every minute. The command is : mysqldump tuniv_results > /home/username/public_html/DB-VVS/tuniv_results.sql In my DB-VVS folder one file,…
Srim
  • 527
  • 2
  • 8
  • 23
3
votes
2 answers

Triggering Silverlight Prism command with a keyboard shortcut

Does anybody know whether one can trigger prism command with a shortcut? What I mean is I want to be able to define binding of a command to keyboard shortcut in declarative manner, like ClientUI does: Are there any opensource libraries for that…
Denis Parchenko
  • 665
  • 1
  • 6
  • 18
3
votes
1 answer

Subversion commands to add new user and grant all permissions

Currently, I am not able to commit with the SVN user I added. I tried by manually editing the svnserve.conf and passwd files. I did the following. Added a line, harry = harrysecret, in passwd Uncommented the line password-db = passwd in…
Sandeepan Nath
  • 9,966
  • 17
  • 86
  • 144
3
votes
2 answers

Retrieve command output to variable when command has spaces

I've read in various places that I can use Windows batch file for to grab the output of a command and put it in a variable, like this: FOR /F %%G IN ('foo-command') DO SET FOO=%%G Great. So my foo-command is actually C:\Program Files\Foo\foo.bat,…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
3
votes
2 answers

Create a sort of command line for a python server

I have been experimenting with Python socket servers and such. I came across an idea and I am having a hard time implementing it. I want the server side to be able to enter different commands, for starting and stopping the server, and performing…
coder guy
  • 531
  • 1
  • 3
  • 12
3
votes
0 answers

Running hadoop command from Runtime.getRuntime().exec

I am using Java8 with CDH5. I am trying to run hadoop fs -copyFromLocal command to copy Java Flight Recorder files captured from each maptask/reducetask to HDFS. I am doing this copy in shutdown hook of a premain method. I cannot use Java API to…
3
votes
1 answer

MouseDoubleClick on ListItem with MVVM in WPF

I want to show dialog when i double click any of the list items. But the flow of the program never go in the ShowTextCommand property. I get the list of the names (that works fine) but I can't get the dialog. This is my XAML:
3
votes
0 answers

How to start Cyberghost and select country IP Address, and auto-change IP Address after a period of time, by Windows Command Line?

How to connect Cyberghost by Windows Command Line. I want something like this: Cyberghost.exe /Connect /Country United States echo Countdown Timer for 30 Minutes TIMEOUT /T 1800 /NOBREAK Cyberghost.exe /Disconnect Cyberghost.exe /Connect /Country…
Najmi
  • 31
  • 4
3
votes
1 answer

How can I keep a bat file repeating constantly?

sorry if I am using wrong terms, I am new to this stuff. so I have been trying to get this command (taskkill /f /t /im (the process)) to keep repeating because the process that I am trying to kill keeps coming back. so I thought if i can get the…
Ali Shuaib
  • 31
  • 1
3
votes
0 answers

JavaScript runtime error: module cordova/windows8/commandProxy not found

I got this error "JavaScript runtime error: module cordova/windows8/commandProxy not found" when i open my cordova application in the visual studio; And it's windows 8. Does anyone know how to solve it?
Cyndi
  • 31
  • 2
3
votes
2 answers

Order a column then print a certain row with awk in command line

I have a txt file like this: ID row1 row2 row3 score rs16 ... ... ... 0.23 rs52 ... ... ... 1.43 rs87 ... ... ... 0.45 rs89 ... ... ... 2.34 rs67 ... ... ... 1.89 Rows1- row3 do not matter. I…
Evan
  • 1,477
  • 1
  • 17
  • 34
3
votes
1 answer

How to set up task scheduling in Laravel 4?

I've a website made in Laravel 4.2 and we have a monthly membership with 30 credits. Even if user doesn't use all of them, they should expire at valid_till date. I wish to have a piece of code which will run at 12 am every night and will set…
Abhishek Bhatia
  • 77
  • 1
  • 12