07-01-2016
Thanks for sharing your solution.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am having a problem, with setting the FS in TCLSH, maybe someone knows the answer.
I have a Tclsh/Tk script, and i´m trying to get all (only) the running processes for the given user like this:
foreach process {
puts stdout $process;
}
This also works, but... (2 Replies)
Discussion started by: laptop87
2 Replies
2. UNIX for Dummies Questions & Answers
Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b:
I stopped at .. :(
#!/bin/sh
A=`hostname -i`
echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies
3. Shell Programming and Scripting
SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies
4. Solaris
Hi,
I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8
With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8".
Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Discussion started by: asdfg
2 Replies
5. Shell Programming and Scripting
Dear Experts,
How to use field separator in awk , when the field separation is needed as "||"
Example: (file1 )
aa || bb || cc || 1234
xx || yy || zz || 1123
Q:
If I want to print $3 and $4 only , with using the field separator "||"
How to write awk code: (6 Replies)
Discussion started by: rveri
6 Replies
6. Shell Programming and Scripting
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies
7. Shell Programming and Scripting
Friends have the following code that is correct.
BEGIN { num_reg = 0
suma_iva=0
}
{
num_reg++
suma_iva=suma_iva+int(substr($0, 103,9))
}
END{
printf ("%011d",suma_iva)
}
I have the following problem, I have to do just that but this time... (4 Replies)
Discussion started by: tricampeon81
4 Replies
8. Shell Programming and Scripting
Hello everybody, I'll get one more help
I have a cabundle file that I need to separate into 2 parts, the first sequence and the second sequence, I thought of several things but I did not remember anything that could actually accomplish this separation and transform into 2 variables, first... (4 Replies)
Discussion started by: c0i0t3
4 Replies
LEARN ABOUT MOJAVE
smbdiagnose
SMBDIAGNOSE(8) BSD System Manager's Manual SMBDIAGNOSE(8)
NAME
smbdiagnose -- gather information to aid in diagnosing SMB file sharing issues
SYNOPSIS
smbdiagnose -h
smbdiagnose [-f path] [-s]
DESCRIPTION
The smbdiagnose tool gathers system information and network traffic in order to assist Apple when investigating issues related to SMB file
sharing. A great deal of information is harvested, spanning system state, system configuration, and network traffic related to SMB file
sharing.
What smbdiagnose Collects:
o A network packet trace of SMB file sharing traffic that occurs during the time the tool is run. This packet trace may include file
names and file data. It may also include the authentication exchange used to log into the SMB server.
o Enhanced debug logs for the SMB server process.
o If the -s option is specified, the default set of information collected by sysdiagnose(1).
What smbdiagnose Doesn't Collect:
o No authentication credentials are harvested from the system
OPTIONS
-h Print full usage.
-f path Write the diagnostic to the specified path. The default is ``~/Desktop''.
-s Collect sysdiagnose(1) information. The default is not to collect sysdiagnose(1) information.
EXIT STATUS
smbdiagnose exits with status 0 if there were no internal errors encountered during the diagnostic, or >0 when an error unrelated to external
state occurs or unusable input is provided by the user.
macOS 15 July 2016 macOS