Questions tagged [arguments]

51 questions
105
votes
4 answers

Start Google Chrome on Mac with command line switches

I've read you can start Google Chrome in kiosk mode in Windows by using the argument --kiosk. I know how to do this on Windows, but how can I do this on Mac OS X? And how can I run Google Chrome with the --kiosk argument on startup?
alex
  • 4,442
74
votes
9 answers

Can I use pipe output as a shell script argument?

Suppose I have a bash shell script called Myscript.sh that need one argument as input. But I want the content of the text file called text.txt to be that argument. I have tried this but it does not work: cat text.txt | ./Myscript.sh Is there a way…
Narin
  • 843
28
votes
9 answers

How to pass an argument to a Windows Scheduled Task with spaces in it

I need to set up a Windows Scheduled Task. It accepts 1 parameter/argument which is a path and can contain spaces. My Scheduled task does not work - it "breaks" the parameter up at the first space. If I run it in the Command Prompt I can just wrap…
Rodney
  • 431
25
votes
4 answers

zip: Argument list too long (80.000 files in overall)

I need to compress 80.000 files into multiple zip files. This is the command I use: zip -s 200M photos_test/* However I get the following error: -bash: /usr/bin/zip: Argument list too long What can I do to solve the issue, beside manually…
aneuryzm
  • 2,185
11
votes
3 answers

How can I run an application with arguments from Windows Explorer?

Is there an easy way to launch an application from Windows Explorer with arguments? Or do I have to actually run them from the command line?
ajb32x
  • 275
7
votes
2 answers

Call but not download a page with wget

I was wondering if there was any argument that allowed me to use wget and "call" a page, but without downloading the page. The problem is that when you call wget on a page, it downloads it to the folder wget.exe resides in, but I don't want to…
7
votes
1 answer

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 $@ /usr/bin/cm2: echo $# # This returns 4 in lieu of 3…
6
votes
1 answer

Why does the ls command require a dash before its parameters but for tar command, the dash is optional?

I am new to Ubuntu and I am trying hard to understand the command line. When I want to see the contents of a tar file I use: tar tf tarfile.tar But when I want to see a listing of all file if I use: ls a filename It says: ls: cannot access a:…
Dianne
  • 236
3
votes
1 answer

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 -o But it's not what I need.
3
votes
1 answer

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?
3
votes
1 answer

how to put my arguments into a Bash alias command?

i usually have the following simple alias in my bashrc: alias g="grep --color=always --exclude-dir=\*.svn\*" but now i have to work on systems that only have GNU grep 2.5, hence no --exclude-dir argument. now i need something like this to…
gcb
  • 5,442
  • 13
  • 62
  • 86
3
votes
1 answer

How to pass multiple arguments?

How to pass multiple paramaters for Start a program action in Windows Task Scheduler for a batch file? There's no built-in syntax hint...
2
votes
2 answers

List of arguments for scheduled task

When you edit the action of a Scheduled Task, there's the option of "Add arguments". The software I use right now has the argument -cp .\Acquisition.Jar et.EPC I've been googling for a while and couldn't find what -cp does. Is there a list…
loli
  • 139
2
votes
1 answer

Why is Excel showing 'c' as the arg separator for fomulas?

In Excel 2007, I have a cell with "=if(true,1,0)" as the contents. If I hit the ENTER key I get an error dialog which says, "The formula you typed contains an error." The flyover help for that cell is shown as "IF(logical_testc…
2
votes
2 answers

Use default options when compiling ports

I am compiling a few ports on FreeBSD, however during the compiling process I am often greeted with options for the dependencies of the port. This causes the compiling process to pause until I select (or in 9/10 cases, just leave the defaults) "OK".…
Ben
  • 135
1
2 3 4