The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
3answers
66 views

how to pass output of grep to “lsof -p”

I want to know the path of currently running ./a.out There are several MPI process, but I only need one of the PID of several ./a.out. So I first use below code to grep it ps aux|grep -P "Rl.*a\.out"...
0
votes
5answers
679 views

Linux: How to pass a file content as an argument to a command?

this is the content of the packageList file: base-files busybox dnsmasq dropbear firewall hotplug2 iptables iptables-mod-conntrack-extra iptables-mod-filter iptables-mod-ipopt iw jshn kernel kmod-ath ...
0
votes
2answers
100 views

How to get the command line of a running application?

If I've got a program open, for example notepad this.txt, how can I get the full command line of this application including the arguments which was used to launch the program? Ideally, I'd like a way ...
0
votes
2answers
4k views

How to pass a terminal command as an argument to another command

I want to run this command: ls -arth Test*log | tail -1 ... and pass its output as an argument to: open /Applications/Utilities/Console.app <previous output> I would like to do this all in ...
0
votes
3answers
177 views

Shuffle file name arguments in zsh

Suppose the application can only open files via command line arguments, how would i go about randomizing a list of file names/paths to accomplish this? I thought this should be fairly easy but ...
0
votes
2answers
67 views

Create shortcut with arguments

I would like to create desktop shortcut to cmder with argument, for example SSH connect. I was trying: "C:\Program Files\cmder\Cmder.exe" ssh root@localhost But unfortunately I getting that ...
0
votes
1answer
34 views

Is there a difference between a command line flag and a command line option?

I am hearing these two terms interchangeably and I am wondering if there is any difference between them, like flags are for one letter options or flags are after a single dash.
0
votes
1answer
18 views

How to suppress the “Quick Compare” dialog window when running from command line?

When I use Process.Start() in my .NET app to open two text files in Beyond Compare, the Quick Compare dialog box pops up. I want to suppress this and have it go straight into text compare mode. It ...
0
votes
1answer
130 views

This bash command runs on OSX but not on Busybox ..why?

I've got this bash one-liner , it runs fine on OSX, but doesn't on Linux, I'm suspecting the linux distro (Busybox) on my Qnap has got something to do with this . Here is the command that runs on OSX ...
0
votes
3answers
50 views

How do you write to a file within the command line?

Specifically mac, but for future reference for those that come across this post, this could be on any OS. So am learning the command line, and one utility (perhaps the only one) which seems to be ...
0
votes
1answer
1k views

How to escape the arguments correctly when calling cygwin bash -c?

I am trying to call the scanimage command (from the SANE tool) from inside cygwin though I think that my problem is one of general escaping so maybe what I am calling doesn't matter. Anyway... The ...
0
votes
1answer
113 views

Is it possible to catch the arguments of a program?

I wwant to catch the command-line arguments of a program I use, so when I start test.exe with arguments -debug and -console I can see this arguments even if I don´t have the source code of the program?...
0
votes
1answer
218 views

Once-off run a program with command line options from shortcut

Is there any program that will let me run a shortcut, but add additional arguments to the command line? Ideally, I would like this as an option in the right click menu.
0
votes
2answers
35 views

Obtaining all command line parameters in CMD prompt

What command would I use in CMD to get all of a program's available switches/arguments? For example, program abc.exe might have a switch of /o that starts the program in offline mode. Assuming I did ...
0
votes
1answer
33 views

Variable framerate with FFmpeg

Let's suppose that I have 5 images with the respective delays between each image: 60ms; 54ms; 70ms; 23ms; 40ms; How can I tell FFmpeg that information?
0
votes
1answer
27 views

Is it possible to add command line arguments or additional applications to Win7 jumplists?

In Win7 SP1, is there a way to add items to jumplists to launch the associated application with different command-line parameters, or even launch other applications? There are a number of tools that ...
0
votes
1answer
26 views

Moving specific files into a folder based on directory using Command Prompt

I have a series of about 100 folders called E101,E102....E200. Within each of these folders is a file called calquip.docx and calquon.docx I would like to move calquip.docx and calquon.docx into a ...
0
votes
1answer
98 views

