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
SNMP2_GETNEXT(3) 1 SNMP2_GETNEXT(3)
snmp2_getnext - Fetch theSNMPobject which follows the given object id
string snmp2_getnext (string $host, string $community, string $object_id, [string $timeout = 1000000], [string $retries = 5])
The snmp2_get_next(3) function is used to read the value of the SNMP object that follows the specified $object_id.
- 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 SNMP object value on success or FALSE on error. In case of an error, an E_WARNING message is shown.
$nameOfSecondInterface = snmp2_get_next('localhost', 'public', 'IF-MIB::ifName.1';
PHP Documentation Group SNMP2_GETNEXT(3)