02-02-2010
Problem with Input parameters
Hi,
I am facing a weird problem with input parameters. Please find more details about my problem below:
a) I am executing a korn shellscript with 11 input parameters from "Appworx" tool (it's a scheduling tool) and immediately displaying those 11 parameter values in unixscript and noticed that, first 9 parameters its displaying fine, but for 10th and 11th parameters its displaying like:
firstparameter+appended numerical value 0, firstparameter+appended numberical value1.
Could you please let me know why its taking 10th and 11th parameters weirdly? Your help will be highly appreciated.
Thanks,
Praveen
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear All,
I got a table creation file in a standard format. I need to accept parameters from the user & then based on the input change the data in the file. For. eg. i will accept the database name, dbspace name & user name from the user and accordingly change the same in the table creation... (2 Replies)
Discussion started by: lloydnwo
2 Replies
2. Shell Programming and Scripting
I have a script which take 3 input parameters
1st - a date (i.e. current date)
2nd - type (i.e. A)
3rd - limit (i.e. 40)
normally the date parameter would be current date, so I thought I could do this
calculate.sh $(date +%Y-%m-%d) A 40
however, it seems like it can't be done,... (3 Replies)
Discussion started by: mpang_
3 Replies
3. Shell Programming and Scripting
Hi i am a newbie who is trying to input parameters into this script, but not sure where to start.
The parameters that need to be input are the baseline label "abc.0111.BL " mantioned bellow, and database string "abc/abcp@db2 @counter.sql "
Environment: Windows XP
Running script: Cygwin 3.2
... (2 Replies)
Discussion started by: yarik20
2 Replies
4. Shell Programming and Scripting
Hi All,
I have tried to use ckdate (sun) command in script. It checks the input parameter which should be in 'YYYYMMDD format.
date=$( echo $1 | ckdate -f "%Y%m%d") | true
if ]
then
print " success"
else
print "no success"
fi
But in whatever format i pass the parameter,... (3 Replies)
Discussion started by: Amit.Sagpariya
3 Replies
5. Shell Programming and Scripting
I have to write a script to verify input parameters;
say esr should be YES or NO other wise the script should print an error.
This is what i tried in my script but I get the following error
:
esr="YES"
if ; then
print " Error should specify esr options YES/NO"
else
esr =$esr
fi
... (2 Replies)
Discussion started by: ramky79
2 Replies
6. UNIX for Dummies Questions & Answers
i have this basic code that accepts for two input one for the source file and the other is for the target directory. basically it is a simple copy command. the problem is at the end of the execution the second parameter string was passed to first parameter and it displays a message like:
cp:... (3 Replies)
Discussion started by: wtolentino
3 Replies
7. Shell Programming and Scripting
Hi,
I wonder how I can know if the input parameters to the script are numbers or text
Thanks (11 Replies)
Discussion started by: Gengis-Kahn
11 Replies
8. Shell Programming and Scripting
Hi
I wrote a script which lists the content of a given directory.
I have just one problem. If you give 2 or more parameters, then it gives a strange error. After that error, it gives also an error from my script, but normally it shouldn't give that error.
Here's my script.You can test it.
... (3 Replies)
Discussion started by: hss
3 Replies
9. Shell Programming and Scripting
Hi,
Is there a simple way to take input of parameters after the first one? As following example, if I assign others=$2, it only takes the second one, if I assign others=$@, it will include the first one. I may try to assign others="$2 $3 $4 $5 $6 $7 $8 $9", it looks very ugly and could missing... (1 Reply)
Discussion started by: hce
1 Replies
10. AIX
friends
and I can validate whether to run the shell has input parameters m event date, I occasionally happen something like this does not work
if $ 1 is null then
echo has entered input parameters
else
echo "parameter ok"
fi (2 Replies)
Discussion started by: tricampeon81
2 Replies
LEARN ABOUT DEBIAN
netwox
NETWOX(1) General Commands Manual NETWOX(1)
NAME
netwox - examples/tools of the network library netwib
VERSION
The version installed on this system is 5.36.0.
IMPORTANT
Manpage do not contain a lot of information. Rather read netwox-5.36.0-doc_html.tgz.
SYNOPSIS
netwox number [ parameters... ]
netwox number --help
netwox number --help2
netwox
PRESENTATION
Toolbox netwox helps to find and solve network problems.
It provides 222 tools :
- udp/tcp clients/servers
- spoofing
- sniffing
- address conversion
- etc.
Netwox is mainly oriented towards network administrators and security auditors.
Some tools are only a simplified implementation, while others are very sophisticated.
Netwox is available under the GNU GPL license.
DESCRIPTION
number number of the tool to use
parameters
parameters for the chosen tool number. Parameter --help shows help. Parameter --help2 shows description.
When using netwox without number and parameters, it enters interactive help mode. In this mode, the user has to select a category by press-
ing a key. Then by choosing a tool number, its corresponding usage is displayed. Note: netwag is easier than interactive help mode.
EXAMPLES
netwox 23 --help
display simple help for tool number 23
netwox 23 --help2
display full description of tool 23. It also display its description.
netwox 23
run tool 23
netwox 23 --extended
run tool 23 with --extended parameter
netwox 23 -e
run tool 23 with -e parameter (synonym for --extended)
All the tools are not described in this manpage. Reading netwox-5.36.0-doc_html.tgz is recommended.
SEE ALSO
netwib(3) netwag(1)
02/11/2008 NETWOX(1)