The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
3answers
83 views

pkzip and smeltwater - is my memory wrong?

Circa 1994 I remember someone telling me with glee that an easy way to remember a certain set of command-line arguments for pkzip was to arrange them so that they spelt out smeltwater, or something ...
2
votes
2answers
303 views

How to know if I have RAID configuration on my machine?

I was wondering if there is any Linux command I can use to check whether I have RAID setup on my machine? I know about cat /proc/mdstat but didn't show me anything meaningful. I just want to know if ...
2
votes
1answer
102 views

How to generate an OpenPGP Signed Message with GPG?

In RFC 4880, there is section 11.3 which specifies the different formats an OpenPGP Message block can have: 11.3. OpenPGP Messages An OpenPGP message is a packet or sequence of packets that ...
2
votes
1answer
3k views

Command line 7Zip to extract file by specified result path

Is it possible to make 7Zip extract one file by name from archive to specified full path (including new filename)? I've found only: 7zip e <archive> -o<resultDirectory> <filemask> ...
2
votes
2answers
8k 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
912 views

Play a .mov file in existing VLC media player window using command line

I'm trying to play a .mov file using VLC media player (2.1.4) command line, but I want it to join the existing VLC media player window each time. It seems like in older versions there was a ...
2
votes
0answers
1k 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 ...
2
votes
2answers
887 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
2answers
71 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
175 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
1answer
53 views

Batch script to execute jobs one after the other using a GUID as an input argument

I would like to create a batch file which I can reuse with different GUID input parameters. Normally, I execute a file 4 times, one after the other with varying input parameters like so: ...
1
vote
1answer
808 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
350 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
3answers
76 views

How to see a list of available filesystems that I can use for the mkfs command?

Simply I would like to create some FAT filesystem. I would like to know what kind of FAT filesystems are available and what are their names. How can I do this from the command line?
1
vote
1answer
97 views

Start Firefox update (nightly) without actually starting firefox [duplicate]

I'm running a nightly version of Firefox (aptly called "Nightly"), and there's a problem. Given this is a nightly release, one of the recent updates, pretty much make Firefox unusable - it'll crash ...
1
vote
1answer
64 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
2answers
30 views

Equivalent of `$@` for windows shell

I use batch files to create wrappers around some commands which need extra argument to work. For example, I have a file pip.cmd which adds a custom proxy argument to all pip calls: pip.exe ...
1
vote
1answer
109 views

Using cURL command-line tool on Mac, What can I do to this script to ask it to fetch stock data which will replace commas with NO SPACES

Example: Google Outstanding Shares are 670,000,000 and this value is collected in a txt file from Yahoo Finance API via the below script. The issue is; that numbers WITH commas or spaces are a bloody ...
1
vote
1answer
423 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
338 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
2k 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
868 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
2k 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
50 views

extract portion of text from cmd

I need to extract a portion of text from a text file log.txt, where the contents of the file are as follows. SESSIONNAME USERNAME ID STATE TYPE DEVICE services ...
1
vote
1answer
45 views

Disable erroneous file type detection by extension on ffmpeg

I am trying to transcode mjpeg files with ffmpeg and it is incorrectly detecting settings. If the file has no extension, or an unknown extension, ffmpeg will correctly detect mjpeg format and will ...
1
vote
1answer
147 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
2answers
430 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
2answers
92 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
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
827 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
2answers
68 views

Open file in Notepad++ as a tab without closing launched process

Some old tools are designed to work with an external text editor. I am stuck using a legacy tool that does this in the following way: Create a temporary file with the content to be edited. Launch ...
1
vote
1answer
42 views

Error starting OneNote from command prompt

When I start OneNote 2013 from a command prompt, OneNote opens, but I am getting this error: Microsoft Office has identified a potential security concern Hyperlinks can be harmful to your computer ...
1
vote
0answers
174 views

Modify Chrome's startup command line options

I managed somehow to install an insidious toolbar. It modified many of my browser settings but one is especially puzzling. By typing chrome://version in the address bar I've noticed the following in ...
1
vote
1answer
87 views

Silent install exe with logging enabled

I have been facing a really strange problem trying to automate the installation of NewForma. Below is the line I'm using in a bat file: ...
1
vote
0answers
34 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
1answer
84 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
85 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
39 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
5k 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
1k 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
5answers
1k 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
5answers
597 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
90 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
147 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
14 views

Cannot launch app minimized with /minimized

For whatever reason, AMD Gaming Evolved (Raptr) is dying randomly (ticket has been submitted). I made a task schedule that automatically launches Raptr every hour with this action: "C:\Program Files ...
0
votes
1answer
14 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
91 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 ...