The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
137 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
133 views

When is it necessary to quote a command line argument? [closed]

When is it necessary to quote a command line argument?
0
votes
1answer
587 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 ...
5
votes
1answer
4k 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 ...
-1
votes
0answers
38 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 ...
2
votes
3answers
349 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
306 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, ...
1
vote
2answers
73 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
272 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
3k 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
1answer
560 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 ...
2
votes
1answer
10k 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 ...
5
votes
2answers
171 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: $@
3
votes
0answers
342 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
89 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 ...
5
votes
1answer
649 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 ...
2
votes
0answers
630 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
5k 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
3answers
1k 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
229 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
735 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
219 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
91 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
215 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
636 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
54 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
152 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
2k 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 ...
3
votes
0answers
429 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
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 ...
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
507 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
521 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
579 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
893 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 ...
4
votes
3answers
3k 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
709 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 ...
13
votes
5answers
13k 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).
11
votes
2answers
63k 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 would do this like that: start /b cmd yourprogram But I need to pass some ...
0
votes
1answer
122 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

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
558 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
276 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
7k 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 ...
35
votes
6answers
32k 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
7answers
5k 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
69 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
781 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.