Sponsored Content
Full Discussion: Integer expression expected
Top Forums Shell Programming and Scripting Integer expression expected Post 302647657 by ganga39 on Monday 28th of May 2012 01:04:05 PM
Old 05-28-2012
oh sorry i forgot that
here it is

line 3: ((: i<=: syntax error: operand expected (error token is "=")
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Integer Expression Expected

Cannot figure out what the error is on line #10 I was trying to change my login prompt though I've success with that this shows up as well. Here's what I have (1 Reply)
Discussion started by: moonunit
1 Replies

2. Shell Programming and Scripting

:integer expression expected

Hi, echo $i until || do read NUM if && ; then printf "$FBOLD\nInvalid number, please enter valid backup number: $FREG" fi done Getting below error : ./import_location.sh: line 234: [: : integer expression expected ./import_location.sh: line 234: [: :... (5 Replies)
Discussion started by: milink
5 Replies

3. Shell Programming and Scripting

Integer expression expected: with regular expression

CA_RELEASE has a value of 6. I need to check if that this is a numeric value. if not error. source $CA_VERSION_DATA if * ] then echo "CA_RELESE $CA_RELEASE is invalid" exit -1 fi + source /etc/ncgl/ca_version_data ++ CA_PRODUCT_ID=samxts ++ CA_RELEASE=6 ++ CA_WEEK_NO=7 ++... (3 Replies)
Discussion started by: ketkee1985
3 Replies

4. UNIX for Dummies Questions & Answers

Integer Expression Expected!?!?

Ok, so I am beggining a script to factor the time difference from when a user logs on to current time but before I can even get too far I am getting the INTEGER EXPRESSION EXPECTED error. Can someone tell me what I am doing wrong? lhour=$(who | grep "$1" | cut -c30,31); lmin=$(who | grep "$1"... (1 Reply)
Discussion started by: losingit
1 Replies

5. Shell Programming and Scripting

Error: integer expression expected

root@server01 # df -h | grep /tmp | awk {'print $3}' 252M root@server01 # root@server01 # cat /usr/local/tmpchk.sh #!/bin/sh x=`df -h | grep /tmp | awk {'print $3}'` if ; then rm -fr /tmp/somefolder/ else echo "its small" (2 Replies)
Discussion started by: fed.linuxgossip
2 Replies

6. Shell Programming and Scripting

Integer expression expected

Newb here echo "$yesterdaysclose" echo "$close" if ; then echo "stocks moving up" elif ; then echo "stock is moving down" else echo "no change" fi seems to evaluate the floating decimal correctly however returns ./shellscript1.sh: line 17: [: : integer expression expected... (3 Replies)
Discussion started by: harte
3 Replies

7. Shell Programming and Scripting

Integer expression expected

Hi, I have placed the script and running successfully on AIX However in Linux it throws integer expression expected Could some one please help me to fix this MaxThreshold4alert=`echo "$MaxCapacitycnt*(80/100)" |bc -l` echo $MaxThreshold4alert Error: 40.00000000000000000000: integer... (2 Replies)
Discussion started by: ajothi
2 Replies

8. Shell Programming and Scripting

Integer expression expected

I need some help with this if but then it says line 11: I don't know what I'm doing wrong (1 Reply)
Discussion started by: margg
1 Replies

9. Shell Programming and Scripting

Integer expression expected

Hi, I am getting the below error while comparing the month of a file to current month. I am using ls -lrth to get the month of that file and while using the if else condition i am getting the below error.. a1=`ls -lrth abc.txt | awk '{print substr($6,1,3)}'` This gives me the month from... (1 Reply)
Discussion started by: jaituteja
1 Replies

10. Shell Programming and Scripting

Integer expression expected

Hello , This is the piece of the code which is giving me trouble if ;then exit_proc "${SOURCEDIR}/${OUT_FILE} does not exists or not readable" 2 else word_count=`wc -l < ${SOURCEDIR}/$OUT_FILE` fi if ;then exit_proc "Word_count is more than allowed limit" 1 else... (6 Replies)
Discussion started by: Sri3001
6 Replies
NETSEND(1)							      netsend								NETSEND(1)

NAME
netsend - a speedy filetransfer and network diagnostic program SYNOPSIS
netsend [OPTIONS] PROTOCOL MODE { COMMAND | HELP } DESCRIPTION
PROTOCOL
Protocol is one of tcp, udp, udplite, dccp, sctp or tipc. When using tipc, you must also specify a socket type, e.g. netsend tipc MODE -t SOCK_STREAM. MODE
Mode is either receive or transmit. OPTIONS
-r Nn,Nd,Nm,Nf Round trip probes options: Nn - Number of iterations of round trip probes. Default is to perform 10 attempts. Don't set to less then 5 because measurement results will not very predicating. Nd - Size of rtt payload. This is the number of bytes piggybacking (plus the netsend rtt header). Default is 500 byte, maybe your mtu minus netsend header minus protocol header (tcp, udp) will better fit for your needs. Nm - for the round trip time probes netsend calculates a deviation. With this flag you can adjust the filter. Default is 4. Lower values drain more probes out, so be carefully with this option. For example: if you have measured rtt probes of 4, 5, 5, 6 and 15 ms. The average is 7. Covariance is 16.4 and deviation is 4.04. If you select 2 here as the multiplier, then you filter all rtt probes with higher values then 8.08 (for this example you filer 15ms out). This will help to discard some nonesense probes who are evoked through cold code paths (cache misses, page faults, ...) or network anomalies. Use this option carefully! -f forces to don't perform rtt probes but take N milliseconds as average value. With this option you can figure out the behaviour of satelite links (e.g you say -D500f) -b followed by a number: sets read/write buffer size to use. Default is 8192 for read/write and size_of_file_to_send for mmap/sendfile. -m followed by a memadvise(2) option: normal, sequential, random, willneed, dontneed, noreuse. -p followed by a number: set TCP/UDP/DCCP/SCTP port to use. Default is 6666. -P followed by scheduling policy: sched_rr, sched_fifo, sched_batch or sched_other -s followed by a setsockopt(2) optname and optval. netsend maps setsockopt levels and optlen internally. running 'netsend -s list' will print a list of all setsockopt optnames currently recognized by netsend. -T followed by either human or machine: sets output format -u followed by the transmit function to use. One of sendfile, mmap, splice or rw. When not specified, rw (read/write) is used. Note that not all protocols support all transfer methods, e.g. TIPCs connectionless sockets (SOCK_RDM and SOCK_DGRAM) do not support the sendfile system call. Also, the amount of data that can be sent in a single operation may be limited by the network protocol used. EXAMPLES
Listen for incoming SCTP connections, incoming data goes to stdout: ./netsend -T human -v stressful sctp receive Send file largefile via TCP with output in machine parseable format: ./netsend -T machine tcp transmit largefile host.example.org Receive data via TCP with MD5SIG from peer 10.0.0.1: ./netsend tcp transmit -C largefile ffff::10.0.0.1 ./netsend tcp receive -C ffff::10.0.0.1 EXIT STATUS
netsend returns a zero exist status if it succeeds. Non zero is returned in case of failure. Following failure codes are implemented: 0 - succeed 1 - failure in memory handling 2 - command line option error 3 - failure which fit in any categories 4 - network error 5 - failure in netsend header (maybe corrupted hardware) 6 - netsend internal error (should never happen[tm]) AUTHOR
Hagen Paul Pfeifer Florian Westphal SEE ALSO
http://netsend.berlios.de POD ERRORS
Hey! The above document had some coding errors, which are explained below: Around line 132: You forgot a '=back' before '=head1' You forgot a '=back' before '=head1' You forgot a '=back' before '=head1' perl v5.10.0 netsend NETSEND(1)
All times are GMT -4. The time now is 08:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy