Questions tagged [command-line-arguments]
The command-line-arguments tag has no usage guidance.
335
questions
1
vote
1
answer
2k
views
Using ffmpeg on Raspberry Pi to grab video from RTSP: "-t command not found"
I am trying something that should be simple - trying to use the Raspberry Pi ffmpeg to grab a 30 second video from an RTSP stream. The command looks like this:
ffmpeg -i <rtsp:...> -t 30 <...
0
votes
1
answer
526
views
What is the equivalent of shell variables $@ in windows command?
I want to put a variable in my command batch script for multiple arguments as the number may vary. Just as in shell we use $@. I tried several things but nothing is working.
[Edit : I know %* works, ...
0
votes
1
answer
200
views
WSL translate W10 CLI switches into Linux?
I'm trying to install Veracrypt and run it (mount volumes, etc.) from a script run in WSL (Python but can call a BASH script obviously).
As documented here, I've encountered a problem trying to use ...
0
votes
1
answer
2k
views
How to use Linux to Partition and Format a blank external hard drive where the partitions were lost
I need some help rescuing a new and blank 4 terabyte external SSD USB hard drive.
The original partitions were 3.64T and a 0.36 partition labeled "Microsoft Partition"
Using GParted, I ...
1
vote
1
answer
605
views
bash command: How to automatically enter menu choices that come up later during installation?
During apt-get install -y python-catkin-tools on Ubuntu you have to enter timezone numbers 8 for the region and 7 for a city when "tzdata (2020f-0ubuntu0.18.04)" gets installed.
How can I ...
0
votes
1
answer
376
views
How to chain command arguments to a specific command binary
I have general question about chaining commands to one specific binary in bash shell, with examples from Magento (use case)
In Magento you commonly want to chain many commands together - they take ...
0
votes
0
answers
152
views
Launching a command from a physical keyboard shortcut
I have the Logitech Ergo K860 keyboard that has some programmable keys. I want a key to launch a specific RDP connection.
Just to test it out, I tried:
CMD
and it launched a Command window.
OK, so ...
0
votes
1
answer
142
views
Changing which command line program runs when there are two programs with the same name
When I run where java, the output is:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
C:\Program Files\Java\jdk-13.0.2\bin\java.exe
Both of these programs are called 'java', but the ...
2
votes
2
answers
3k
views
Why won't CMD on Windows 10 allow me to finger anyone?
Reading This Article: Digital Trends CMD Commands.
I Found A command Called Finger.
Trying it out on My System, Windows 10
Why won't it let me Finger anyone..
Says Connect: Connection Refused?
Not ...
4
votes
0
answers
641
views
Opening URL in specified Firefox profile from command line
Is there a way how I can let Firefox open a link in new tab from command line for specified profile? Ideally in a way in which it doesn't matter, whether Firefox is already running or not
I know I can ...
1
vote
2
answers
464
views
What does /#/ symbol mean in the context of ${}?
In the context of the following function
function foo { local d="d"; printf "%s" "${@/#/$d}"; }
what does the /#/ mean?
When I call foo a b c it returns dadbdc.
2
votes
2
answers
2k
views
pass parameters to batch file via File URI in Windows
Using Windows 10 here.
Code in open_video.bat
"%USERPROFILE%\Desktop\VLCPortable media player\VLCPortable.exe" --start-time=54 --stop-time=89 "%USERPROFILE%\Downloads\some_video.mkv&...
2
votes
1
answer
130
views
How to separate command switches (/x) from arguments in windows?
I know in linux, I can just write command -a -b - "arg1" "arg2"..., where single hyphen is "option/switch" separator. But how can I do similar in windows cmd?
I would ...
1
vote
2
answers
59
views
Why man read don't contain any argument description in my debian? [duplicate]
As far as i know that read in bash contains many argument such as -a -d -e -r.
The webpage list all arguments of read.
read's arguments
In my console, man read contains no argument on it.
I upload man ...
18
votes
2
answers
13k
views
What does "robocopy /NOOFFLOAD" do?
The windows tool robocopy has a command line switch /NOOFFLOAD. What does this switch actually do, and under what circumstances would I use it?
The documentation for the switch says
/NOOFFLOAD :: copy ...
1
vote
0
answers
26
views
How to use files copied in Windows File Explorer on the command line? [duplicate]
In Windows File Explorer, you can highlight several files and then click the "Copy path" button from the menu. Show below is an example. I'd then like to process these files on the command line, ...
0
votes
0
answers
139
views
File assocations inconsistent behaviour with Windows 10
After updating Python, my file associations somehow got messed up and I have been trying to get them to behave. Here's my test program PyArgs.py:
import sys, os
print ("Arguments count : "...
1
vote
1
answer
1k
views
How to use command line tool "unzip" to only grab a certain folder?
I have a .jar file which can be opened with the Command line tool "unzip", which has this option called -p so you can grab certain files. But how do you do this with a folder? Here's what this jar ...
4
votes
2
answers
6k
views
How to make an app minimize itself after some time?
Is there an argument to specify for an app to minimize itself after being launched after a certain delay in Windows?
I made a .bat file to be able to launch multiple apps with one launcher, I ...
3
votes
1
answer
5k
views
Is /min a valid switch for cmd.exe in Windows?
I'm looking at a few batch files (.bat), and they use use /min as a switch for cmd.exe. Looking at several references, I don't see /min as a parameter for cmd.exe.
Is /min a valid switch for cmd.exe ...
1
vote
1
answer
925
views
Open "Find Printer" from command line. Not "Add Printer"
Windows 10
Is it possible to modify this entry to open the "Find Printer" dialogue?
RUNDLL32.EXE PRINTUI.DLL,PrintUIEntry /ii /f %windir%\inf\ntprint.inf
I am able to open "Add Printer" with this ...
0
votes
1
answer
251
views
Dealing with files with spaces inside a FOR loop from files passed in command line in bash is failing
I am creating a script that will crop movies and have the following syntax:
./crop *.mov 0,0,100,100
or
./crop oneMovie.mov 0,0,100,100
So, the first parameter can be a wildcard pattern or one ...
0
votes
1
answer
677
views
Task manager: Hide when minimized without GUI
When you launch taskmgr.exe, there is an option "Hide When Minimized" (under Options menu).
I am looking for how to run it with that option without using GUI in the task manager itself.
That is, a ...
3
votes
3
answers
7k
views
Passing '&' as text in parameter in batch file
I am trying to pass an argument to a BAT file thru VB Shell function. argument text value looks like this say Hello&123
As you noticed there's an '&' as text in it. However & is reserved ...
2
votes
2
answers
3k
views
Is there a way to start the Slack app with a maximised window but still run in the background?
I want to have the Slack desktop application run at startup in the background as it normally does with the Launch app on login settings. However this always results in a small sized window when I open ...
0
votes
1
answer
3k
views
Pass parameters to Windows Terminal?
Currently I am using MinTTY for my Cygwin terminal needs. Lacking a tabbed interface, I am looking to move to "Windows Terminal", which is currently distributed as a Store app on Windows 10.
...
1
vote
0
answers
6k
views
How do I start Chrome with specific window size, position, and profile?
I'm trying to open Chrome to a specific user while also having a specific window size and position using CMD on Windows. It seems that I can either open to a specific profile or mess with the window ...
0
votes
1
answer
1k
views
How to pass unknown command line arguments containing special characters (bash)?
I am trying to figure out how to solve a problem with a "$" causing command expansion as part of a password field. How do you backslash the "$" when using command substitution (unknown) arguments? (i....
1
vote
3
answers
3k
views
How to wrap an executable to force certain command line arguments?
I have an executable: foo.exe
Another process executes foo.exe with certain command line arguments. I cannot modify the process that executes foo.exe, nor change the filename it executes.
I want to ...
0
votes
1
answer
729
views
Batch to disable autofill and ask to save passwords in Chrome
I can't manage to disable "Autofill" and "Ask to save password" in Chrome
I've got something from another web-page, but it didn't work. This I what I got from the web-page:
REM ...
0
votes
1
answer
60
views
Are ubuntu optional/switches behave differently with different commands? If no, why is there no cheat sheet listing them all? [closed]
There are numerous Ubuntu switches/options, which change the behavior of a ubuntu command. In simplest words, ls behaves differently than after we attach the option/switch -a ( so that is: ls -a) . ...
3
votes
1
answer
2k
views
Can I add chapter metadata to a video file using only the FFmpeg CLI?
I've recently gotten into using FFmpeg and was wondering if there was a way of adding chapter markers entirely through the command line interface?
I have had success with first writing out a metadata ...
0
votes
1
answer
67
views
Unable to set arguments to convert image files to video
I've a bunch of files in a folder with the following format:
center_2016_12_01_13_%2d_%2d_%3d.jpg
I'm trying to use FFmpeg to convert into a video with this command:
ffmpeg -n -i "...
1
vote
2
answers
2k
views
Can we skip a argument in the (%*)?
How can I skip an argument like %~1 in the %*?
@echo off
title
cls
:loop
set /p command=
call :command %command%
goto :loop
:command
if "%~1"=="title"(
%~1 %*
)
goto :eof
I'm ...
5
votes
3
answers
8k
views
Is it possible to open a new tab in a specific container when using Firefox Containers?
I'm using multi-account containers in Firefox to keep my tabs separate from each other. I'm looking for a way to open new tabs in specific containers.
Using Cmd+T opens a new tab in a default ...
0
votes
1
answer
446
views
Batch File 'help switch'
I need help with creating the 'help switch' for my custom batch file. I want /? to work, but I am apparently missing or unaware of what would make my batch file work.
Is there a way create the use of ...
2
votes
2
answers
4k
views
Create Powershell Alias w/ a Function incl. Parameters
UPDATED-STATEMENT: 20190815@000000@THU Working on creating a powershell initial profile for current user only and without running as admin that is authorized to run commands from from the ps-...
0
votes
1
answer
523
views
Can I force the `firefox` command line application not to switch the active tab in my open browser?
When I use the firefox command from command line (even with the --new-tab switch) Firefox swithes to the newly opened tab... I don't want this, can I set the default
About configs:
browser.tabs....
0
votes
1
answer
715
views
Sending Command Line Arguments in Eclipse on Mac
I'm using the Eclipse IDE for a Java 8 project I have started and want to send command line arguments. I am using a Mac desktop and the way Windows runs Eclipse is a little bit different than Mac so ...
0
votes
1
answer
552
views
Automatically connect to a PC using Dameware
I'm trying to connect from command line to a PC using the following command, but all it does is to input the fields and I have to manually click on connect.
dwrcc -c: -m:MachineName -u:UserName -p:...
1
vote
0
answers
2k
views
Force a url to open in IE from chrome without command process warning message
My requirement is to open few urls on IE browser on cliking their links. So i have followed the below code to set the registry
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\...
1
vote
1
answer
25
views
What determines how different CLIs format their parameters?
For example, why do you have to use the --version flag/command to check a Python version, whereas you can use -v to check the version on a local NodeJS install?
What determines and/or distinguishes ...
0
votes
1
answer
61
views
Edit a single batch file that contains a single IP in multiple lines with a new batch file
I have a batch file in C:\Temp\Backup\ that is named backup.bat. In backup.bat the text below exist. I would like to create a batch file that changes the 172.16.17.4 to 192.168.1.104 in backup.bat for ...
0
votes
0
answers
352
views
Command Line Column in Task Manager
I try to detect what one of many similar by name tasks gets very high memory use.
I add to view column "Command line" in Task Manager, but this column is blank for these tasks.
How can I get command ...
0
votes
0
answers
545
views
how to pass password as argument to open command prompt with admin permissions in an automated way
Assume, i logged in with some other user.
how to pass password as argument to open command prompt with admin permissions in an automated way. Instead of manual password entry.
Tried this, but not ...
0
votes
3
answers
7k
views
Possible to use & join Long Path Variables in Batch file to call an EXE with those longer variables as command-line arguments? How?
Possible to use Long Path Variables in Batch file to call an EXE with those variables as command-line arguments? How?
I read that we can SET various kind of variables in a Batch file.
Also, some of ...
2
votes
2
answers
4k
views
How to execute two commands in the Windows registry from the right click context menu
I am trying to control Windows Update from the right click context menu. I have registry keys that add and/or remove values in the registry that accomplish this. I can successfully execute a single ...
2
votes
1
answer
7k
views
Using powershell to identify process ID, Name, and arguments used to start
My Issue:
I need to identify the process ID of a specific process that is running. My problem is, I run a lot of processes through cscript.exe, so identifying the ID for a ton of "cscript.exe" ...
0
votes
1
answer
2k
views
Is body-data allowed after URL in wget?
I just realized, due to an error on my part, that though wget manual only mentions URL at the end, I am able to specify body-data option after the URL. This is quite convenient, but I am wondering if ...
-1
votes
1
answer
9k
views
Command prompt output to Excel file in arranged format
We can display command prompt in .CSV file using > and >> but how to arrange these output in .CSV file.
Eg: When we run multiple commands each output should be stored in different columns.