Sponsored Content
Full Discussion: Error in while loop
Operating Systems Solaris Error in while loop Post 302382689 by frustin on Thursday 24th of December 2009 10:46:54 AM
Old 12-24-2009
sorry was on my mobile.
frustin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error in for loop?

Hi, Working on AIX using the following for loop. for a in `find /edi/iTracTEST/sessions -name nohup.out -print` do echo $a done On the command line it works fine, but insert the code in a file and then running it, it does not want to work. I get the following back. ' is not... (3 Replies)
Discussion started by: hugow
3 Replies

2. Shell Programming and Scripting

Error in Loop?

hi friends, i wrote one simple shell script.. in that am using for loop... when i am trying to execute the script.it shows syntax error at for loop line '((' unexpected. #!/bin/ksh ## ##### To find no of files in the directory NOF=`ls -l /root/COMM/LOGS/eds/20081025| wc -l`... (5 Replies)
Discussion started by: rdhaprakasam
5 Replies

3. UNIX for Dummies Questions & Answers

error in for loop???

Hi, I get the following output 98 -1 98 0 ./get_AB04-time: line 79: ((: i< && 0 !=7 : syntax error: operand expected (error token is "&& 0 !=7 ") I have this part of code. Line 79 is the line of the for loop. echo ${OCCURRENCE} $i_START CASE=0; i_END=${i_START}... (4 Replies)
Discussion started by: f_o_555
4 Replies

4. Shell Programming and Scripting

Error Using an if Loop Within a While Loop

Hello All, I am having a problem with an “if loop” within a “while loop” in my Korn Shell program. The basic concept of the program is that it searches for the existence of a series of load files in a load directory, and once it finds one of these files, it begins the following process: · Creates... (4 Replies)
Discussion started by: jonesdk5
4 Replies

5. Shell Programming and Scripting

Error with while loop

the program just prints all the command line arguments Getting error in the program error ./hellow: line 13: 0: command not found ./hellow: line 13: 0: command not found below is the program #!/bin/bash num=$# echo $num if then echo "No arguments are passed ." else ... (7 Replies)
Discussion started by: BHASKARREDDY006
7 Replies

6. Shell Programming and Scripting

Error in while loop

I have a file Table.out having table name like this Table_Emp Table_Exp Table_Fcr To show first 10 rows .. I' wrtng a script like this .. #!/bin/ksh cat /tmp/table.out|while read -r table vbar1 do <connect to db> then select * from $table limit 10; > /tmp/1.out done ... (3 Replies)
Discussion started by: netdbaind
3 Replies

7. Shell Programming and Scripting

Getting error in if loop

Hi All, while executing this code ,I'm gettign below Error if_test: line 3: #!/bin/bash if ; then echo "this is aginity;" elif ; then echo "this is informatica;" fi exit (3 Replies)
Discussion started by: netdbaind
3 Replies

8. Shell Programming and Scripting

Error in loop

This is my first ever bash script. What i wish to achieve is to find all files in current directory except the script file and count lines in each found file. Some thing seems to be wrong with the if statement :confused: Please help why it does not work? and maybe you have some ideas how to improve... (3 Replies)
Discussion started by: chinababy
3 Replies

9. Shell Programming and Scripting

Error in for loop

I was trying to implement a nested for do loop to run a perl script. for i in 1 10 50 do for j in 2 12 55 do perl script.pl "$i" "$i" "$j" done done when I implemented it within a shell script, i got the output, but every time j value will 55, or basically the last value of j in... (10 Replies)
Discussion started by: Kanja
10 Replies

10. UNIX for Beginners Questions & Answers

Error with for loop

There are two files abc_123.dat and abc_345.dat if at least one file exists then enter into the loop and remove file and exit. In first iteration, deleting files successfully but "else" statement executing after deleting files."else" should execute only if there is no file in the directory.... (1 Reply)
Discussion started by: Rajesh123
1 Replies
mipagentstat(1M)					  System Administration Commands					  mipagentstat(1M)

NAME
mipagentstat - show Mobile IP Mobility Agent status SYNOPSIS
mipagentstat [-fhp] DESCRIPTION
Use the mipagentstat utility to display the content of various Mobile-IP related data structures. Visitor Table (First Form) The visitor table display lists information for all mobile nodes registered with the foreign agent, one mobile node per line. This list consists of the mobile node's home address or Network Access Identifier (NAI), home agent address, total registration lifetime and the num- ber of seconds remaining before the registration expires. The following command line shows the output from a foreign agent with two mobile nodes registered: example# mipagentstat -f Mobile Node Foreign Agent Time Granted Time Remaining Flags (in secs) (in secs) foobar@xyz.com fa1@tuv.com 600 125 10.1.5.23 123.2.5.12 1000 10 R An "R" in the flags column indicates a reverse tunnel is present. No reverse tunnel is configured for the mobile node foobar@xyz.com. A reverse tunnel is configured from mobile node 10.1.5.23. Binding Table (Second Form) The binding table display lists information for all mobile nodes registered with the home agent, one mobile node per line. This list con- sists of the mobile node's home address or NAI, foreign agent address, total registration lifetime and the number of seconds remaining before the registration expires. Use the following command line to show the output from a home agent with two active mobile nodes: example# mipagentstat -h Mobile Node Home Agent Time Granted Time Remaining Flags (in secs) (in secs) foobar@xyz.com ha1@xyz.com 600 125 10.1.5.23 10.1.5.1 1000 10 R An "R" in the flags column indicates a reverse tunnel is present. No reverse tunnel is configured for the mobile node foobar@xyz.com. A reverse tunnel is configured for mobile node 10.1.5.23. Agent Table (Third Form) The agent table display lists information for all current mobility agent-peers, that is all mobility agents with which mobile-nodes we are servicing are trying to obtain service. Provided in this display are the IPsec protection mechanisms being used with registration requests, replies, and tunnels. Use the following command line to show the output from a home agent with two (foreign) mobility agent peers: example# mipagentstat -hp Foreign ..... Security Association(s)..... Agent Requests Replies FTunnel RTunnel ------------------------ -------- -------- -------- -------- fa.eng.example.com AH,ESP AH,ESP AH,ESP AH,ESP fa.central.example.com AH AH ESP ESP Use the following command line to show the output from a home agent with two (foreign) mobility agent peers: example# mipagentstat -fp Home ..... Security Association(s) ..... Agent Requests Replies FTunnel RTunnel ------------------------ -------- -------- -------- -------- ha.eng.example.com AH,ESP AH,ESP AH,ESP AH,ESP ha.central.example.com Use of the -p option without specifying the agent results in both displays described above, that is one display for each agent. An AH in any column indicates the IPsec AH mechanism is in place for those datagrams. An ESP in any column indicates the IPsec ESP mechanism is in place for those datagrams. OPTIONS
The following options are supported: -f Display the list of active mobile nodes in the foreign agent's visitor's list. -h Display the list of active mobile nodes in the home agent's binding table. -p Display the list of mobility agent peers, and the IPsec protection mechanisms currently in use for registration and tunnel traf- fic. EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWmipu | +-----------------------------+-----------------------------+ SEE ALSO
mipagent(1M), mipagentconfig(1M), mipagent.conf(4), attributes(5) Aboda, B., and Beadles, M. RFC 2486, The Network Access Identifier. The Internet Society, 1999. SunOS 5.10 11 Dec 2001 mipagentstat(1M)
All times are GMT -4. The time now is 12:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy