12-26-2008
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If there is a file being transferred from one box to another box, How can one confirm on the 2nd box..that the file has arrived, and transfer is complete ?
I mean in addition to checking the file exists, I want to confirm its transferred completely and not growing in size. (4 Replies)
Discussion started by: amsh76
4 Replies
2. Shell Programming and Scripting
hi everybody,
i learning unix now only.Can u pls guide me in invoking a shell script.Actually i need to know how to write the command for invoking the shell script.Suppose the shell file name is count , then how i will write the command.
thanks (1 Reply)
Discussion started by: gopa_mani
1 Replies
3. Shell Programming and Scripting
hey, can I invoke the same script twice simultaneously? I want both instances to run at the same time with different parameters. Thanks! (2 Replies)
Discussion started by: mpang_
2 Replies
4. UNIX for Dummies Questions & Answers
hi all,
forgive me if this question is not relevant to this section.
i have a shell file that will automatically deploy the files that are necessary and will compile them. i need to automate this management process through cruise control, for this i need to know whether it is possible for me to... (2 Replies)
Discussion started by: sais
2 Replies
5. Shell Programming and Scripting
Hi all,
Iam writing a KSH script which needs to export dispaly to Xwindows and then involke a sh script .. But a core file is getting genrated for reasons not known to me.
Please check i need incorporate below mentioend code in my script which iam not abel to ..
export DISPLAY=`who am i |... (1 Reply)
Discussion started by: rahman_riyaz
1 Replies
6. Shell Programming and Scripting
Hello All,
I have come across a small problem. It would be great if any of you could help me in resolving the issue.
one file named dummy.txt will be ftped to Unix machine twice daily. If i receive it second time in a day i need to do some processing with the file.
How to find the... (2 Replies)
Discussion started by: RSC1985
2 Replies
7. Emergency UNIX and Linux Support
I am database guy and not very good at shell scripts. I am seeking help to sharp my script coding. I have 5 scripts
1. master script. I use this one to call other four scripts to do database work.
2. db_backup_1 and log_backup_1
3. db_backup_2 and log_backup_2
in master script, I want to... (4 Replies)
Discussion started by: duke0001
4 Replies
8. Shell Programming and Scripting
Hi All,
I am getting some file through using sftp from another server to my server.
I want know the exact file arrival time on my sytem
I have tried stat command . it gives me the below details
$ stat abc.txt
File: `abc.txt Size: 24231 Blocks: 48 IO Block:... (5 Replies)
Discussion started by: aish11
5 Replies
9. UNIX for Dummies Questions & Answers
hello,
I have implemented this command :
tshark -eth0 -T fiels -e frame.time et sip.Request-Line -z sip,stat > test2.txt
the result of this command : test.txt:
Aug 27, 2013 23:06:47.334270000 INVITE
Aug 27, 2013 23:06:47.335045000 SIP/2.0 401 Unauthorized
Aug 27, 2013... (1 Reply)
Discussion started by: Amouna
1 Replies
10. Shell Programming and Scripting
I have script below
#! /bin/bash
if
then
echo "JBoss is NOT running"
else
echo "JBoss is running"
fi
If JBoss is NOT running need to be invoke another script i.e jboss startup script /home/vizion/Desktop/jboss-4.2.3.GA/bin/run.sh script from other script not... (5 Replies)
Discussion started by: Chenchireddy
5 Replies
LEARN ABOUT OPENSOLARIS
mq_notify
mq_notify(3C) Standard C Library Functions mq_notify(3C)
NAME
mq_notify - notify process (or thread) that a message is available on a queue
SYNOPSIS
#include <mqueue.h>
int mq_notify(mqd_t mqdes, const struct sigevent *notification);
DESCRIPTION
The mq_notify() function provides an asynchronous mechanism for processes to receive notice that messages are available in a message queue,
rather than synchronously blocking (waiting) in mq_receive(3C).
If notification is not NULL, this function registers the calling process to be notified of message arrival at an empty message queue asso-
ciated with the message queue descriptor, mqdes. The notification specified by notification will be sent to the process when the message
queue transitions from empty to non-empty. See signal.h(3HEAD). At any time, only one process may be registered for notification by a spe-
cific message queue. If the calling process or any other process has already registered for notification of message arrival at the speci-
fied message queue, subsequent attempts to register for that message queue will fail.
If notification is NULL and the process is currently registered for notification by the specified message queue, the existing registration
is removed. The message queue is then available for future registration.
When the notification is sent to the registered process, its registration is removed. The message queue is then available for registration.
If a process has registered for notification of message arrival at a message queue and some processes is blocked in mq_receive(3C) waiting
to receive a message when a message arrives at the queue, the arriving message will be received by the appropriate mq_receive(3C), and no
notification will be sent to the registered process. The resulting behavior is as if the message queue remains empty, and this notification
will not be sent until the next arrival of a message at this queue.
Any notification registration is removed if the calling process either closes the message queue or exits.
RETURN VALUES
Upon successful completion, mq_notify() returns 0; otherwise, it returns -1 and sets errno to indicate the error.
ERRORS
The mq_notify() function will fail if:
EBADF The mqdes argument is not a valid message queue descriptor.
EBUSY A process is already registered for notification by the message queue.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
|Standard |See standards(5). |
+-----------------------------+-----------------------------+
SEE ALSO
mq_close(3C), mq_open(3C), mq_receive(3C), mq_send(3C), mqueue.h(3HEAD), siginfo.h(3HEAD), signal.h(3HEAD), attributes(5), standards(5)
SunOS 5.11 5 Feb 2008 mq_notify(3C)