9 More Discussions You Might Find Interesting
1. Solaris
I have recently all of a sudden stopped receiving my cronjob messages that were being sent with the mailx command. I have not made any changes and it is affecting all my servers at this site only (all running Solaris 10). At my other site I am running a mixture of Solaris 10 and Ubuntu 14, and they... (2 Replies)
Discussion started by: Madrox72
2 Replies
2. Shell Programming and Scripting
Is it possible to add Pager Notification to mailx command?? :confused:
Or by any other mean.
---------- Post updated at 08:49 AM ---------- Previous update was at 07:08 AM ----------
Hi just want to specify that by Pager i mean a message to the mobile number.
Suppose i have following... (1 Reply)
Discussion started by: Sharma331
1 Replies
3. Shell Programming and Scripting
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?
here body file contains message, it should display in email, please help
i am using HP-UX
(cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com"
... (4 Replies)
Discussion started by: only4satish
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Is there a way to suppress this message?
Null message body; hope that's ok
My email string is:
mailx -s "This is my subject" myemail@domain.com < /dev/null
It's just an annoyance to me that I would like see go away. (3 Replies)
Discussion started by: bbbngowc
3 Replies
5. Shell Programming and Scripting
Hi,
I have a file with 2 records in two lines. While mailing these two records using mailx command, those two records coming in a single line. I have used the following command to send those records via mail.
cat filename | mailx -s "subject" mailaddress
I want the two records in... (3 Replies)
Discussion started by: siri_886
3 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to send a mail with an attachment and message. Following command I am using.
(cat <messagefile> ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com
In the received mail, message body is appearing fine. But attachment is not coming. Rather... (2 Replies)
Discussion started by: nihar.dutta
2 Replies
7. UNIX for Dummies Questions & Answers
Hi
I want to know if the email address in the mailx exists or not
Eg:
Mailx -s "Subj" hello@ab.com
How do I know if the email address is a valid one??? (4 Replies)
Discussion started by: superprogrammer
4 Replies
8. UNIX for Dummies Questions & Answers
If I use the "Mail" link instead of the "mail" link to ../mailx I get this error.
Mail so-n-so @whatever.com
mailx: NUL changed to @
Unknown command: "postmaster"
The email still goes through but i get the error.
If I use "mail" it goes thru without the error.
Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
9. UNIX for Advanced & Expert Users
Hi, I am trying to include a message along with an attachment with an email using mailx on AIX.
uuencode Test.dat Test.dat| mailx -s 'Testing' mymail@yahoo.com < MESGFILE
This only gives me the contents of MESGFILE as my message.
If I remove the < FILE I recieve the attachment.
What... (4 Replies)
Discussion started by: edog
4 Replies
mq_notify(2) System Calls Manual mq_notify(2)
NAME
mq_notify - register/cancel a notification request with a message queue
SYNOPSIS
DESCRIPTION
If the argument notification is not NULL, the system call registers the calling process to be notified of message arrival at an empty mes-
sage queue associated with the message queue descriptor mqdes. The notification specified by the notification argument will be sent to the
process when the message queue transitions from the empty state to the non-empty state.
If the type of notification specified in notification->sigev_notify is then the signal specified in notification->sigev_signo will be sent
to the process. If the flag is set for that signal number, then the value specified in notification->sigev_value will be the si_value com-
ponent of the siginfo_t structure passed to the signal catching function at the time of signal delivery.
At any time, only one process can be registered for notification with a message queue. If the calling process, or any other process has
already registered for notification with the specified message queue, subsequent attempts to register with that queue will fail.
If notification is NULL and the process is currently registered for notification with the specified message queue, the existing registra-
tion is canceled.
When the notification is sent to the registered process, its registration is removed. The message queue is then available for registra-
tion.
If there is some process blocked in waiting to receive a message from a message queue, the arrival of a message on the queue will satisfy
the even if the queue has a registered notification request. The resulting behavior is as if the message queue remains empty, and no noti-
fication is sent.
To use this function, link in the realtime library by specifying on the compiler or linker command line.
RETURN VALUE
returns the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
If fails, is set to one of the following values:
[EAGAIN] The system lacks sufficient signal queuing resources to honor the request.
[EBADF] The mqdes argument is not a valid message queue descriptor.
[EBUSY] A process is already registered for notification with the message queue.
[EINVAL] An attempt was made to cancel a non-existent notification request, or notification points to an invalid address.
[ENOSYS] is not supported by the implementation.
SEE ALSO
mq_open(2), mq_send(2), sigaction(2). signal(2), signal(5).
STANDARDS CONFORMANCE
mq_notify(2)