07-13-2011
How to write a script in unix to get value from SQR?
hi this is naga,
i had created one SQR , but i didnt include the code to get the notification(failure or success ) thats way every time its returning the status=0 SQR was went to success(if it failed also), without touching the code of the SQR can any one help to write script in unix to get Failure or success notification if the process is failed or success..
is it posible to write ? please let me know
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to change permissions on an output file from an sqr. The file is pushed out into a directory on the unix box. I am using the following code in the sqr to accomplish this.
if $OUTPUT <> ''
let $unix_call = 'chmod 664 '||$OUTPUT
show $unix_call
CALL SYSTEM Using... (1 Reply)
Discussion started by: evengetsteven
1 Replies
2. UNIX for Dummies Questions & Answers
UNIX script running a SQR program.... passing values to SQR program... trying to pass values back to UNIX....
I'm currently creating a file from the SQR program and then using the Unix READ command to read the file and retrieve the value....
Is there an easier way to pass the values back from... (0 Replies)
Discussion started by: seeuinoz
0 Replies
3. UNIX for Advanced & Expert Users
UNIX script running a SQR program.... no problem passing values to SQR program... trying to pass values back to UNIX....
I'm currently creating a file from the SQR program and then using the Unix READ command to read the file and retrieve the value....
Is there an easier way to pass the... (2 Replies)
Discussion started by: seeuinoz
2 Replies
4. Shell Programming and Scripting
Hi,
I am unable to get idea, how to write the script like multiple choice exam model script , how to specify the welcome to the exam(name) and if he select
option then it has to enter into the exam , then choosing the answers,next question and going to previous question.
Thanks & Regards
... (0 Replies)
Discussion started by: palreddy7
0 Replies
5. UNIX for Dummies Questions & Answers
Hello to UNIX Champs,
Can any body help me out to write the script using fork() thru shell scripting.....i am a layman to fork(), so please give me the link or any scripts which will help me out to know the details about fork. (1 Reply)
Discussion started by: manas_ranjan
1 Replies
6. Shell Programming and Scripting
Hi,
I need to do frequently server down and up. Every time i am using nearly 5 to 6 commands to down and agin i am using the commands to up.
Can anybody help me to write a script to down and up.
which i can use once on unix platform it can down later it can up the server. (1 Reply)
Discussion started by: sreerao
1 Replies
7. Shell Programming and Scripting
unix script must do the fiollowing
open a file containing comma delimited records
> each record contains 10 fields
> removes the 2nd field and use that same field containing fields 2 to 10
the original record after fprocessing should containing fields 1 and 3
a new erecord must be... (10 Replies)
Discussion started by: dwightja
10 Replies
8. Shell Programming and Scripting
Hi All,
I have the requirement in unix shell script.
I want to write the "ls -ltr" command out put to excel file as below.
Input :text file data :
drwxr-xr-x 5 root root 4096 Oct 2 12:26
drwxr-xr-x 2 apx aim 4096 Nov 29 18:40
drwxr-xr-x 5 root root 4096 Oct 2 12:26
drwxr-xr-x... (10 Replies)
Discussion started by: Balasankar
10 Replies
9. Shell Programming and Scripting
Hi,
I have on Designdocument in that information is stored with in tabular format.I need Perl/unix script to read and write the data
using perl script?
Regards,
Ravi (4 Replies)
Discussion started by: toravi.pentaho
4 Replies
10. Shell Programming and Scripting
Hi,
I am trying to run an SQR from unix shell script. but the SQr errored out with the following message
SQR (1201) Cannot open argument file (2) No such file.
Can anybody help me ragrding this.
I m using this to run the SQR. $2 is the sqr name and $3 is the parameter file name.
sqrun... (1 Reply)
Discussion started by: Aswathy88
1 Replies
LEARN ABOUT DEBIAN
dispatch_group_notify_f
dispatch_group_create(3) BSD Library Functions Manual dispatch_group_create(3)
NAME
dispatch_group_create, dispatch_group_async, dispatch_group_wait, dispatch_group_notify -- group blocks submitted to queues
SYNOPSIS
#include <dispatch/dispatch.h>
dispatch_group_t
dispatch_group_create(void);
void
dispatch_group_enter(dispatch_group_t group);
void
dispatch_group_leave(dispatch_group_t group);
long
dispatch_group_wait(dispatch_group_t group, dispatch_time_t timeout);
void
dispatch_group_notify(dispatch_group_t group, dispatch_queue_t queue, void (^block)(void));
void
dispatch_group_notify_f(dispatch_group_t group, dispatch_queue_t queue, void *context, void (*function)(void *));
void
dispatch_group_async(dispatch_group_t group, dispatch_queue_t queue, void (^block)(void));
void
dispatch_group_async_f(dispatch_group_t group, dispatch_queue_t queue, void *context, void (*function)(void *));
DESCRIPTION
A dispatch group is an association of one or more blocks submitted to dispatch queues for asynchronous invocation. Applications may use dis-
patch groups to wait for the completion of blocks associated with the group.
The dispatch_group_create() function returns a new and empty dispatch group.
The dispatch_group_enter() and dispatch_group_leave() functions update the number of blocks running within a group.
The dispatch_group_wait() function waits until all blocks associated with the group have completed, or until the specified timeout has
elapsed. If the group becomes empty within the specified amount of time, the function will return zero indicating success. Otherwise, a non-
zero return code will be returned. When DISPATCH_TIME_FOREVER is passed as the timeout, calls to this function will wait an unlimited amount
of time until the group becomes empty and the return value is always zero.
The dispatch_group_notify() function provides asynchronous notification of the completion of the blocks associated with the group by submit-
ting the block to the specified queue once all blocks associated with the group have completed. The system holds a reference to the dispatch
group while an asynchronous notification is pending, therefore it is valid to release the group after setting a notification block. The
group will be empty at the time the notification block is submitted to the target queue. The group may either be released with
dispatch_release() or reused for additional operations.
The dispatch_group_async() convenience function behaves like so:
void
dispatch_group_async(dispatch_group_t group, dispatch_queue_t queue, dispatch_block_t block)
{
dispatch_retain(group);
dispatch_group_enter(group);
dispatch_async(queue, ^{
block();
dispatch_group_leave(group);
dispatch_release(group);
});
}
RETURN VALUE
The dispatch_group_create() function returns NULL on failure and non-NULL on success.
The dispatch_group_wait() function returns zero upon success and non-zero after the timeout expires. If the timeout is
DISPATCH_TIME_FOREVER, then dispatch_group_wait() waits forever and always returns zero.
MEMORY MODEL
Dispatch groups are retained and released via calls to dispatch_retain() and dispatch_release().
FUNDAMENTALS
The dispatch_group_async() and dispatch_group_notify() functions are wrappers around dispatch_group_async_f() and dispatch_group_notify_f()
respectively.
SEE ALSO
dispatch(3), dispatch_async(3), dispatch_object(3), dispatch_queue_create(3), dispatch_semaphore_create(3), dispatch_time(3)
Darwin May 1, 2009 Darwin