The command-line-arguments tag has no wiki summary.
-2
votes
0answers
24 views
How do I add a user ID on command line? [closed]
How can I add user ID with a single command line without having to go to the Edit menu first.
0
votes
1answer
17 views
How to make exiftool not to change file's date and time
How to make exiftool not to change the date and time of the affected files?
I mean not the date and time written in EXIF, I mean the date and time of the file itself.
-3
votes
1answer
58 views
When is it necessary to quote a command line argument?
When is it necessary to quote a command line argument?
0
votes
1answer
81 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 ...
4
votes
1answer
264 views
(How) can I change the time until the screensaver kicks in from the command line?
As the title asks (Windows 7). (How) can I change the time until the screensaver kicks in from the command line? Is it even possible?
Normally I am happy with a 5 minute setting, but occasionally I ...
0
votes
0answers
111 views
How to change installation directory path with command line of NSIS installer of new VLC player?
I want to silently install NSIS in D:\VLC. I can do that with old VLC version i.e. VLC 1.1.9. But I cannot do the same for VLC 2.0.5.
Here is the command line I am using
vlc-1.1.9-win32.exe ...
-1
votes
0answers
36 views
starting a process to run from command line [duplicate]
I'm trying to make "streamripper32" start on a schedule using Windows Task Manager. I am able to get the application to start but not able to get it to start running. I've tried every argument ...
1
vote
3answers
114 views
matching start of the line in cygwin regexp
I apply sed 's/^ bug*/__/' to
ref bug
bug ref
and get
ref __
__ ref
The same is responded for perl, perl -ni -e 's/^ bug/__/; print'. Sample file can be downloaded ...
0
votes
1answer
143 views
%1 in registry not being expanded in Windows 8
I have made a tool that adds some things to the context menu when right clicking a directory, inside the 'empty space' of a directory, or a drive. I have used this extensively in Windows XP, Vista, ...
0
votes
2answers
27 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.
2
votes
3answers
80 views
Using find, xargs, etc. to output similarly named files
I have a folder full of HTML files:
001.htm
002.htm
003.htm
…
I want to run Pandoc on them to convert them to similarly named Markdown files:
001.md
002.md
003.md
This command works on one of ...
3
votes
2answers
635 views
7zip command line options for more information when synchronizing
In the 7zip command line options, is there some argument that can make 7z output the files ignored/deleted from the archive too? (files ignored by the option -uq0)
Example call:
"C:\Program ...
0
votes
0answers
45 views
Windows: modify app icon so double-click executes command-line arguments?
I found this: Once-off run a program with command line options from shortcut , but I'd like to be able to modify the way in which an app starts up when I double-click its icon (or select from Start ...
0
votes
1answer
114 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 ...
1
vote
1answer
444 views
Pass a path with space to a batch file as a parameter
In first.bat, I use
var5=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\
CALL scripts\vc64.bat %var5%
And in scripts\vc64.bat, I use
SET var6=%1vcvarsx86_amd64.bat
CALL ...
4
votes
2answers
92 views
Differences in bash scripts between $@ and $*
Which are the differences between $@ and $* ?
For example I see no differences here:
#! /bin/bash
echo with star: $*
echo with at sign: $@
2
votes
0answers
159 views
Shortcuts with command line arguments blocked with IE error - These files can't be opened
My local shortcuts (.lnk files) do not execute if the shortcut has any command-line arguments
On freshly-installed 64-Bit Windows 8
Shortcut worked fine on Windows 7 32-Bit
It depends where the ...
0
votes
1answer
60 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 ...
4
votes
1answer
116 views
How to capture command line parameters for new processes?
I'm trying to capture the video conversion parameters passed onto the codecs in mediacoder to learn how codecs pass streams onto other codecs. I was wondering if there a program that captures the ...
1
vote
0answers
122 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 ...
1
vote
1answer
1k 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
1answer
190 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
109 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
93 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
0answers
127 views
Find PID and commandline argument on remote Windows Server (2003, 2008, 2008 R2)
I need a way to FIND a PIDs on a remote Windows Server (2003, 2008 and 2008 R2), filter them by the commandline argument, and KILL them. I’ve tried PsList and PsKill, but they don’t give me the ...
0
votes
3answers
88 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
80 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
122 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
227 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
34 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
0answers
210 views
Funny command line options [closed]
A fellow student uploaded the following screenshot of his attempt to compile sudo:
Moreover I know that you can write weird stuff like sudo hdparm --yes-i-know-what-i-am-doing --make-bad-sector 100 ...
0
votes
1answer
92 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
316 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
198 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
1k 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
304 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
572 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
210 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
185 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 ...
1
vote
1answer
183 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
258 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 ...
2
votes
2answers
1k 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
285 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 ...
5
votes
3answers
2k 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).
4
votes
1answer
15k 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
82 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
357 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
301 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
193 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
1answer
2k 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 ...