08-26-2010
Is your script giving any output? If yes and that output is not required, redirect that to /dev/null.
Make sure you are not using any server global variables in the script. They won't be available untill someone logs in.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have two questions I am struggling with...
How do the programs p1, p2, and p3 need to handle their standard files so they can work like this: p1 | p2 | p3 ?
What exactly is this command supposed to do?
$ kill -QUIT %1
& This command below?
$ sort -o emp.lst emp lst &
Any... (1 Reply)
Discussion started by: yahoo14
1 Replies
2. Shell Programming and Scripting
I have a school project to create a shell program same as calendar i must create
a txt file with celebrations with vi i know this but the problem is i don't know awk
and grep.
The object of object is to create a program who read a date an appear the celebration.
Can you help me please !!!... (1 Reply)
Discussion started by: mytilini boy
1 Replies
3. Shell Programming and Scripting
Hi.
Does any one know when the below will print hi ?
|| echo hi
Thanks in advance (5 Replies)
Discussion started by: kinny
5 Replies
4. Shell Programming and Scripting
Hello A friend of mine posted this on another site that I follow. It is to advanced for me to figure out. If solved I will give credit where credit is due:
NOTE: Does not have to be AWK. Any Language will work,
Hi. I need a little assistant to write an awk script on linux that reads a file... (12 Replies)
Discussion started by: abacus
12 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Files stored in /bin, /sbin, /usr/bin, and /usr/sbin vary in their respective sizes. In fact, there are 244... (1 Reply)
Discussion started by: alindner
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I would like to know the awk command that gets the below o/p:
File contents:
Board1;9a;60;36;60.0;60;0;0.0
Board2;96;60;35;58.3;55;0;0.0
Board3;92;60;60;100.0;60;60;100.0
Used awk script:
#!/bin/awk -f
BEGIN {
FS = ";";
printf (" Device | ... (1 Reply)
Discussion started by: Dendany83
1 Replies
7. Shell Programming and Scripting
Hi All,
I need your assistance, I would like to replace all lines beginning with the word "begin" with the below text:
Device | IPMB0-A | IPMB0-B
Board Address |Sent SentErr %Errr |Sent SentErr ... (9 Replies)
Discussion started by: Dendany83
9 Replies
8. AIX
I am looking for any help on locating a set of install disks or downloads of AIX 3.2.5 or earlier.. We recently lost our HDD running AIX 3.2.5 and need to reinstall but have no OS disk to complete.. Any help would be appreciated.. Thanks (4 Replies)
Discussion started by: rmsdp
4 Replies
9. Shell Programming and Scripting
Hi,
I have a find command that searches for all the .properties under current directory and its subdirectories.
find . -name "*.properties"
I would like to pass the output of the above find command to my "operation.sh script as the second parameter.
for eg:
./operation.sh 775
... (2 Replies)
Discussion started by: mohtashims
2 Replies
10. Shell Programming and Scripting
Hello everyone.
I am trying to replace
sprintf(buffer, "{\"id\":1,\"method\":\"mining.update_block\",\"params\":}\n", coinid, blockhash);
with
sprintf(buffer, "{\"id\":1,\"method\":\"mining.update_block\",\"params\":}\n", coinid, blockhash);
this is the code I was trying but is... (9 Replies)
Discussion started by: crombiecrunch
9 Replies
LEARN ABOUT MOJAVE
csdiagnose
csdiagnose(1) BSD General Commands Manual csdiagnose(1)
NAME
csdiagnose -- collect information needed to diagnose CoreStorage volumes
SYNOPSIS
csdiagnose [-f path] [-h] [-v] [dev ...]
DESCRIPTION
csdiagnose collects information to help Apple investigate issues related to CoreStorage (File Vault 2, Fusion Drive, File Vault Everywhere,
etc). This tool invokes sudo, so you will be asked to authenticate.
This script requires csgather(1) to be installed in the PATH.
If dev is not given, all disks in the system will be inspected. This is the recommended method of invoking csdiagnose.
Advanced users can provide a list of dev in the form of disk1 or disk1s2. Only information of the given dev is collected. To fully collect
information of a CoreStorage volume, the CoreStorage Physical Volume (i.e., the Apple_CoreStorage partition), the Apple_Boot partition after
the physical volume, and the Logical Volume published by CoreStorage (which can be found out using the "diskutil cs list" command) should all
be provided on the command line.
The following information is collected:
1. OS version.
2. system logs, kernel logs, install logs, filesystem logs, and other useful information for CoreStorage debugging from /var/log.
3. output of "diskutil list".
4. output of "diskutil cs list".
5. output of "mount -t hfs".
6. "csgather -G" of every Apple_CoreStorage partition, which includes the CoreStorage metadata. If a list of dev is provided, only
information on the partitions included in the list will be collected.
7. EncryptedRoot.plist of every Apple_Boot partition. If a list of dev is provided, only information on the partitions included in
the list will be collected.
8. timestamps of the files relevant to kextcache/kextd.
The following user information is contained in the collected file:
1. Number and types of disks attached to the system.
2. The volume names, UUIDs, and size of each partition.
3. Encrypted versions of the volume key(s) that unlock the encrypted disk(s) attached to the system. Refer to csgather(1) for what
information could leak from the volume key(s).
4. User names, pictures, and password hints for the users.
No other user information (such as directory structures, file names, file content, etc) is collected.
The following options are available:
-h Show this help information.
-f path Specify an output path which will hold the file generated by this script. By default this will be the user's Desktop folder. The
given path must already exist.
-v Verbose mode, which prints every command it invokes.
SEE ALSO
csgather(1), sysdiagnose(1)
HISTORY
The csdiagnose utility first appeared along with CoreStorage in OS X 10.10.0.
OS X
May 31, 2019 OS X