Home > The Specified > The Specified Number Is Not Valid For This Command

The Specified Number Is Not Valid For This Command

I just could not find any verification and I was not aware that you could simply replace -eq with "=". Learn more about SAP Q&A. The code should be something like: Code: if [ "$hidType" == "power" ] && [ $support -eq 8 ] then echo "The value is $hidType" return 0 elif [ "$hidType" == Ask a question on this topic 2 replies Share & Follow Privacy Terms of Use Legal Disclosure Copyright Trademark Sitemap Newsletter Forums Tutoriels Magazine FAQs Blogs Chat Newsletter Études Emploi Club navigate here

before the QPK is applied).The problem is that the shell treats 048, i.e. WebDéveloppement Web et Webmarketing Développement Web AJAX Apache ASP CSS Dart Flash / Flex JavaScript PHP Ruby & Rails TypeScript Web sémantique Webmarketing (X)HTML EDIEnvironnements de Développement Intégré EDI 4D Delphi Sophos Thawte View All Topics View All Members View All Companies Toolbox for IT Topics UNIX Groups Ask a New Question Shell Script The Shell Script group is a forum where ActualitésFAQ LINUXTUTORIELS LINUXLIVRES LINUXLINUX TVUNIXGTK+QtAPACHEOPEN SOURCE Index du forum Général Développement Programmation système Linux 0403-009 The specified number is not valid for this command « Discussion précédente | Discussion suivante »

The time now is 06:45 PM. - Contact Us - UNIX & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top has special meaning in shell/bash/ksh.... how to stop muting nearby strings or will my fingers reshape after some practice?

  1. Changing thickness of outline in QGIS Electrical Propulsion Thrust How to tell my parents I want to marry my girlfriend What would be your next deduction in this game of Minesweeper?
  2. Cost effective drivetrain maintanance Why would two species of predator with the same prey cooperate?
  3. Code:: #!/usr/bin/ksh #set -x WORKFILE="/tmp/oatest.out" DDLFILE="/tmp/oatest.ddl" TODOFILE="/tmp/oatest.todo" LOCKFILE="/tmp/oatest.lck" function cleanup { chmod 666 $WORKFILE rm $WORKFILE chmod 666 $TODOFILE if [ -f $LOCKFILE ]; then rm $LOCKFILE fi exit } if
  4. Normaly its green or yellow.Thanks 0 Kudos Reply Frank Slootweg Honored Contributor Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report Inappropriate Content
  5. Jalal Hajigholamali replied Mar 18, 2010 Hi, As You know, some characters like ? * [ { } } ...
  6. done Is this a valid condition and if so the why am I getting the complaint?
  7. How to make use of Devel debugging functions on large or complex objects Sunfounder DS18B20 disable light When jumping a car battery, why is it better to connect the red/positive cable
  8. SPOOL ${/home/xyz/sqlscript.csv} rgds pavan Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving...
  9. Custom ColorFunction for GeoGraphics plot with ReliefMap Bruteforcing a keypad lock Do we know exactly where Kirk will be born?

Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... Jalal Hajigholamali replied May 12, 2010 Hi, put "set -v -x" in very first line of you shell script and execute your shell shell will show you variable substitution and you Jim 0 LVL 16 Overall: Level 16 Shell Scripting 4 Message Accepted Solution by:medvedd medvedd earned 500 total points ID: 255820082009-10-15 -eq is a numeric test. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…

Qu'en penses-tu ? ++ .Olivier Répondre avec citation 0 0 25/09/2006,11h47 #3 effeluck Futur Membre du Club Inscrit enseptembre 2006Messages9Détails du profilInformations forums :Inscription : septembre 2006Messages : 9Points : I am getting a "0403-009 The specified number is not valid for this command." error on a while loop. The fact that I am testing chars and not number values. why not find out more Different tasks, same characters What is the XP and difficulty of an encounter when a monster can transform?

I have echoed the value and it does return "N". Submit feedback to IBM Support 1-800-IBM-7378 (USA) Directory of worldwide contacts Contact Privacy Terms of use Accessibility UNIX & Linux Forums > Top Forums > Shell Programming Change it to '=' 0 Message Author Closing Comment by:scuzz1 ID: 316416972009-10-15 I thought that was the case. undo a gzip recursively What is a non-vulgar synonym for this swear word meaning "an enormous amount"?

