The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
497 views

Chrome: How to refresh tab if open, otherwise open new tab?

I'm opening a .pdf file from the command line in Chrome (Windows 7 64 bit). Every time the pdf file changes open the pdf to view it, but I don't want Chrome to open it in a new tab every time. Is ...
3
votes
1answer
4k views

How to open multiple tabs in IE8 from the command prompt?

What command line options can I use for opening multiple tabs in IE 8 from the command prompt or a .bat file? I've tried the URLs separated by "", commas, <> and |, but nothing has worked.
2
votes
2answers
687 views

How to add command line arguments to command line arguments in Windows shortcut?

I know I can add a command line argument/option to a shortcut this way; for example: "C:\Program Files\Internet Explorer\iexplore.exe" www.a.com So IE will connect to a.com when it starts up. What ...
1
vote
2answers
214 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
473 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 ...
0
votes
3answers
178 views

Passing multiple sets of arguments to a command

instances contains several whitespace separated strings, as does snapshots. I want to run the command below, with each instance-snapshot pair. ec2-attach-volume --instance $instances --device ...
2
votes
2answers
89 views

Why do many CLI apps take a “--” argument?

I've seen many command line tools that take a "--" argument. For example: gem install mysql -- —–with-mysql-config=/usr/local/mysql/bin/mysql_config What does it stand for? Does it have a special ...
2
votes
1answer
194 views

why do *NIX commands have such “insane” (counterintuitive) defaults (philosophical pondering)? [closed]

Why do most *NIX commands my (experience is Linux mostly and rare encounter with FreeBDS) have such "insane" (unintuitive) default, behaviours, i.e. VERY different from what the "equivalent" GUI ...
1
vote
0answers
499 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
1answer
52 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 ...
0
votes
1answer
139 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 ...
3
votes
2answers
1k views

How to pass a filename by drag-and-drop to a shortcut in Windows

I have a program program.exe and a document document.txt, and to open the document, I can drag document.txt onto program.exe. So far so good. Now I want to call it with a command-line parameter -param ...
2
votes
0answers
339 views

Grouping shortcuts with different parameters in Windows 7 Taskbar

I have created many different windows shortcuts for pgAdmin.exe with the target database given as a command line argument. For example: "C:\Program Files (x86)\pgAdmin III\1.14\pgadmin3.exe" /s ...
1
vote
1answer
2k 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 ...
2
votes
2answers
1k views

How to set launch options for programs on OS X [duplicate]

Possible Duplicate: How do I pass command line arguments to Dock items? On a Windows PC, if I need to provide any launch options to an application (say, Chrome browser), I can do that by ...
0
votes
1answer
1k views

Extracting last command-line parameter of batch file

I have to modify a batch file (written by a former employee) that uses a for %%f in (%*) do ( ... ) loop to operate on each command-line parameter. The new requirement is that a directory name will be ...
1
vote
1answer
397 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 ...
2
votes
1answer
407 views

How do you open mailx to read old mail when you have no new mail and view a list of old emails?

If you type mailx at the command line when you have new mail, it nicely shows you headers of your new mail and leaves you at a ? prompt where you can do mail commands. But if you don't have new mail ...
2
votes
1answer
418 views

How to Retrieve Command Line Arguments

How can I view what command line arguments are passed to a running process on Mac OS X?
1
vote
2answers
629 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 ...
3
votes
3answers
2k views

Linux “top -c” to show full command

What parameter can help me to display the full command using top -c? For example, I have one of the oupput from top -c 5073 mysql 20 0 298m 12m 4668 S 0 0.0 29:27.46 /usr/sbin/mysqld ...
8
votes
4answers
598 views

Unix tools: what if a file is named minus something?

I'm always wondering: most GNU/Unix tools take options in the form "minus something", sometimes followed by an argument. What if you got a file named minus something? $ ls -f $ rm -f $ ls -f $ mv -f ...
9
votes
4answers
8k views

How do I find out command line arguments of a running program?

I'm looking for a tool or method to find out what command line parameters have been passed to a program, for example when it was run by another program (launcher-application scenario).
9
votes
2answers
45k views

How to start a program with command line arguments on Windows' cmd with 'start' command?

