12-16-2019
Hi Rudic ,
Thanks a lot , could you help me out with brief explanation of this script , It will help me out to counteract similar problems.
10 More Discussions You Might Find Interesting
1. AIX
Is it possible to give spaces using unix commands at a particular column?
eg:
123 56 89(input)
123 56 89(output) (4 Replies)
Discussion started by: rollthecoin
4 Replies
2. Filesystems, Disks and Memory
Hi All,
I want to make a 3GB of space reserve on Solaris. Let me know whether there is a way by creating empty file of 3GB so that i can delete that file in future to utilize that space. Or any other better ways for space reserve.
-Vinodh' Kumar (4 Replies)
Discussion started by: vino_hymi
4 Replies
3. Solaris
Hi,
What is the command or how to create a user with the restricted usage of space on a disk.
Also let me know how to change the limit of the space size allotted in future for the same user.
~Vinodh Kumar V M (3 Replies)
Discussion started by: vino_hymi
3 Replies
4. Shell Programming and Scripting
Hi,
I need an awk script (or whatever shell-construct) that would take data like below and get the max value of 3 column, when grouping by the 1st column.
clientname,day-of-month,max-users
-----------------------------------
client1,20120610,5
client2,20120610,2
client3,20120610,7... (3 Replies)
Discussion started by: ckmehta
3 Replies
5. UNIX for Advanced & Expert Users
I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation?
Here is my query:
cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}'
02:00:00... (1 Reply)
Discussion started by: bizomb
1 Replies
6. Shell Programming and Scripting
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Discussion started by: jacobs.smith
3 Replies
7. Shell Programming and Scripting
Hi All,
Its urgent.. pls help me out.. I want to create a KSH which should generate a report with the list of users and the files larger than 5 GB created by them in a direcorty and send autogenerated e-mail to them.
my input would be users list,directory path and the file size (say 5 GB)
... (11 Replies)
Discussion started by: anman0523
11 Replies
8. Shell Programming and Scripting
Hi,
I have the following type of data that is separated by tabs:
-2 abandonar abandono abandonas abandona abandonamos abandonáis abandonan
-4 abandonado abandonada abandonados abandonadas
-2 abandona abandonos ... (1 Reply)
Discussion started by: owwow14
1 Replies
9. Shell Programming and Scripting
I have created one file that contains all the necessary info in it to create a download link. In each of the lines /results/analysis/output/Home/Auto_user_S5-00580-6-Medexome_67_032/plugin_out/FileExporter_out.67... (8 Replies)
Discussion started by: cmccabe
8 Replies
10. Shell Programming and Scripting
Hi
I have create a report and have converted the text output to HTML but in the output there is a sentence "The transaction was aborted by the user.", the spaces between this sentence is considered as separate column.
How can I overcome the same?
I am providing my code, text output and... (7 Replies)
Discussion started by: Dumpi16
7 Replies
LEARN ABOUT DEBIAN
explain_pclose_or_die
explain_pclose_or_die(3) Library Functions Manual explain_pclose_or_die(3)
NAME
explain_pclose_or_die - process I/O and report errors
SYNOPSIS
#include <libexplain/pclose.h>
int explain_pclose_or_die(FILE *fp);
int explain_pclose_success(FILE *fp);
void explain_pclose_success_or_die(FILE *fp);
DESCRIPTION
These functions may be used to wait for program termination, and then reprt errors returned by the pclose(3) system call.
explain_pclose_or_die
int explain_pclose_or_die(FILE *fp);
The explain_pclose_or_die function is used to call the pclose(3) system call. On failure an explanation will be printed to stderr,
obtained from explain_pclose(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
int status = explain_pclose_or_die(fp);
fp The fp, exactly as to be passed to the pclose(3) system call.
Returns:
This function only returns on success, see pclose(3) for more information. On failure, prints an explanation and exits.
explain_pclose_success_or_die
void explain_pclose_success_or_die(FILE *);
The explain_pclose_success_or_die function is used to call the pclose(3) system call. On failure, including any exit status other than
EXIT_SUCCESS, an explanation will be printed to stderr, obtained from explain_pclose(3), and then the process terminates by calling
exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_pclose_success_or_die(fp);
fp The fp, exactly as to be passed to the pclose(3) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
explain_pclose_success
int explain_pclose_success(FILE *fp);
The explain_pclose_success function is used to call the pclose(3) system call. On failure, including any exit status other than EXIT_SUC-
CESS, an explanation will be printed to stderr, obtained from explain_pclose(3). However, the priniting of an error message does not also
cause exit(2) to be called.
This function is intended to be used in a fashion similar to the following example:
int status = explain_pclose_success(command);
fp The fp, exactly as to be passed to the pclose(3) system call.
Returns:
the value returned by the pclose(3) system call. In all cases other than EXIT_SUCCESS, an error message will also have been
printed to stderr.
SEE ALSO
pclose(3)
process I/O
explain_pclose(3)
explain pclose(3) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2009 Peter Miller
explain_pclose_or_die(3)