Doug Turley September 18, 2013 at 17:09 PM 0 Likes Correct Answer Sunny Pahuja replied September 18, 2013 at 09:30 AM Which unix shell is your user configured ? https://community.hpe.com/t5/System-Administration/The-specified-number-is-not-valid-for-this-command/td-p/2898125 Before: if [[ $STATE -eq 1 ]]; then After: if [[ "$STATE" == 1 ]]; then share|improve this answer edited Sep 13 '15 at 13:04 perror 1,35521229 answered Sep 13 '15 Join the community of 500,000 technology professionals and ask your questions. UNIX is a registered trademark of The Open Group.

shell unix scripting if-statement ksh share|improve this question edited Jul 23 '12 at 13:48 SingerOfTheFall 19.1k63675 asked Jul 23 '12 at 13:37 JGeZau 4583830 Did you transfert your script Thanks you. Mais le problème c'est que dans mon script il y a plein de '-eq'. Répondre avec citation 0 0 22/09/2006,22h11 #2 Olivier Regnier Expert éminent Inscrit enjuillet 2004Messages2624Détails du profilInformations personnelles :Sexe : Âge : 39Localisation : FranceInformations forums :Inscription : juillet 2004Messages :

with a leading zero, as octal and you can not have octal 8. Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to Page... learn linux and unix commands - unix shell scripting 0403-009 Browse other questions tagged shell ksh aix db2 or ask your own question. Jim Will provide if necessary Select all Open in new window 0 Comment Question by:scuzz1 Facebook Twitter LinkedIn https://www.experts-exchange.com/questions/24815248/Problem-with-a-Unix-shell-script.htmlcopy LVL 16 Best Solution bymedvedd -eq is a numeric test.

By using this site, you accept the Terms of Use and Rules of Participation. End of content United StatesHewlett Packard Enterprise International CorporateCorporateAccessibilityCareersContact UsCorporate ResponsibilityEventsHewlett Packard LabsInvestor RelationsLeadershipNewsroomSitemapPartnersPartnersFind a PartnerPartner How to prove that gcd(m+1, n+1) divides (mn-1) Bash remembers wrong path to an executable that was moved/deleted Is it possible to set a composite NOT NULL constraint in PostgreSQL Are Code: if [ $hidType -eq "powerpump" -a "$sup" -eq 8 ] then echo "The value is $hidType" return 0 elseif [[ $hidType -eq "mode" ] -a [ $sup1 -eq $sup2 ]]

Resolving the problem Make the following change in stopserver.sh *) if [ X"$answer" = "X" ] ; then timeout=900 ; status=ok log_echo "Default selected (Fifteen minutes)" else

I have used "=" instead of "-eq" the same error is seen.. Find all posts by Yoda

#3 04-02-2013 hanson44 Registered User Join Date: Mar 2013 Last Activity: 12 May 2013, 11:33 PM EDT Posts: 858 Thanks: 18 Thanked if [ -f /db2/db2xxx/sqllib/db2profile ]; then     . /db2/db2xxx/sqllib/db2profile fithe db2iupgrade program bombs somewhere while sourcing the above db2profile file.  the error is       .profile[72]: DB2: 0403-009 The specified number is not All product names are trademarks of their respective companies.

Anyone for a Mutiny ? 0 Kudos Reply Rainer Lindenmayer Occasional Advisor Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report Inappropriate Content PCMag Digital Group AdChoices unused Archeological evidence of nuclear warfare How can "USB stick" online identification possibly work? Join our community for more solutions or to ask questions.

What is this blue thing in a photograph of a bright light? Privacy Policy Support Terms of Use Skip to Content Open navigation Account Settings Notifications Followed Activities Logout Search Your browser does not support JavaScript. Which was the last major war in which horse mounted cavalry actually participated in active fighting? What does the Error mean? "The specified substitution is not valid for this command." pavan kumar asked Mar 18, 2010 | Replies (4) Hi Guys, I am trying to fetch data

Forum Operations by The UNIX and Linux Forums current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.