The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
59 views

How to take command line parameters from a file

I've got a file each line of which contains an URL. All those urls one by one need to be passed as a command line parameter to a certain program. How to do this?
1
vote
1answer
156 views

Pass an option syntax string as filename

I somehow got a file named --no-recursion in a directory. How can I get cat to show what it contains? Not like this, since the argument gets interpreted as an option: root@nagini [/home/lalilulelo]# ...
1
vote
2answers
771 views

What is the equivalent to --help or man page in Windows?

If I want to know what my options are for a Linux program then I'll do man program or program --help to find out. How do you do that on Windows? I was reading about how to run a screensaver from the ...
1
vote
1answer
433 views

Open PDF to a certain page?

I need a batch file command to open a pdf with the Acrobat Reader on a certain page. "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" <PageNumber> <DocumentName> Thanks.
1
vote
2answers
253 views

MacOS Start FireFox via CommandLine in 32 bit

Firefox can be startet via Commandline How can I run an application with command line arguments in Mac OS Is there an argument to make it start in 32 bit ? I know i could select it via finder, but ...
1
vote
1answer
58 views

How do I set an alias for a search command that takes two arguments

I have a shell command which find files that contain 2 strings together: $ grep -rl JFL . 2>/de/null | while read n; do grep -l 20120907 "$n"; done The strings above are JFL and 20120907 Now I ...
1
vote
1answer
140 views

Passing Arguments to Hex on Windows Command Line

I want to pass arguments manually on the Windows command line consisting of hex values of the byte e.g. "\x41\x42\x43\x44" - a sequence of 4 bytes on the cmd.exe command line to a program. How do I ...
1
vote
1answer
152 views

Command line 7Zip to create archive without extension

If I specify full extensionless result path 7zip adds one corresponding to the type of created archive. How can I make it name the result file exactly as I have specified in command line argument?
1
vote
2answers
1k views

What about this Forfiles command syntax is wrong?

I was attempting to issue the following FORFILES command, and I recieved an error that distressed me (listed after the command). C:\Windows\system32>FORFILES /P %WINDIR%\servicing\Packages ...
1
vote
1answer
563 views

How to launch a command-line application without having to type the command?

I'm trying to write a python script that will launch alsamixer. alsamixer is a command-line application, that you typically launch by: Opening up a Terminal. Typing alsamixer. I'm trying to make ...
1
vote
2answers
1k views

How to pass command line arguments in Mac Application

I have created a Command line tool application ( Xocde --> New App --> Command line tool) and it's running without any problems. Now i want to run it through terminal and pass some command line ...
1
vote
1answer
2k views

How to preserve white space in Bash arguments

I use the command: cm1 cm2 arg1 arg2 'argument 3' It first goes to cm1, which will then redirect arg1 arg2 'argument 3' to another file. /usr/bin/cm1: #! /bin/bash # some script here shift cm2 $@ ...
1
vote
2answers
245 views

Opening PowerShell at the current working directory from the registry

This question is prompted by a problem I faced while writing this answer. I am invoking PowerShell like this from the registry: C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -NoExit ...
1
vote
1answer
5k views

robocopy with DCOPY:T does not work

I am using Windows 7. The robocopy switch DCOPY:T can be used (I mean there is no parameter error) in the command robocopy C:\TEST F:\test /E /MIR /COPYALL /DCOPY:T However, folder timestamps are ...
1
vote
2answers
75 views

Change attributes of all symlink targets in a directory

How to change attributes of all symlink targets inside a directory ? /usr/bin/find /mydir -type l | xargs /bin/readlink | /usr/bin/chattr +s piping three commands wont works. Thanks.
1
vote
1answer
918 views

stat command in Mac OS X

I'm trying to get a formatted time output using a such command in Mac OS X 10.7.5 (in the Terminal app): stat -f "%m" -t "%Y" "myfilename.jpg" However, it still gives me a unixtime, not the ...
1
vote
1answer
3k views

My Windows 7 shortcut with arguments keep getting changed

