hello,
can any help me how to can pass array as command line argument in korn shell.
also how to read a array from command line.
thanks
spandu (2 Replies)
I have a shell script which does the encryption of a file where i am passing the file name as a command line argument,but later on the script waits on the screen to enter Y or N
what is the command i should be using on the shell script
#!/bin/bash -x
outfilename=file.out
echo... (8 Replies)
Say I want to get the value of last command line argument using the value in $# (or some other way if u can suggest) how do I do it??
$"$#"
`$"$#"`
These don't work :( (4 Replies)
Hi,
I have a very simple C program which will run in UNIX. When i am passing * as the command line argument, i am gettig the below output.
Program:
#include <stdio.h>
#include "mylibrary.h"
int **environ;
int main(int argc,char *argv)
{
int i;
printf("\nHello... (2 Replies)
I have to write a script to determine whether given command line argument ($1) contains "*" symbol or not, if $1 does not contains "*" symbol add it to $1, otherwise show message "Symbol is not required". For e.g. If we called this script q5 then after giving ,
$ q5 /bin
Here $1 is /bin, it... (5 Replies)
how do i check if a command line argument is -g?
for example,
if command line argument equals "-g"
{
print "Goodbye \n";
}
else
{
print "Welcome to the program! \n";
} (1 Reply)
HI ,
I am new to csh. I need to pass some command line arguments like
./abc.sh -os Linux -path abc -tl aa -PILX 1
I have defined the loop as shown below. But its taking "-os" switches as arguments. Its treating them as arguments.
How to resolve it?
while ( $#argv != 0 )
switch ($argv)
... (7 Replies)
I would like to use a string as a command line argument...is this possible using TCSH? For example say my script is called TEST and I would like to pass a string into my script stating why the test failed.
EXAMPLE:
TEST "Failed due to missing statement" (4 Replies)
Hi Guys, I'm trying to work out how to add a command line argument inside single quotes. Would anyone be able to help please as I'm going mad :)
I want to be able to place the filename on command line and it then be used in a script but it needs to have quotes surrounding it.
Thanks in... (4 Replies)
Discussion started by: mutley2202
4 Replies
LEARN ABOUT DEBIAN
inputkill
inputkill(1) General Commands Manual inputkill(1)NAME
inputkill - run a command until standard input is closed
SYNOPSIS
inputkill [options] <command> [arguments ...]
DESCRIPTION
inputkill runs a given command until standard input is closed. inputkill passes on all file descriptors except for standard input; command
is given no standard input.
inputkill is useful for promptly exiting a program ran via ssh when the connection is closed. For example, ssh host inputkill sleep 60 runs
the command sleep on the computer named host until either sixty seconds elapse or the ssh connection is terminated.
The argument "--" disables argument parsing for all proceeding arguments; e.g. "inputkill ls -l" will pass "-l" to inputkill and run "ls",
whereas "inputkill -- ls -l" will run "ls -l".
OPTIONS -V, --version
Display version information.
-?, --help
Display a summary of command line options.
SEE ALSO ssh(1), rsh(1)
inputkill is part of mswatch(1); mswatch website: http://mswatch.sf.net/
AUTHOR
Written by Chris Frost <chris@frostnet.net>.
inputkill(1)