I need to start a program (virtual machine) in the background with a start command on Windows' 7 command line. Normally you owuld do this like that : start /b cmd yourprogram But I need to pass ...
0
votes
1answer
112 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
993 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
1answer
467 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 ...
2
votes
3answers
251 views

Linux command line argument variations

New to Linux and have a few questions about command line arguments: Let's say there a command-line tool called widget that takes an argument called fizz. I've seen all different types of arguments: ...
1
vote
2answers
4k views

List files with path using Windows command line

My folder structure in a drive is like this (in Windows): Folder 1 Fd1 Fd2 Fd3 Fd4 Fd5 Folder 2 Fd1 Fd2 Fd3 Fd4 Fd5 This arrangement continues for 100s of folders. Inside Fd1 of each ...
31
votes
6answers
25k views

How do I start Chrome using a specified “user profile”?

I use the new built-in "Users" feature of Chrome to switch between Home/Work accounts easily. However, Chrome remembers the "last" user profile you had selected when launching new windows. This is a ...
8
votes
6answers
4k views

How can I use two parameters at once with xargs?

I need to convert videos but I don't know where are they, so I need to find them. How can I give the result and an output file name to ffmpeg with xargs ? I already find out that I can construct the ...
0
votes
1answer
62 views

How to pass a super long argument in the terminal?

I wrote a python programme, that accept I pass an argument inside it. But when I pass a very very long, it automatically shorten my argument. How can I fix it? Thanks.
3
votes
1answer
2k views

Execute local script requiring arguments on Linux via plink

Is it possible to execute (from windows) a local script with arguments on a remote linux system? Here's what I got: plink 1.2.3.4 -l root -pw mypassword -m hello.sh Is there a way to do this ...
3
votes
2answers
692 views

Finding Command-Line Arguments of Programs

I know that unix has man pages, but is there a place I can look to discover command-line arguments of programs? Going to command prompt and typing notepad /? doesn't give anything.
0
votes
1answer
624 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 ...
1
vote
1answer
143 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
votes
1answer
232 views

How to pass multiple commandline arguments to a script?

I have a command line script that takes images as arguments. I got it working with one argument but fail to figure out how to pass in multiple.
7
votes
2answers
6k views

Passing two arguments to a command using pipes

Usually, we only need to pass one argument: echo abc | cat echo abc | cat some_file - echo abc | cat - some_file Is there a way to pass two arguments? Something like {echo abc , echo xyz} | cat ...
1
vote
2answers
727 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 ...
36
votes
2answers
25k views

How do I pass command line arguments to Dock items?

I'm attempting to follow the instructions for pinning startup tabs in Chrome. On OS X how do I add command line arguments to items that persist in my dock?
3
votes
3answers
482 views

Launch VIM and show, or hide, row numbers

Background Control whether row numbers are displayed after vim starts (in a non-interactive mode). Problem A shell script contains the following code: echo Converting $1 to $1.html... NUMBERS="-c ...
6
votes
2answers
10k views

What is the significance of the /admin switch in mstsc.exe?

What benefits/risks does the /admin switch for mstsc.exe confer? How is this different from logging in with an Administrator account, without the switch?
4
votes
3answers
23k views

Command line argument for running as another user on Windows?

Under windows .msi installer, if you specify a custom action to be run at an application's installation time, it will get run under the "SYSTEM" user. Can I trick it by passing a command line ...
4
votes
2answers
852 views

How can I tell Emacs TRAMP to use specific arguments to ssh?

I'm trying to set up my Emacs TRAMP to access remote files via ssh, and I would like to add some additional arguments to the ssh command that tramp uses for connecting. Is there a way to do this? I ...
18
votes
2answers
3k views

How can I get a specific argument from a previous command in bash?

In bash, you can use !* to get all the arguments from the previous command. As an example, if you did cp /some/path /some/other/path and then did mv !*, the second command would be expanded to mv ...
0
votes
1answer
199 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.
2
votes
1answer
3k views

Passing Command Line Args to `open` on Mac

I am using the open command from the Terminal to open an app bundle and would like to pass a command line argument through to the underlying executable. Is this possible with the open command? The ...
6
votes
3answers
1k views

Why are there short and long alternatives for command line options?

Most unixoid commands feature short and long alternatives for command line options, like ls -a and ls --all, or ls -A and ls --almost-all. Why do those two ways exist? One is shorter to type, the ...