command-line

How to set the volume via commandline on recent VLC versions?

て烟熏妆下的殇ゞ 提交于 2020-01-24 02:55:07
问题 I've been trying, without success, to set the volume in VLC [2.2.1] via terminal, on Ubuntu. The parameter --volume doesn't exist anymore ( Warning: option --volume no longer exists ), and I can't find anything in the help which has "volume" in it. The documentation (https://wiki.videolan.org/Documentation:Advanced_Use_of_VLC/) is outdated, as it still has the --volume option in it. Is it still possible? 回答1: Tested on MacOS using VLC 3 /Applications/VLC.app/Contents/MacOS/VLC --auhal-volume

Close a running application from DOS command line

烈酒焚心 提交于 2020-01-24 02:16:07
问题 The start command can launch an application like notepad in a batch file like this: start notepad start "my love.mp3" But how do I close the running application from the command line? I found taskkill in my searches but I don't think that is the right command because it's not working—it says no such file. How do I close an application launched with start ? 回答1: Taskkill is correct. But you must kill the process playing the file, not the file itself. Figuring out the registered handler for mp3

/usr/bin/env: 'python3\r': No such file or directory error is throwing in Windows

时光毁灭记忆、已成空白 提交于 2020-01-24 01:46:06
问题 I am trying to deploy the hyperlegder sawtooth in my windows local machine from the below repository 'https://github.com/hyperledger/education'. When I start the application using Docker, then I am getting an error for the tunachain-tp as below tunachain-tp | /usr/bin/env: 'python3\r': No such file or directory I have tried to solve the problem in the below ways Installed python and configured the path variable Uninstalled python But, unfortunately none of the solution is worked out for me.

How to call MATLAB from the command line several times, using the same MATLAB instance every time

╄→гoц情女王★ 提交于 2020-01-23 12:49:12
问题 I have a .m script that is called from the Windows command line (aka or prompt), and I call this script with different arguments several times (50+) a day. I tried using the matlab -r "run script.m" and the script is correctly executed, but everytime I issue this prompt command a new instance of MATLAB is opened, which is undesirable in this case. Is there a way of identifying that there is an instance of MATLAB already running on my Windows 7 machine, and force the use of the same MATLAB

Move printing position of Command Line Interface in Java without using External library

╄→尐↘猪︶ㄣ 提交于 2020-01-23 12:33:39
问题 In C, I recalled that I can move the invisible caret around the command line interface screen with respect to the line and character position, meaning I can make the program print any text anywhere on the screen. Do we have such command in Java? For instance, here is a pseudocode in C: int main(){ printf("launching program\n"); moveTo(4,3); //move to line 4 at character index 3 on the screen. printf("AAA"); moveTo(3,0); //move to line 3 at character index 0 on the screen. printf("BBB");

How to run an R script file from the command line

China☆狼群 提交于 2020-01-23 12:07:55
问题 I know there are a lot of questions regarding this issue but I've tried everything and I think I just don't understand how the command line works in windows. I have a file saved in a folder on my desktop, let's say: C:\Users\abika_000\Desktop\R models\myfile.R Here is the directory to my R/bin or Rscript/bin: C:\Program Files\R\R-3.1.0\bin I want to run this code using the cmd prompt. How would I go about doing this? I've tried this solution from the question below but I just keep getting

Pass argument with quotes to PowerShell script via TeamCity

三世轮回 提交于 2020-01-23 08:02:29
问题 We're calling a PowerShell script via TeamCity. We want to pass a parameter which contains quotes, e.g.: Build step : PowerShell Script file : foo/bar/my.ps1 Script arguments : -MyParam "%system.MyParam%" Where system.MyParam is set to <xml><elem attr="value"></elem></xml> . Unfortunately, this fails with: Cannot process argument transformation on parameter MyParam . Cannot convert value " <xml><elem " to type " System.Xml.XmlDocument ". Error: "Unexpected end of file while parsing Name has

Command line compiler for XTend

人盡茶涼 提交于 2020-01-22 14:30:05
问题 Hi all I've found XTend (http://xtend-lang.org) and it really sounds great! But, I can't see any standalone command line compiler for this language. It seems only to run under eclipse. I've done some research, and found some people saying, that it has a command line compiler, but I can't find a download link. Does the compiler exist, standalone, or do you need eclipse to use it? Regards 回答1: It is not documented, but there is indeed a command line compiler in the Xtend code base - the same

“permission denied” for pg_dump output file

被刻印的时光 ゝ 提交于 2020-01-22 14:00:08
问题 i used below command to backup my database sudo -u user_name pg_dump dbName -f /home ..../someWhere/db.sql but it gives me this : pg_dump: [archiver] could not open output file "/home ..../someWhere/db.sql": Permission denied after googling this issue i find that i must backup my data under the /tmp path , but doesn't work how can i resolve this issue ? thanks in advance, i am using Ubuntu 12.04 lts 回答1: try pg_dump from psql command-line as below: postgres=# \! pg_dump dbName -f /home ....

Output to command-line if started from command line

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-22 12:43:53
问题 I'm writing an application that can be started either as a standard WinForms app or in unattended mode from the command-line. The application was built using the VS 2k5 standard WinForms template. When the application is executed from the command-line, I want it to output information that can be captured by the script executing the application. When I do this directly from Console.WriteLine(), the output does not appear, although it can be captured by piping to a file. On the other hand, I