I want to pass arguments to a sh program and I want to use these arguments in the program as variables?
Will I use argc and argv in a main function can anyone around me write the full code please
for example when I write in th command
sh myprogram.sh argument1 argument2
I want to use... (1 Reply)
Write a nawk script that will produce the following report:
***FIRST QUARTERLY REPORT***
***CAMPAIGN 2004 CONTRIBUTIONS***
-------------------------------------------------------------------------
NAME PHONE Jan | ... (5 Replies)
Hi,
Im wondering, if I do a restart of my lpd service, will it clear the print queue? Or will the file in queue will still be there after the restart?
Thank you (1 Reply)
Hi,
Can you please clear me the difference between restarting the daemon and the service. To be more clear,
/etc/init.d/mysqld restart
and
/etc/init.d/mysqld restart
What is the difference on this both two?..... (4 Replies)
on my sol10x86 10/08 box, i needed to remove the native snmp agent (sma) for net-snmp-5.4.2.1. once net-snmp was configured and installed, i reconfigured the appropriate files of smf and attempted to restart. service was put into maintenance mode:
... (1 Reply)
Hello everyone!
I am new here and by new i don't mean only in this place, but in this shell scripting area. I started learning about Operation Systems only 2 months ago.
I want to learn more but i found a problem which I don't really know how to solve. :confused:
I have a directory with 4... (2 Replies)
Hi,
I'm new to Solaris. I have an issue with ssh service. When I restart the service it exits with an exit status of 0
$svcadm restart svc:/network/ssh:default
$echo $?
0
$
However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in... (3 Replies)
Discussion started by: maverick_here
3 Replies
LEARN ABOUT OPENSOLARIS
sndrd
sndrd(1M) System Administration Commands sndrd(1M)NAME
sndrd - Remote Mirror daemon
SYNOPSIS
/usr/lib/sndrd [-c max_connections] [-l listen_backlog]
DESCRIPTION
The sndrd daemon processes client Remote Mirror requests. Only the root user or a user with equivalent privileges can run this daemon. The
daemon is automatically invoked in run level 2. sndrd restarts the TCP transport layers.
Administrators wanting to change startup parameters for sndrd should, as root or equivalent, make changes in the /etc/default/sndr file
rather than editing the /lib/svc/method/svc-rdcsyncd file. See sndr(4).
OPTIONS
The sndrd daemon supports the following options:
-c max_connections
Sets the maximum number of connections allowed to the server over connection-oriented transports. By default, the number of connections
is 16.
-l listen_backlog
Sets connection queue length for the RDC TCP over a connection-oriented transport. The default value is 10 entries.
EXIT STATUS
0 Daemon started successfully.
>0 Daemon failed to start.
Error information is reported to syslog at level LOG_ERR.
FILES
/lib/svc/method/svc-rdcsyncd
Shell script for starting sndrd.
/lib/svc/method/svc-rdc
Shell script for stopping sndrd.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWrdcr, SUNWrdcu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO svcadm(1M), syslogd(1M), ds.log(4), attributes(5)NOTES
Do not manually stop the sndrd deamon. If you need to manually stop sndrd perform these steps. This stops both the sndrd and sndrsyncd dae-
mons.
# svcadm disable svc:/system/nws_rdc
# svcadm disable svc:/system/nws_rdcsyncd
Do not manually start or restart the sndrd deamon. If you need to manually start sndrd perform these steps. This starts both the sndrd and
sndrsyncd daemons.
# svcadm enable svc:/system/nws_rdc
# svcadm enable svc:/system/nws_rdcsyncd
See svcadm(1M) for additional information.
SunOS 5.11 2 Oct 2007 sndrd(1M)