Windows: how to call batch file with low priority with Ctrl+C support?

I know that I can run a batch file with a low priority using command: cmd /c start /B /BELOWNORMAL mvn.bat clean install && exit... The problem is when I press Ctrl+C it does not stop the ...
0
votes
2answers
388 views

vim/gvim command line switches?

I've just spent 1/2 hour trying to find a list of command line switches for vim. Since vim is a "command line editor" a search on "vim command line ..." is not very useful. I got curious trying to ...
0
votes
1answer
67 views

Open source browser with command line option to check for errors retrieving the page?

I have a couple of TVs powered by Raspberry Pis - they have Raspbian installed and boot straight into Midori's full-screen mode. They display metrics and as such they should always be on and ...
0
votes
1answer
581 views

Passing optional parameters in a batch script

I'm trying to write my first batch script and trying to understand how to pass arguments. It's a very simple command which runs fine in cmd. Command: C:\Program Files\Foo> myexe -sd tempVar >&...
0
votes
1answer
64 views

Export image dimension to text?

I have an image called a.jpg. I use "feh - imlib2 based image viewer" to get the information about image dimension. The command I use is feh -l a.jpg And the result is NUM FORMAT WIDTH HEIGHT ...
0
votes
2answers
140 views

How would I know possible combinations of parameters an exe file ran via cmd can take? [duplicate]

You can run some exe files from cmd.exe providing arguments. example P:\foo\boo “” user pass P:\system\ company foo –P boo Is there any way to actually find out what parameters an exe can take? ...
0
votes
1answer
249 views

Adding a complicated launcher to the “Open With” list in Ubuntu

I have a complicated shortcut/launcher that I would like to put in the Open With list. The shortcut uses the command screen -d -m bash -c "screen;source /home/me/intel/bin/compilervars.sh intel64;/...
0
votes
1answer
857 views

Unable to get ls to recognise LS_OPTIONS or LS_COLORS?

Trying to get --color=auto as the default ls argument. $ ls --version ls (GNU coreutils) 8.21 … $ echo $LS_COLORS no=00:fi=00:di=00;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=...
0
votes
1answer
1k views

Delete a character from an argument passed to a batch file

Suppose in a batch file, say receive.bat, is called with some arguments. Now receive.bat executes and it needs to process these arguments. Sometimes (but not always), an argument will end with a ...
0
votes
1answer
218 views

Can I add arguments to a program in windows without using a shortcut?

Is it possible to add arguments to a file without creating a shortcut to it in windows? Specifically windows XP, Vista, and 7? If so, how would you do it? I'm not talking about using a batch file, or ...
0
votes
1answer
133 views

Python script takes string args with './[];' — Tell terminal to process as literal input?

My script takes a key as its third argument, and it can have any kind of input...including characters that bash complains about. I'd really like to use this one-off script right from the terminal, ...
0
votes
1answer
1k views

Passing arguments to shortcuts through start+run?

I've been making shortcuts to thing I use often so I don't have a cluttered taskbar. I have shortcuts for games, thunderbird, etc, and just type winkey+r tb for thunderbird or winkey+r wa x^2+2x+3 dx ...
0
votes
1answer
57 views

Open explorer in or create shortcut to a specific folder on media device

I want to either: a) make a shortcut to a specific folder on a media device (MTP), or b) create a .bat file or other easy script to open explorer and automatically navigate to the folder where the ...
0
votes
1answer
21 views

Win7-64 powercfg –lastwake invalid parameter

The command "powercfg –lastwake" gives invalid parameter error, however powercfg /lastwake works. What gives?
0
votes
1answer
115 views

tabcal.exe command line switches

There is a utility on Windows 7 that allows you to do touch calibration, if you have a supported touch screen. The executable is tabcal.exe and it's located in: C:\Windows\System32 I'm look for a ...
0
votes
0answers
23 views

PowerPoint command switch open in “Browsed by an individual” mode

PowerPoint provides the opportunity to save a PowerPoint in the slide show mode: "Browsed by an individual". This feature is pretty genius when running multiple PPs side by side. My problem is that ...
0
votes
0answers
86 views

