05-20-2010
Hello,
Thanks for sharing this information.
This User Gave Thanks to debrah.h48 For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
1-in vmstat commande line, in reply, which column is the more important to look and verify if server is very slow ?
2-how can I see how many sessions are opened with the same login ?
Many thanks before. (2 Replies)
Discussion started by: big123456
2 Replies
2. UNIX for Advanced & Expert Users
i want to determine I/O performance of an
executable,
but iostat dont give correct results because
the disk that i am writing to and reading from,
are not physical disk of the host machine,
instead of these local disks we are using
a network storage.
is there any standard way in unix to get... (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies
3. UNIX for Dummies Questions & Answers
Hay, guys,
Any ideas how to calculate like this:
in first file, there're number of lines listing 2+3, 6*9 .......
Then, how to get the result and put them in another file in format:
2+3 5
6*9 54
......
sheerly by shell command, no scripts required. (4 Replies)
Discussion started by: robbinGlasses
4 Replies
4. News, Links, Events and Announcements
About 4 years ago I wrote this tool inspired by Rob Urban's collect tool for DEC's Tru64 Unix. What makes this tool as different as collect was in its day is its ability to run at a low overhead and collect tons of stuff. I've expanded the general concept and even include data not available in... (0 Replies)
Discussion started by: MarkSeger
0 Replies
5. Shell Programming and Scripting
Hi,
Is there a way to evaluate an equation contained in a string within an AWK script?
For example:
A = "(5*2)-1" (this equation is read from a file and varies line by line)
In this example, I can't see any way to get an answer of 9 unless I do:
cmd = "awk 'BEGIN{print "A"}'"
cmd |... (3 Replies)
Discussion started by: srdgeo
3 Replies
6. Shell Programming and Scripting
if input to the perl program is ' ( p * ((a+b) * (c+d))) + q ' it shuld give the output as ' pac + pad + pbc + pbd + q ' .can anyone suggest a way to do this ? (7 Replies)
Discussion started by: Anuj8584
7 Replies
7. Shell Programming and Scripting
HI All,
I have a script in bash that i want that script will perform action
When the size of a particular folder exceeds the 80%.
Here is an example of script that result is exactly 80% :
#!/bin/bash
CHECK=$(df -h /var/log/syslog | grep '80%' | xargs echo | cut -d' ' -f5)
if ];... (1 Reply)
Discussion started by: Aviel.shani
1 Replies
8. Homework & Coursework Questions
! The one-dimensional PDE for heat diffusion equation
! u_t=(D(u)u_x)_x + s where u(x,t) is the temperature,
! D(u) is the diffusivity and s(x,t) is a source term.
! Taking D(u)= 1 and s(x,t)=0 gives
! u_t= u_xx
! uniform one dimensional region |x|<1 for t>0
! uniform mesh size delta x=0.1
!... (1 Reply)
Discussion started by: watto1
1 Replies
9. Programming
Well guys and gals I have discovered after all these years that Python does complex numbers without the 'complex()' function or 'cmath' import.
It is well known that Euler's Identity E**(i*pi)+1=0 so I decided to experiment
Last login: Fri Dec 13 18:27:30 on ttys000
AMIGA:amiga~> python3.8... (0 Replies)
Discussion started by: wisecracker
0 Replies
LEARN ABOUT MOJAVE
sharing
sharing(8) BSD System Manager's Manual sharing(8)
NAME
sharing -- create share points for afp and smb services.
SYNOPSIS
sharing [-a <path> [options]] [-e <share point name> [options]] [-r <share point name>] [-l]
DESCRIPTION
A list of flags and their descriptions:
-a <path>
Add a new share point for the directory specified by <path>.
-e <share point name>
Edit the share point record specified by <share point name>.
-r <share point name>
Delete the share point record specified by <share point name>.
-l List all existing share point records.
The following options modify share point record attributes:
-A <afp name>
Use customized name <afp name> when using share point with afp.
-S <smb name>
Use customized name <smb name> when using share points with smb.
-s <flags>
Use this option to enable and disable sharing via afp and smb. By default a share point is enabled for afp and smb protocols. To
enable and disable particular services, combine (binary AND) the following flags as required: 100 (enable sharing for afp) and 001
(enable sharing for smb). Specify 000 to turn off sharing of a share point altogether.
-g <guest flag>
Use this option to enable and disable guest access for afp and smb. By default guest access is enabled for afp and smb. To enable
and disable guest access to particular services, combine (binary AND) the following flags as required: 100 (enable guest for afp)
and 001 (enable guest for smb). Specify 000 to turn off guest access for a share point altogether.
-i <inherit privileges flag>
Use this option to enable and disable the "inherit privileges" attribute for afp. By default "inherit privileges" is enabled for
afp. To enable "inherit privileges", combine (binary AND) the following flags as required: 10 ("inherit privileges" for afp).
Specify 00 to turn off "inherit privileges" for a share point altogether.
-n <customized record name>
Specify a <customized record name> to be used as the share point record name. By default the record name is the name of the direc-
tory pointed to by the share point record. This directory is specified by the <path> when the record is created.
EXAMPLES
/usr/sbin/sharing -a /SomePath/ShareThisDirectory
This example shows how to create a share point for the directory "/SomePath/ShareThisDirectory":
/usr/sbin/sharing -e ShareThisDirectory -A SP1 -g 101
This example shows how to edit the share point record created above, adding a customized name "SP1" for afp servies, and enabling guest
access only for afp and smb.
FILES
/usr/sbin/sharing location of tool
macOS June 1, 2019 macOS