8 More Discussions You Might Find Interesting
1. Solaris
tldr; after SRU patches applied on newly created boot environment, reboot with ability to log into global zone but unable to "fully" log into non-global-zones.
Without going into much detail here's what we did;
1) Activated new boot environment with latest SRU patches from Oracle
2)... (1 Reply)
Discussion started by: samthewildone
1 Replies
2. Shell Programming and Scripting
Hi,
I am trying to attach a .log file or .txt file to mail command to send an email once my ksh script executed. I am unable to use mutt command as it has been not installed and i am not supposed to install it. I have tried many ways by googling which has not helped me to succeed.
Here is my... (5 Replies)
Discussion started by: Samah
5 Replies
3. Shell Programming and Scripting
Hi All,
Below is my code,what I am trying to do is redirecting output of ftp to a log file & then greping the errors but here I am unable to grep "Permission denied" error only & also the corresponding log file is also not getting created.
#!/bin/sh
. cfg
USER='abc'
PASSWD='abc123'
... (4 Replies)
Discussion started by: ss_ss
4 Replies
4. Shell Programming and Scripting
hello all.....
I have a shell script created by the user ABC.
in that script, am trying to push some echo messages into a Log file.....
eg: echo "error occurred" >
but for some reason, my echo messages are not getting redirected to my log file........:confused:
need ur urgent... (8 Replies)
Discussion started by: cmaroju
8 Replies
5. AIX
Hi,
I wanted to log some authentication information, so I added following line to /etc/syslog.conf:
auth.info /home/vilius/dir1/eeerrr.log
After that I refreshed syslogd subsystem:
refresh -s syslogd
To check my logging I made few unsuccessfull attempts to login as root using ssh and... (1 Reply)
Discussion started by: vilius
1 Replies
6. Shell Programming and Scripting
Hi all,
I was playing around with some scripts and spoilt solaris completely ..
So i reinstalled and thought of giving the password once i log in...
However i forgot all about it and went ahead installing all my drivers and particularly KDE 3.5.8 on my system..
But for kde to show up at the... (0 Replies)
Discussion started by: wrapster
0 Replies
7. Solaris
am unable to open a .log file which is 4MB size. (18 Replies)
Discussion started by: venkatramana
18 Replies
8. Solaris
Greetings,
I have recently inherited 3 sun servers from a shop that my parent company closed. One of these servers is an old Ultra 1 running SunOS 5.6 that acts as a NIS server for the other two servers. This NIS server seems to boot OK and function properly as a NIS server. However, I can't... (6 Replies)
Discussion started by: SevenFortyOne
6 Replies
SOCKET_SET_OPTION(3) 1 SOCKET_SET_OPTION(3)
socket_set_option - Sets socket options for the socket
SYNOPSIS
bool socket_set_option (resource $socket, int $level, int $optname, mixed $optval)
DESCRIPTION
The socket_set_option(3) function sets the option specified by the $optname parameter, at the specified protocol $level, to the value
pointed to by the $optval parameter for the $socket.
PARAMETERS
o $socket
- A valid socket resource created with socket_create(3) or socket_accept(3).
o $level
- The $level parameter specifies the protocol level at which the option resides. For example, to retrieve options at the socket
level, a $level parameter of SOL_SOCKET would be used. Other levels, such as TCP, can be used by specifying the protocol number of
that level. Protocol numbers can be found by using the getprotobyname(3) function.
o $optname
- The available socket options are the same as those for the socket_get_option(3) function.
o $optval
- The option value.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
socket_set_option(3) example
<?php
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if (!is_resource($socket)) {
echo 'Unable to create socket: '. socket_strerror(socket_last_error()) . PHP_EOL;
}
if (!socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1)) {
echo 'Unable to set option on socket: '. socket_strerror(socket_last_error()) . PHP_EOL;
}
if (!socket_bind($socket, '127.0.0.1', 1223)) {
echo 'Unable to bind socket: '. socket_strerror(socket_last_error()) . PHP_EOL;
}
$rval = socket_get_option($socket, SOL_SOCKET, SO_REUSEADDR);
if ($rval === false) {
echo 'Unable to get socket option: '. socket_strerror(socket_last_error()) . PHP_EOL;
} else if ($rval !== 0) {
echo 'SO_REUSEADDR is set on socket !' . PHP_EOL;
}
?>
PHP Documentation Group SOCKET_SET_OPTION(3)