Home > Error In > Bad Number Error In Unix

Bad Number Error In Unix


Intuition behind Harmonic Analysis in Analytic Number Theory Did Donald Trump call Alicia Machado "Miss Piggy" and "Miss Housekeeping"? Covered by US Patent. Stay logged in Search titles only Posted by Member: Separate names with a comma. How to increase the population growth of the human race Does mean=mode imply a symmetric distribution? have a peek here

Only works if $STAT is always either empty or positive number. Unix & Linux Stack Exchange works best with JavaScript enabled Help Remember Me? Can I use an HSA as investment vehicle by overcontributing temporarily? Why write an entire bash script in functions?

Bad Substitution Error In Unix

So sayeth the Shepherd Does mean=mode imply a symmetric distribution? APAR status Closed as program error. INI Example is at the end SERV_CNT=1 function start { TOT_SERV=`echo NUMBER_OF_${APPLICATION}_SERV` while [[ $SERV_CNT -le $TOT_SERV ]] do #SERVER=${FIN_P1_[$SERV_CNT]} SERVER=$((${APPLICATION}_${SERV}_[$SERV_CNT])) #$WEB_HOME/$START_SCRIPT $SERVER let SERV_CNT=$SERV_CNT+1 done } INI File: NUMBER_OF_FIN_SERV=6 FIN_P1_[1]=FINPROD Can someone help me out, I keep getting this :bad number error for both variables.

  1. Calling with placeholder in $0: "$shell" -c 'shift' _ made csh variants and schily bsh to be silent, too.
  2. In case of error, zsh, csh variants and schily bsh won't quit the non-interactive script after reporting it.
  3. Is 8:00 AM an unreasonable time to meet with my graduate students and post-doc?
  4. Why does Windows show "This device can perform faster" notification if I connect it clumsily?

Browse other questions tagged shell shell-script or ask your own question. I'll edit it. –Michael Krelin - hacker Jan 20 '12 at 13:21 I prepend "0" so its "0$STAT". When was this language released? Sql Error Numbers Video displays in Star Wars Will the medium be able to last 100 years?

I have not had much luck so I though I would turn here. I have tested it using, touch as; em=$(cat as); if [ "090" -gt "0$em" ]; then echo Greater; else echo Smaller; fi; –shiplu.mokadd.im Jan 20 '12 at 13:39 | show 1 Ensure template parameter is an enum class So sayeth the Shepherd more hot questions question feed lang-sh about us tour help blog chat data legal privacy policy work here advertising info Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the

Guimaraes 7118 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted status, retryCount and maxRetries are strings, not numbers. Windows Error Numbers I accepted a counter offer and regret it: can I go back and contact the previous company? Content Relevant URLs by vBSEO 3.6.0 PL2 Try STAT=`cat /usr/local/www/rec 2>/dev/null || echo 0` maybe.

How To Redirect Error In Unix

Script evaluates environmental var By alex in forum Unix and Linux basics Replies: 0 Last Post: 12-16-2013, 09:10 PM unix - Unix script to pass value to the command prompt without What does an 'ü' mean? Bad Substitution Error In Unix What does Sauron need with mithril? Standard Error Unix while (( status == 0 || retryCount < maxRetries )) share|improve this answer answered Oct 4 '13 at 0:41 kojiro 40.8k964111 status, is also missing a $ –sampson-chen Oct

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed I have not had much luck so I though I would turn here. Join our community for more solutions or to ask questions. All rights reserved. Unix Redirect 2 &1

Recreation Scenario: For example, just run "TEPconfig.sh -ua_home_dir /opt/IBM/ITM -UA", you will see the following error. ./TEPconfig.sh[16]: shift: bad number Since the script exits at 16th line due to this error, Newer Than: Search this thread only Search this forum only Display results as threads More... shell shell-script share|improve this question edited Sep 18 '15 at 4:43 cuonglm 71.1k13111196 asked Sep 18 '15 at 3:35 Haz 334 1 As a side note, "[email protected]" should always be http://sovidi.com/error-in/bad-directory-error-unix.php Why does Windows show "This device can perform faster" notification if I connect it clumsily?

retryCount=$((retryCount+1)) done As far as I see, I have properly declared maxRetries and retryCount as integers, so I don't see why it complains about bad number on the while statement. Oracle Error Numbers Can filling up a 75 gallon water heater tank without opening a faucet cause damage? Integral using residue theorem complex analysis Is there a good way to get from Levoča to Lviv?

Get 6 6 6 6 to equal 58 Convince people not to share their password with trusted others Activate Hearthstone season chest cards?

Looping through all positional arguments: for arg do : do something with "$arg" done In your case, you don't need the loop at all, since when cat can work with multiple How to deal with a very weak student? Your code should look like this: #!/bin/ksh dest=$1 fileName=$2 id=$$ print_message() { message="$1" echo "`date '+%m-%d-%y %T'` $message" } if [ $1 = "" ] || [ $2 = "" ] Shift Bad Number Also, there are 22 lines in my test file.

Another side note, you can get the same functionality without the for loop: cat "[email protected]". –jordanm Sep 18 '15 at 3:40 add a comment| 4 Answers 4 active oldest votes up Featured Post IT Security CISA, CISSP & CISM Certification Promoted by Experts Exchange Master the advanced techniques required to protect network resources from external threats with the IT Cyber Security bundle. Code: $ cat x #! /usr/bin/ksh SERV_CNT=1 function start { eval TOT_SERV=\$NUMBER_OF_${APPLICATION}_SERV while [[ $SERV_CNT -le $TOT_SERV ]] ; do eval SERVER=\${${APPLICATION}_${SERV}_[SERV_CNT]} echo $SERV_CNT $SERVER ((SERV_CNT=SERV_CNT+1)) done return 0 } NUMBER_OF_FIN_SERV=6 Forum FAQ Calendar Community Member List Forum Actions Mark Forums Read Quick Links View Site Leaders Blogs What's New?