The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
44 views

How to handle the arguments flags for an .exe file? [closed]

Suppose that I'm using a program with a login page. And lets call it a.exe. Whenever I execute a.exe I face a login page with empty fields such as Username, Password, Application Server, Database ...
4
votes
1answer
172 views

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 ...
0
votes
1answer
48 views

Passing different set of arguments to the different commands in a linux bash script

I am writing a bash script foo.sh that runs too commands bar with first input argument, and baz with the second argument: #! /bin/bash bar "$1" baz "$2" Now I want to make foo.sh more flexible, ...
0
votes
0answers
29 views

Batch arguments for SSH Secure Shell in Windows 7?

I installed SSH Secure Shell to connect to my remote server, and I want to automate the process of updating my website. I was going to make a batch script to automatically push and pull from my site ...
0
votes
2answers
51 views

How can I convince an older person to at least **try** to learn how to use a PC? [closed]

I have no clue if this is the right forum. My father who is in his mid 50's basically always asks me to fix things, help him with random IT related things. It is definitely fine to help, but most of ...
1
vote
2answers
202 views

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?
0
votes
0answers
43 views

Extra space when starting application with arguments using batch?

Any idea why there is an extra space before the argument? Thank you. http://s7.postimg.org/ee1fbtye3/extraspace.png @ECHO OFF SET EXEPATH=D:\Games\StarForge\StarForge.exe SET ARGS=-nolog START "" ...
2
votes
1answer
2k 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> ...
1
vote
1answer
201 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?
0
votes
1answer
579 views

DOS .bat script not passing on arguments

We have a problem on one PC, which seems not to be honouring arguments in .bat scripts, i.e. not passing them on to invoked python scripts. It works fine on 10 or so other very similar machines. We ...
1
vote
1answer
124 views

How woulld I add $OPTARGs from one arg to an array

So I'm trying to add values from an optarg to an array. I've got: arrays=() while getopts a: args; do case $args in a) arrays+=$OPTARG;; esac done echo $arrays[@] When I run the script, ...
1
vote
2answers
5k views

How to create a desktop shortcut from a batch file

I know there are many posts on this issue but there is a minor twist to what I need to do. I can figure out how to create a shortcut with an argument like this: "C:\Program Files\My App\App.exe" /s ...
0
votes
2answers
3k views

Why does my Bash script display the “too many arguments” error at the cp command?

Here is my script, I get the error "line 33: [: too many arguments", I'm confused why, surely only 2 arguments are being provided to cp here? I am providing two directories to the script with no ...
0
votes
1answer
1k views

How to pass a variable to a WMI query run in a batch file?

I want to run the following in a batch file and prompt the user to enter "NewUserID", then insert it as a variable. Can this be done with WMI? wmic useraccount where name='user'call rename ...
1
vote
1answer
642 views

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 ...
0
votes
1answer
368 views

Opening and passing arguments to an application using a shell script on a Mac

I am trying to write a shell script on a Mac which opens RIATest and passes it parameters. My code is: #!/bin/bash echo THIS TEST!!! open -a '/Applications/RIATest 4/RIATest.app' --args /b /r /e 5 ...
2
votes
1answer
180 views

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 ...
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
0answers
50 views

What happens if a linux kernel argument is passed twice with different values? [closed]

As the question states, what if I pass kernel /vmlinuz audit=1 audit=0 Will auditing enabled or disabled? Or will the kernel just freak out? Or is it undefined and will depend on the build of the ...
3
votes
2answers
1k views

What is the use of binary output on stdout?

Some programs print their binary output directly on stdout. Here are some examples: tar -c file.png dd if=file.png Well, I see that the output can be redirected to a file. But these programs ...
0
votes
1answer
269 views

option -f for linux command

this is the content of test file: this this this that is that a that MAP that map that when I do uniq testCase -f1, the result is: this this this that which is reasonable, but ...
3
votes
3answers
2k views

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 ...
8
votes
4answers
34k views

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. ...
0
votes
1answer
122 views

Is there a Unix Find command generation web page

I use to refer to a web page that use to generate unix find command line options based on option that I select in the form. Unfortunately I lost the book mark and not able to recollect it. Does any ...
0
votes
1answer
308 views

When switching to another doc, Function Argument window disappears?

I have problem with Excel 2007 when using VLOOKUP function. After switching to another document for referencing value in "Table_array" field, window dissapears. Google finds some results about the ...
0
votes
2answers
64 views

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 ...
28
votes
3answers
43k views

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 ...
0
votes
1answer
2k views

Writing this Bash Script to accept Arguments?

How would I go about converting this bash script: mkdir /store/sftp/%USERNAME% sudo useradd -d /incoming %USERNAME% sudo passwd %USERNAME% ## Password needs to be typed or passed in here sudo ...
7
votes
2answers
3k views

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 ...