I have a shortcut to chrome on my desktop with a parameter: Target: C:\Users\Eyal\AppData\Local\Google\Chrome\Application\chrome.exe --allow-file-access-from-files Every few days (I can't figure ...
1
vote
1answer
625 views

Internet Explorer 8 suspended and debug command line options

I have Internet Explorer 8 set as my default browser and whenever I start my web application in Visual Studio 2010 with debugging it starts Internet Explorer 8 with the following command line ...
1
vote
0answers
21 views

Any way to obscure password in Windows EXE start-up argument?

There is a Windows GUI application (call it A from now on) that takes some password as its start-up argument. For example, C:\SomeProgram.exe /usr=homer /pwd=simpson There is an application (call ...
1
vote
0answers
38 views

Missing arguments in SQL 2012 command line installation

I am new to SQL installation through command line. We are developing an application and using Installation Shield. I need to install SQL server on clients pc, so I am using command line silent ...
1
vote
1answer
42 views

realpath (GNU coreutils 8.22) does resolve “.” symlink regardless of “-s”

I'm trying to use realpath in a script which has to ensure that it is located under a certain (possibly symlinked) path. Also the script has to be runnable from any location, so it cannot presume that ...
1
vote
0answers
58 views

Command line usage for Chrome

Right now I have a command on Windows that invokes chrome.exe with a local (on disk) .html file as argument. The resulting behaviour is: Chrome opens a new tab with that page. What I want is: if ...
1
vote
1answer
31 views

GnuPG: how add user ID as single command without having to use Key Edit menu

Is there a command that can be given to GnuPG: to add user ID without having to go through the Key Edit menu. We need to be able to add and delete User IDs from inside a Python program. It would be ...
1
vote
1answer
3k views

How can I disable accelerated compositing in Chrome without relying on a shortcut or .bat? [duplicate]

I'm using BBLean as an Explorer replacement to save myself a little screen space (among other things), but it's a bit finicky with Google Chrome, breaking page rendering in most situations. After some ...
1
vote
0answers
734 views

Command-line option to compare 2 images in FastStone Image Viewer

I find FastStone Image Viewer a useful freeware to compare 2 images side by side, by selecting the images (by holding down Ctrl and clicking) in its Browser view, then pressing P. Is there a ...
1
vote
2answers
777 views

passing on command line options in bash

I have a question. I have a script, a kind of long script written in bash aprox. 370 lines. That has several functions and in those functions the user has to enter information which is then stored in ...
1
vote
5answers
598 views

Unable to delete a file, shows path not found error

Due to some malware attack a file named com7.ini.asp got created in my folder and it is hidden when I browse it through Windows. I tried the following: I gave the whole path in the address bar and ...
0
votes
2answers
71 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
2k 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
4answers
287 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
3answers
61 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
1answer
729 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
96 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 ...
0
votes
1answer
200 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
1answer
29 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
97 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
40 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
86 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
121 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 ...
0
votes
2answers
295 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 ...
0
votes
1answer
689 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
162 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
125 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
785 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
11 views

Use nbtstat to return list of host names in IP range?

In Windows 7 I'm using the command for /l %i in (1,1,254) do nbtstat -a xxx.xxx.xxx.%i to return host names based on a given IP range. But the output is so long and unfriendly. How could I improve ...
0
votes
0answers
12 views

CentOS: Can Top -u Display 2 or More Users?

Showing processes for 1 user is rather easy with Top: top -u someuser1 or by hitting u while top is running. Is there any way to make Top show processes specifically for 2 (or more) users? An example ...
0
votes
0answers
25 views

H0w do I add a delay to the launch of an application via RocketDock Shortcut

I have a shortcut in Rocketdock that will trigger my screensaver using flipss. However, the screensaver starts right away and the dock won't auto-hide until the mouse is no longer hovering over it. ...
0
votes
2answers
15 views

tar command does not list content of tar package with -t option

I am trying to list the content of the tar archive with the following command tar -t "filename".tar But the shell works on this one forever without any output message. I did a research on this ...
0
votes
0answers
39 views

SIMS.net CommandReporter.exe Error Running Report

I would like to run and save the output of a SIMS.net report using the CommandReporter.exe tool included with the package. I have tried running the following command: CommandReporter.exe ...
0
votes
2answers
73 views

TextPad Command Line Argument: Open in Existing TextPad Instance

What are the command line arguments you can use for TextPad? I've searched for this but TextPad doesn't document this. We have an external application; when the user clicks a button our application ...