Need a TeamViewer command line switch to start session in full screen mode

There's an official TeamViewer Help page that provides a couple of startup switches to create a shortcut to a particular host: https://www.teamviewer.com/hi/help/91-gibt-es-aufrufparameter-fuer-...
0
votes
0answers
6 views

getting error while using command line switches in zim-wiki

I don't know why I am getting this error when I am calling zim from the command line. link to the documentation for using command line options For example zim --help
0
votes
1answer
29 views

Writing Command Line information to remote machine or web service?

I hope one of you could help me with a quick query that I have, as follows. I have a corridor rooms (about a 100 machines) and I want to collect the hostname of each. I have access to the command line ...
0
votes
1answer
23 views

Get FileZilla Server version from command line

Is there any way how to get FileZilla server version from command line? Client can do this. FileZillaServer.exe /v, FileZillaServer.exe /version or the same with dash does not work.
0
votes
0answers
34 views

detailed listing and description of freearc switches

The documentation that comes with freearc seems a little bit sparse and outdated unfortunately, at least when reading posts on http://encode.ru/ And following the trial and error principle is ...
0
votes
0answers
35 views

Firefox with arguments stripped from start menu

Migrating from Windows 7 to Windows 10, some of my start menu items have gone missing. Among them is one to start the Firefox profile manager, and another to launch a specific profile. They were in ...
0
votes
1answer
92 views

Can I query a different AD domain with the default Win7 install? [duplicate]

Background I work in an Enterprise where our Active Directory is locked down pretty tight and only Info Security has access to administer changes. I'm using a standard Win7 Enterprise x64 Service ...
0
votes
0answers
92 views

How to run git pull command non-interactively?

I've the following find command which scans all previously cloned git repositories and pull them again: find $PWD -name .git -type d -print -execdir git pull -qv ';' The problem is that some of the ...
0
votes
1answer
182 views

%T specifier in printf option of `stat` command

I want to know what is %T specifier in stat printf option and how it gets the file descriptor value ie., fd,1 is printed by using the below command. command is $> echo `stat -L /dev/mapper/...
0
votes
2answers
322 views

How to create an alias for standard “java” execution command?

I want to create an alias for running the java projects on command line, like instead of putting "java classname" every time ; I want to create an alias for that 'java' command. For instance, "run ...
0
votes
0answers
312 views

Creating m3u playlist of the most recent (100) files in a directory

I'm not familiar with scripting / shell commands. I have a .bat file that generates four m3u playlists (absolute paths) from the contents of four folders. @echo off cd E:\Music\Downloads dir /o:n /...
0
votes
1answer
239 views

Is it possible to run multiple instances of OBS on Mac OS X?

I've read that using the -multi command will allow you to open multiple instances of OBS (Open Broadcaster Software) simultaneously. I tried adding the parameter via the command line, but it only ...
0
votes
0answers
845 views

Execute multiple commands in init.d script on boot

I found a guide for fixing permissions on an EXT4 filesystem on a MicroSD card. The AOSP/CyanogenMod ROMs I've tried will mount this, but the permissions are messed up. The guide used to work fine on ...
0
votes
1answer
460 views

How to run batch file command line argument on another server?

I have Encrypt.bat on \\RDWAPPserver which contains code to encrypt the file and upload it to FTP server by using 2 commandline parameters. Encrypt.bat needs 2 commandline parameters exl: \\...
0
votes
1answer
386 views

How to auto-generate filename of PDF in wkhtmltopdf based on the page title?

I'm using the following syntax to generate PDF from URL: wkhtmltopdf http://example.com/ example.pdf Is there any way to generate filename automatically based on its page title? So I'm expecting ...
0
votes
1answer
53 views

What's the point in arp -g?

I typed arp into Windows CMD and it gave me the options as to what I can do with it. It gave me arp -a (then gave details) and then it showed arp -g which says 'same as -a' So what's the point of ...
0
votes
1answer
47 views

Which is the preferred approach to pass command/script arguments to a log file?

Generally, I am wondering how I can pass the arguments from a terminal command to stdout. More specifically, I am using tar as part of my backup process and I would like the parameters (especially ...