I am running JDictd (http://www.informatik.uni-leipzig.de/~duc/Java/JDictd/) from tcsh in Terminal on Mac OS X (:=Darwin=FreeBSD/Mach).
I am trying to get it to exit cleanly silently upon Mac OS X system shutdown.
My idea was that if there was a logout script in FreeBSD (basically a script... (1 Reply)
Hi Guys,
I want to execute few of my bash script, so that whenever someone calls shutdown now -r command, I want my script to execute first before shutting down.
Any help please?????
I've just started playing with the unix system, so far its been brilliant.... (10 Replies)
I want to make a script to shutdown a unixware computer from other user then root. In Sco version i use "as root" but in the unixware i don't know.
Please help me.
10x (12 Replies)
Hi,
I am on Alpha Server with HP Tru64 system.
I wish to setup shutdown to automatically and cleanly shutdown informix during the shutting down of the system.
Ie. I was trying to use rc0.d to do this but failed.
Has anyone tried doing this before? I already have the script and linked it
to... (0 Replies)
I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS).
Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Im writing a script to read a file called shutdown.cf and shut down any scripts that are listed there.
I have came up with the following based on things I saw in similar programs but it doesn not work:
Has anybody any idea what I may be doing wrong?
Cheers
Paul (4 Replies)
I have a list of clients
$ cat clientlist
client1
client2
client3
client4
I need a script to read these clients from a file and list the contanining policies for each client ( one client may belong to more than one policy),
then I'd like to remove the client from all... (2 Replies)
I am going to create shutdown database script. We have dabase shutdown script.
But i need take dabase which online and make it down.
I got user id which needs to dabase to down
ID=`ps -ef | grep -i pmon | grep -v grep | awk '{print $1}'` (
got orace side
DB=`ps -ef | grep -i pmon |... (1 Reply)
Hi all,
I'm writing a script to stop & start oracle:
su - oracle -c "sqlplus / as sysdba" -c "shutdown immediate">> ${log} 2>&1
The {log} refers to the log file. The part in bold gives error:
/usr/sbin/shutdown: Only root can run /usr/sbin/shutdown
Pls suggest how to correct this.
... (5 Replies)
Discussion started by: frum
5 Replies
LEARN ABOUT SUSE
smbstatus
SMBSTATUS(1) User Commands SMBSTATUS(1)NAME
smbstatus - report on current Samba connections
SYNOPSIS
smbstatus [-P] [-b] [-d <debug level>] [-v] [-L] [-B] [-p] [-S] [-s <configuration file>] [-u <username>]
DESCRIPTION
This tool is part of the samba(7) suite.
smbstatus is a very simple program to list the current Samba connections.
OPTIONS
-P|--profile
If samba has been compiled with the profiling option, print only the contents of the profiling shared memory area.
-b|--brief
gives brief output.
-d|--debuglevel=level
level is an integer from 0 to 10. The default value if this parameter is not specified is 0.
The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical
errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running - it generates a small amount of
information about operations carried out.
Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are
designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic.
Note that specifying this parameter here will override the smb.conf.5.html# parameter in the smb.conf file.
-V|--version
Prints the program version number.
-s|--configfile <configuration file>
The file specified contains the configuration details required by the server. The information in this file includes server-specific
information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See smb.conf
for more information. The default configuration file name is determined at compile time.
-l|--log-basename=logdirectory
Base directory name for log/debug files. The extension ".progname" will be appended (e.g. log.smbclient, log.smbd, etc...). The log
file is never removed by the client.
-v|--verbose
gives verbose output.
-L|--locks
causes smbstatus to only list locks.
-B|--byterange
causes smbstatus to include byte range locks.
-p|--processes
print a list of smbd(8) processes and exit. Useful for scripting.
-S|--shares
causes smbstatus to only list shares.
-h|--help
Print a summary of command line options.
-u|--user=<username>
selects information relevant to username only.
VERSION
This man page is correct for version 3 of the Samba suite.
SEE ALSO smbd(8) and smb.conf(5).
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open
Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to
DocBook for Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.
Samba 3.5 06/18/2010 SMBSTATUS(1)