10 More Discussions You Might Find Interesting
1. Emergency UNIX and Linux Support
i solved myself.
thx! (2 Replies)
Discussion started by: pabloli150
2 Replies
2. Shell Programming and Scripting
Hi ,
I was going through a script and I saw following commands :--
OPTS="-e /usr/local/bin/ssh -ralpgHSvuz --stats --rsync-path=/usr/local/bin/rsync"
OPTS="-e /usr/local/bin/ssh -vrlopgt --stats --rsync-path=/usr/local/bin/rsync"
Can someone please explain the meaning of words... (4 Replies)
Discussion started by: Abhayman
4 Replies
3. Programming
Trying to establish a socket connection using ssh service - but want to use different login name for ssh than what currently logged in as - if under shell know to use ssh -l <login-name> host - however - not sure how to tell o.s. to use different login name when use connect command (2 Replies)
Discussion started by: clcoh11
2 Replies
4. Shell Programming and Scripting
Hi,
When i am using SSH, trying to automate some process, it seems as I am loosing environment settings that belongs to proper running of jboss server.
On Server (X) a User (A) is trying to run a jboss server but the location of jboss is on the same server (X) but on different user (B) . The... (1 Reply)
Discussion started by: nimrodt
1 Replies
5. Shell Programming and Scripting
Hi, I need script that will allow me to connect to multiple clients using ssh on Ubuntu terminal...
I have a txt file with the ip addresses of clients, i need a script that will connect to everyone one by one and send some commands...
The idea is to check some settings on every client... (2 Replies)
Discussion started by: marko07
2 Replies
6. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
7. Shell Programming and Scripting
Hi All,
How could I use telnet to connect to Primary Host in the below shell script:
Could I use:
(
echo user
sleep 2
echo password
sleep 2
echo "ls ~"
sleep 2
echo "exit"
) | telnet hostname
... (1 Reply)
Discussion started by: a1_win
1 Replies
8. Shell Programming and Scripting
Hi All,
I was implementing a change of TELNET to SSH connectivity, and finding it tough at a point where I was connecting to another unix server through TELNET.
( ps -ef |grep abcd) | TELNET x.xx.xxx.xx
now I when I tried to replace TELNET with SSH, i am not able to connect.
( ps -ef... (1 Reply)
Discussion started by: pranavagarwal
1 Replies
9. UNIX for Dummies Questions & Answers
I want to learn some commands like ssh, telnet and others where i can be tease. thanks for help... (2 Replies)
Discussion started by: Kostantinos
2 Replies
10. UNIX for Advanced & Expert Users
I amn't advance but i want to learn some commands where here you can help me. i don't learn easy commands but i learn if its good experience and interesting. I want to learn about ssh, telnet and how i can be miff ( i don't speek good english but i hope to understant me) thanks for any help... (1 Reply)
Discussion started by: Kostantinos
1 Replies
socket_equal(3ncs) socket_equal(3ncs)
Name
socket_equal - compare two socket addresses
Syntax
#include <idl/c/socket.h>
boolean socket_$equal(sockaddr1, s1length, sockaddr2, s2length, flags, status)
socket_$addr_t *sockaddr1;
unsigned long s1length;
socket_$addr_t *sockaddr2;
unsigned long s2length;
unsigned long flags;
status_$t *status;
Arguments
sockaddr1 A socket address. The socket address is the structure returned by either or
s1length The length, in bytes, of sockaddr1.
sockaddr2 A socket address. The socket address is the structure returned by either or
s2length The length, in bytes, of sockaddr2.
flags The logical OR of values selected from the following:
socket_$eq_hostid Indicates that the host IDs are to be compared.
socket_$eq_netaddr Indicates that the network addresses are to be compared.
socket_$eq_port Indicates that the port numbers are to be compared.
socket_$eq_network Indicates that the network IDs are to be compared.
status The completion status. If the completion status returned in is equal to status_$ok , then the routine that supplied it
was successful.
Description
The routine compares two socket addresses. The flags parameter determines which fields of the socket addresses are compared. The call
returns `true' (not zero) if all of the fields compared are equal, `false' (zero) if not.
Examples
The following routine compares the network and host IDs in the socket addresses sockaddr1 and sockaddr2:
if (socket_$equal (&sockaddr1, s1length, &sockaddr2, s2length,
socket_$eq_network | socket_$eq_hostid, &status))
printf ("sockaddrs have equal network and host IDs
");
Files
See Also
intro(3ncs)
socket_equal(3ncs)