9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I found this in a script and I would like to know how this works
Code is here:
# echo $var2
I'm wondering how ##* makes the Shell to understand to pick up the last value from the given. (2 Replies)
Discussion started by: sathyaonnuix
I've been asked to help with some cleanup on a couple of systems that were running some Websphere apps. I need to remove the following filesets:
mqsi61.cfgmgrc 126.96.36.199 COMMITTED Config. Manager Component
mqsi61.cfgmgrf 188.8.131.52 COMMITTED Config.... (4 Replies)
Discussion started by: ZekesGarage
3. UNIX for Dummies Questions & Answers
I tried to use lseek system call to determine the number of bytes in a file. To do so, I used open system call with O_APPEND flag to open a file. As lseek returns the current offset so I called lseek for opened file with offset as zero and whence as SEEK_CUR. So I guess it must return the number of... (3 Replies)
Discussion started by: Deepak Raj
4. Shell Programming and Scripting
Hi, I saw the following explanation about alias in bash from gnu website, but I didn't get the meaning:
Bash always reads at least one complete line of input before executing any of the commands on that line.
Aliases are expanded when a command is read, not when it is executed. Therefore, an... (3 Replies)
Discussion started by: Roy987
5. Shell Programming and Scripting
I am new to scripting , I am trying to rebuild a script based on an old script. Can someone help me figure out what the script is doing? This is only a part of the script.
I am looking to interpret these two points in the scripts:-
I do not... (3 Replies)
Discussion started by: rajsan
6. Shell Programming and Scripting
I stuck with a problem. I want to understand the execution of the below code. Can any one please help me
`sqlplus username/passwd@DB << EOF
set serveroutput on
My ques is why do we use EOF and how does it help. (4 Replies)
Discussion started by: parthmittal2007
7. UNIX for Dummies Questions & Answers
I am trying to understand the following line of code.I did enough of googling to understand but no luck.Please help me understand the follow chunk of code:
X is the current script from which I am trying to execute.
Say if X=test.ksh
$MOD is echoing :... (3 Replies)
Discussion started by: vemana
8. Shell Programming and Scripting
# sub: find block (in cols), return line-numbers (begin-end) or 0 if notfound
my ($exp1,$col1,$exp2,$col2)= @_; # $exp = expression to find, $col - column to search in
$val1 =... (3 Replies)
Discussion started by: suvenduperl
9. Shell Programming and Scripting
I just started shell coding and I'm a bit confused on how 'mv' works can someone explain to me how it works and if i did this correctly. Thanks.
echo "Enter Name of the first file:"
if ; then
echo "Sorry, file does not exist."
... (16 Replies)
Discussion started by: taiL
SNMPREALWALK(3) 1 SNMPREALWALK(3)
snmprealwalk - Return all objects including their respective object ID within the specified one
array snmprealwalk (string $host, string $community, string $object_id, [int $timeout = 1000000], [int $retries = 5])
The snmprealwalk(3) function is used to traverse over a number of SNMP objects starting from $object_id and return not only their values
but also their object ids.
-The hostname of the SNMP agent (server).
-The read community.
-The SNMP object id which precedes the wanted one.
-The number of microseconds until the first timeout.
-The number of times to retry if timeouts occur.
Returns an associative array of the SNMP object ids and their values on success or FALSE on error. In case of an error, an E_WARNING mes-
sage is shown.
print_r(snmprealwalk("localhost", "public", "IF-MIB::ifName"));
The above will output something like:
[IF-MIB::ifName.1] => STRING: lo
[IF-MIB::ifName.2] => STRING: eth0
[IF-MIB::ifName.3] => STRING: eth2
[IF-MIB::ifName.4] => STRING: sit0
[IF-MIB::ifName.5] => STRING: sixxs
PHP Documentation Group SNMPREALWALK(3)