Most voted "command-line" questions
63 questions
Sort by count of
-
15
votes1
answer59086
viewsJavac is not recognized as an internal or external command
I am trying to compile a java class via command line (cmd), but I cannot, the error shown is: 'java is not recognized as an internal or external command, a operable program, or a batch file.…
-
14
votes2
answers4380
viewsLinux C programming - IDE vs. editor + command line
I’ve been looking for a similar question here and I haven’t found anything so if you’ve already answered I’m sorry. I’m a beginner in C programming and would like to know if it is more appropriate…
-
13
votes3
answers753
viewsDoes Java have a class to work with command line arguments?
I need to create a Java desktop app, and with it pass several parameters of the type: java meuapp.jar -DB c: base.db -user admin -password admin Is there an easy way to get these parameters?…
-
10
votes3
answers1471
viewsUse Command Line with C#
In my work I use the command line, and wanted to improve the work in my company. To do this, I thought of creating a program in C# for people who do not know how to work with command line. I thought…
-
10
votes2
answers153
viewsIs there any way to run C# from the command line in interactive mode?
I’m used to using PHP and Python, languages that allow you to run on the command line in interactive mode, so it’s easier to test or learn something new, since I won’t need to compile all the time…
-
9
votes3
answers2597
viewsHow to write commands in a console program through a batch (.bat) file?
I want to automate a routine through a .bat which will call a console program which, in turn, will receive successive commands from this .bat. This console program could be, for example, an ftp…
-
8
votes3
answers2208
viewsCreate database on server via mysql-Workbench (.mwb) template via command line
I am trying to assemble a bat to create the database in the mysql server from an EER (.mwb) mysql-Workbench model, that is, in the command line, is it possible to perform this process? Someone could…
mysql relational-model batch mysql-workbench command-lineasked 9 years, 6 months ago Artur_Indio 1,093 -
7
votes2
answers181
viewsHow to show the changes made in a SVN review?
I have a review number on svn. How do I (command line) show the changes that have been made in this revision? As far as I could: svn log -r XXXXXX But that way it only shows the text of Commit.…
-
7
votes2
answers605
viewsWhy do I need './' to run Unix commands?
I noticed that every executable that I Gero I need for a ./ to run it on both Linux and Macos (Unix/Unix systems-like). For example, to compile a C file with GCC and run it right away, I do the…
-
6
votes3
answers638
viewsHow to run PHP in interactive mode?
How do I run php from the command line without using a script as an argument. Example with script: > php index.php I already know how to execute a certain function or code like this: > php -r…
-
5
votes1
answer557
viewsHow to get command line parameters / file path
I am developing an application, and accurate by parameters/commands next to the file path. For example, these flags: C:/caminho_do_arquivo -r C:/caminho_do_arquivo -v And in the code there would be…
-
5
votes1
answer355
viewsGulp tasks with command line parameters
I work with a simple task of Gulp, created to realize a deploy in a production environment. In a simplified way, the task is: gulp.task('deploy-prod', function () { return gulp.src('dist/**')…
-
4
votes2
answers2442
viewsRun a java Jar by Delphi
I wonder if there is a way to execute a jar by Delphi and give commands to it as if it were a command line. The truth is that I have a java application that no longer has access to the code and it…
-
4
votes1
answer156
viewsCommand for sharing same folder with multiple names
I am currently working on an improvement in the deployment process and I would like to automate one of the new steps. Through the Windows UI i can share the same folder on the network under several…
-
4
votes1
answer21806
viewsRead rows and columns by Python, by excel
My doubt is if there is any resource for me to be able to read excel rows and columns. For example: I have experimental data in excel containing header in the first row having about 12 columns of…
-
4
votes2
answers235
viewsWhy don’t all commands work with pipe?
I’m intrigued by the fact that kill and some other commands do not work with pipe. For example, I tried cat /tmp/server.pid | kill -9 and it didn’t work. Searching some forums in English I found the…
-
4
votes1
answer107
viewsWhy do errors in PHP scripts run via the command line not appear in the apache error log?
It is important to note that errors that occur in running PHP script via browser are recorded without any problem in the file: /var/log/apache2/error.log. The problem only happens when scripts are…
-
4
votes1
answer90
viewsPass lambda expression on command line
I created a program to calculate the defined integral of a function, but I want to be able to run it through the terminal. #include <iostream> #include <functional> #include…
-
4
votes1
answer154
viewsWhat does this command mean in git " "?
I don’t like using commands without knowing the meaning, so would someone tell me what this command means in git: ^ ?
-
3
votes1
answer566
viewsDelete file by command line with different type
It has 2 directories, their contents are the same, but in one of them there can only be java files and the other only files that are not java In the Resources folder are those not java src main…
-
3
votes2
answers2027
viewsSend a command to Terminal via C++
How to send a code to the terminal? For example: on a graphical screen where I type the name of a folder, and it sends to the terminal a mkdir NomePasta ? (Of course, there will be other features,…
-
3
votes2
answers685
viewsFix invalid command dynamically, no alias required
I’m using GNU bash version 4.3.46. One problem I have when typing commands, is that I often end up forgetting a space between the command and its parameters. Examples: cd.. gitlog When the right…
-
2
votes0
answers45
viewsUsing the sysstat utility to save server usage information in XML format
Sysstat allows you to collect all the information I need from the server: CPU usage, memories, buffers... sadf - with the -x option prints in XML format. I would like all information (CPU usage,…
-
2
votes1
answer581
viewsHelp with the argparse library
I’m trying to use the library argparse to guide the main module (__main__) between two possible executions: import unittest import argparse arg = argparse.ArgumentParser(description='Execution…
-
2
votes1
answer47
viewsMan pages on Windows
in the Linux command terminal we can access the manual pages of the applications. Type man date. Is there anything equivalent in Windows cmd? For example, I wanted to know details of the tasklist…
-
2
votes1
answer599
viewsHow to commit using command line in SVN
Empty folder created in SVN. I need to put the content in it, but I don’t want to do one by one all file and folder additions. I am on linux and I would like to do by command line, but I haven’t…
-
2
votes1
answer355
viewsCreate a scheduled task on Windows XP 32-bit
I want to create or modify a task per command line, that on the same machine. I’m using the command Schtasks with argument /Create. But I only got on Windows 8, when I took the BAT to the machine…
-
2
votes1
answer82
viewsHow to pass values via terminal to a program function
#include <stdio.h> #include <string.h> void soma(int a,int b); int main(int argc,char *argv[]) { printf("A soma="); return 0; } void soma(int a,int b){ printf("%d\n",a+b); } As step the…
-
2
votes1
answer470
viewsHow to change the gradlew version from the command line?
I need to reverse the version of gradlew back to 4.10.2. I went to version 5.5.2 to do some testing and need to return to the original version to confirm the test results.
-
2
votes1
answer15108
viewsHow to declare a variable in . BAT ("shell")?
I’m starting to mess with file. BAT, and I created a command line. Example: ping <nome do computador> Below it would show me if it is online, would look like this: ping computador_1 But I…
-
2
votes1
answer74
viewsWritten to command line via Lua, command line reading via C#
I was in need of some help with a code on moon, to generate parameters for the command line, and then collect them by another application, only in C#, to be more specific, I want to run a virtual…
-
1
votes3
answers5312
viewsHow to add line break using sed?
How to add a line break in a pipe received output, using sed, only for cases that fit the established pattern? I used sed "s/.*oo.*/&\n/" unsuccessfully. The pattern is OK, but the addition of…
-
1
votes2
answers6534
viewsHow do PHP read the command line entry as a string?
In the Python, I know that to read the data entered by the command line we use the function raw_input. Example: Python script: print 'digite algo para inicializar' resultado = raw_input() print 'O…
-
1
votes1
answer1063
viewsHow to extract a SFX file with 7zip in command line?
I would like to know how to extract a SFX file using command line, as an example I have the file Download JDK 8, Self Extractor, its I download this file and extract it using 7zip by graphical…
-
1
votes0
answers42
viewsGnupg in PHP5 does not print in browser, but works in terminal?
I’m having a problem in PHP that I’ve never seen before, I’m using the Gnupg class to generate encrypted messages, however I can’t use in browser, I was wondering why but I can’t come to the…
-
1
votes1
answer191
viewsHow do I build a script to compile librtmp with openssl?
I’m implementing the project ijkplayer(android mediaplayer) but I’m having a hard time adapting an automated librtmp compilation(rtmpdump). I have the following example below, used to compile…
-
1
votes2
answers6493
viewsWait for BAT command to run to continue
I need to run a bat file with the following content: ECHO "Mensagem 1" copy xxx yyy ECHO "Mensagem 2" outro.bat param1 ECHO "Mensagem 3" copy zzz ooo However when it runs the other.bat my script…
-
1
votes2
answers3218
viewsNano for Windows
Does anyone know how to install "nano" to use in windows CMD? I’m learning to use command line to stop using graphical interface, but I’m having enough difficulty setting up the tools in windows.…
-
1
votes1
answer10500
viewsCreate script to run program by passing only part of the name
I created a small script (.bat) for the installation of several programs silently. Over time the programs keep updating requiring me to edit the code to put the version number of the program. Doubt:…
-
1
votes1
answer76
viewsAdd via app command line in "Login Applications"
How do I add an app to "Initial Apps for Session" via terminal in the Ubuntu?
-
1
votes1
answer213
viewsLinux - Copy only attributes of files into a folder
At first... I had a problem with my partitioning and needed to reset my hard drive. I am running Linux Mint 19 on Live-CD (USB) to be able to copy the contents of my /home folder (which was on…
-
1
votes1
answer1339
viewsHow to execute more than one waiting command in a file . bat
I searched here and could not find how to do it. In short I need to create a file .bat and execute 3 commands: 1. Open a directory ( cd ); 2. Execute ( npm i ); after completion of the above task 3.…
-
1
votes1
answer60
viewsHow could I replace a row of multiple txt files that would come from an output of ls -l?
What I’d like to do is more or less that: ls -l | xargs sed’s/regex of the pattern I want to replace/new data/g' for each output of ls, a replacement is done inside the file using sed. Can you do…
-
1
votes2
answers520
viewsCreate . jar of a multi-package project, without IDE and on the command line
When doing a search for the websites of Stack Overflow, I realized that all topics only teach how to create the file . jar of a single class or even teach how to create the . jar of an entire…
-
1
votes1
answer136
viewsHow to change the version of mvnw from the command line?
I need to change the version of mvnw to the 3.5.0 or higher. I am using a maven-wrapper inherited from another project (copied and pasted), but it is in the version 3.3.9. How to make this change in…
-
1
votes1
answer112
viewsHow to imitate "until... you do" command with python?
How can I make a counter regressing with python? I tried so: count = int(10) while True: print("Eu conto", count) count = int(count -1) if count = 0: break but it seems that it does not accept the…
-
1
votes1
answer50
viewsMostar image if not connected to the internet
Show a picture if the device is not connected to the internet Good afternoon gentlemen I’m new in Android programming, I’m using Android Studio Next I am developing an app that simply calls a…
-
1
votes1
answer50
viewsUpdate Application Version Automatically - Cordova
The script below saves the version to a txt, however is giving some error that in the file txt appears as : "ECHO is disabled". @ECHO OFF CALL npm version > version SET /p ver=<version DEL…
-
0
votes2
answers1006
viewsHow to install Zftool (windows, linux)
How to install zftool on windows and linux?
-
0
votes0
answers44
viewsOnly numbers in Textbox in C# (with Num Lock, WPF Project)
In this command below only the numbers between the quotes (") and the minus (-) of the keyboard work when the user type in a Textbox. I need it to work as well when Num Lock is enabled on the…