10 More Discussions You Might Find Interesting
1. Red Hat
Hi, I am using CENTOS and for now, I am not able to install or to configure the istat command on Linux. So, is there a way to do the same that the shell is doing below, but not using istat command? I would appreciate any help on it.
#!/bin/sh
HOUR=0
MONTHN=0
if
then
:
else
... (10 Replies)
Discussion started by: brjohnsmith
10 Replies
2. UNIX and Linux Applications
ssmtp has been running well under Kubuntu 12.04.1 for plain text messages. I would like to send html messages with ssmtp -t < /path/to/the/message.txt, but I cannot seem to get the message.txt file properly formatted. I have tried various charsets,
Content-Transfer-Encoding, rearranging the... (0 Replies)
Discussion started by: Ronald B
0 Replies
3. Programming
Hi guys,
I'm in a job of converting a restful webservice to soap. Tool for convertation uses XQuery.
Now i need to convert a message like this:
{
"firstName": "John",
"midName": null,
"lastName": "Smith",
"married": false,
"address": {
"streetAddress": "21 2nd... (5 Replies)
Discussion started by: tien86
5 Replies
4. Shell Programming and Scripting
I would like to determine if a file is older than a particular date. I found that istat will let me see the date and time of a file older than a year, but I need to change the format. Could anyone help me reformat the following date to a variable (a one liner would be great).
Output from istat -... (1 Reply)
Discussion started by: oldman2
1 Replies
5. Programming
Hii can anyone pls tell how to limit the max no of message in a posix message queue. I have made changes in proc/sys/fs/mqueue/msg_max
But still whenever i try to read the value of max. message in the queue using attr.mq_curmsgs (where struct mq_attr attr) its giving the default value as 10.... (0 Replies)
Discussion started by: mohit3884
0 Replies
6. UNIX for Advanced & Expert Users
I got the command :
istat filename
shows all the file details like owner and group name.
But
i want to know, who has accessed the file last time.
As istat shows the name of owner of that file and name of the group.
istat does lots of my work but i want to know who has accessed my file... (2 Replies)
Discussion started by: varungupta
2 Replies
7. UNIX for Advanced & Expert Users
I got the command :
istat filename
shows all the file details like owner and group name.
But
i want to know, who has accessed the file last time.
As istat shows the name of owner of that file and name of the group.
istat does lots of my work but i want to know who has accessed my file... (0 Replies)
Discussion started by: varungupta
0 Replies
8. UNIX for Dummies Questions & Answers
I have a regular user account in one of the solaris machines.
I have been trying to display a message when I log on by modifying my .profile file e.g.
+-------------+
.profile
+--------------+
echo "Welcome <user>"
echo "Today is: "`date`
etc. etc.
The message keeps on popping... (0 Replies)
Discussion started by: run_time_error
0 Replies
9. UNIX for Dummies Questions & Answers
Hello
I installed solaris 9, but when I reboot the box, I got this message
WARNING:add_spec:No major number for mpt
WARNING:add_spec:No major number for mpt
WARNING:add_spec:No major number for mpt
WARNING:add_spec:No major number for mpt
WARNING:add_spec:No major number for mpt
... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a SCO Openserver 5.0.5 server running RAID5 on the hp NETRAID-1M controller and it works just fine.
However, I cannot add a tape drive in. The standard SCSI card is a Symbios and I am using the 'slha' driver, but the system doesnt see the adaptor at SCO startup. The adaptor and... (1 Reply)
Discussion started by: christate
1 Replies
strerror(3) Library Functions Manual strerror(3)
NAME
strerror, strerror_r - Access message explaining function error
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <string.h>
char *strerror(
int errnum);
The following function does not conform to current standards and is supported only to maintain backward compatibility.
int strerror_r(
int errnum,
char *strerrbuf,
int buflen);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
strerror(): XSH4.2
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies an error-number value. [Tru64 UNIX] Specifies a buffer that will hold the error message. [Tru64 UNIX] Specifies the length of
the buffer.
DESCRIPTION
The strerror() function maps the error number specified by the errnum parameter to a error message string and returns a pointer to the
string. The string pointed to by the return value is not modified by the program, but may be overwritten by a subsequent call to this
function. The implementation behaves as though no other function calls the strerror() function.
If a library message catalog is available for the current locale, the strerror() function stores the message from that catalog. Otherwise,
it uses the default messages. The LC_MESSAGES category in the setlocale() call specifies the message catalog language, and the NLSPATH
environment variable specifies the directory search path for message catalogs.
The strerror_r() function is the reentrant version of the strerror() function. It is supported to maintain backward compatibility with
operating system versions prior to Tru64 UNIX Version 4.0.
RETURN VALUES
On successful completion, the strerror() function returns a pointer to the generated message string. If the error number is not valid,
errno is set to indicate the error.
On successful completion, strerror_r() provides the error message in strerrbuf, and returns a value of 0 (zero). Otherwise it returns a
value of -1.
ERRORS
The strerror() and strerror_r() functions set errno to the specified values for the following conditions:
The errnum parameter is an invalid error number.
[Tru64 UNIX] The strerrorbuf is inaccessible to the strerror_r() function. Note that the strerror_r() function truncates the error
message if strerrbuf is too small.
RELATED INFORMATION
Functions: intro(2), catgets(3), catopen(3), perror(3), setlocale(3)
Standards: standards(5) delim off
strerror(3)