04-23-2015
Hi Corona688 ,
Thanks a lot for your reply.As Im new to unix script level ,I am not clear the block of code you have provided.So please bear with me and requesting you to kindly provide the explanation .
You have written the codeblock for which case
if
case1:/user/target/input.txt as a single parameter
case 2 : <input_directory> <sourcefile> as two different parameter.
If you kindly explain your block of code ,that will be really helpful for me.Thanks !
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am not sure, yet i want to learn.. therefor ..
I want to put some Unix on my machine.. Unix 03, nut i have heard its not free and not open source..
please advise me on what to do.. (4 Replies)
Discussion started by: binary_w0lf
4 Replies
2. Shell Programming and Scripting
Hello Sir/ Madam,
i m new user in unix shell scripting.Please guide me to crack this problem.
Thanking you. (1 Reply)
Discussion started by: Nirmal
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Which command I can use to download a file from website?
I tried with wget and lwp-dowload but no gain.
Can any one suggest me the good way to dowload? (2 Replies)
Discussion started by: siba.s.nayak
2 Replies
4. Shell Programming and Scripting
Hi All,
please help me to write a shell that ftp a file which is in the local (C:\) drive to a Unix server.
Where as i know the IP for the Unix server.
i could do this process by using ftp command.
pls help me to write as Shell script.
Thanks in advance for all of your answers.:b::b: (3 Replies)
Discussion started by: little_wonder
3 Replies
5. UNIX for Dummies Questions & Answers
Dear Friends,
How to transfer files from my local PC to Unix directory without using FTP.
Scenario: Transfer/Upload a file from PC to unix using web browser without using FTP technologies. I heard something like sendunix and sendpc used to transfer files from unix to Desktop and... (1 Reply)
Discussion started by: kk_c2il2
1 Replies
6. Shell Programming and Scripting
Dear All,
i am trying to get the file from windows location to unix location without using FTP and neither thru entering the user id and password. I have one unix form which is running on web application and user is entering the location and file name there now i know the file name and path. So i... (8 Replies)
Discussion started by: ripudaman.singh
8 Replies
7. Shell Programming and Scripting
Hi All ,
I need a help regarding file ftp ing from mainframe to unix.Our source file is mainframe file.I need to download the mainframe file to local unix server through unix script.If anyone can help me how we can do it through unix script ,it will be really helpful.Thanks. (7 Replies)
Discussion started by: STCET22
7 Replies
8. Shell Programming and Scripting
Hi All ,
I am facing one issue here...I have a huge file in hadoop file system.Some disk space issues are thr ,thatswhy I want to copy 1st 100 records from hdfs to local unix.I tried below command but it is no working .Its giving error like cat: Unable to write to output stream.if any one can... (2 Replies)
Discussion started by: STCET22
2 Replies
9. UNIX for Advanced & Expert Users
I am learning Hadoop. As a part of that, Hdfs - Hadoop distributed file system has commands similar to unix where we can create,copy,move files from unix/linux file system to HDFS.
My question is
1) how two file systems (unix and hdfs) can coexist on thr same partition..
2)What if block used... (0 Replies)
Discussion started by: Narendra Eliset
0 Replies
10. UNIX for Beginners Questions & Answers
I am learning Hadoop. As a part of that, Hdfs - Hadoop distributed file system has commands similar to unix where we can create,copy,move files from unix/linux file system to HDFS.
My question is
1) how two file systems (unix and hdfs) can coexist on thr same partition..
2)What if block... (1 Reply)
Discussion started by: Narendra Eliset
1 Replies
LEARN ABOUT MOJAVE
dispatch_api
dispatch_api(3) BSD Library Functions Manual dispatch_api(3)
NAME
dispatch_api -- Designing API using dispatch
DESCRIPTION
The following is a brief summary of some of the common design patterns to consider when designing and implementing API in terms of dispatch
queues and blocks.
A general recommendation is to allow both a callback block and target dispatch queue to be specified. This gives the application the greatest
flexibility in handling asynchronous events.
It's also recommended that interfaces take only a single block as the last parameter. This is both for consistency across projects, as well
as the visual aesthetics of multiline blocks that are declared inline. The dispatch queue to which the block will be submitted should immedi-
ately precede the block argument (second-to-last argument). For example:
read_async(file, callback_queue, ^{
printf("received callback.
");
});
When function pointer alternatives to interfaces that take blocks are provided, the argument order of the function signature should be iden-
tical to the block variant; with the exception that the block argument is replaced with a context pointer, and a new last parameter is added,
which is the function to call.
The function based callback should pass the context pointer as the first argument, and the subsequent arguments should be identical to the
block based variant (albeit offset by one in order).
It is also important to use consistent naming. The dispatch API, for example, uses the suffix "_f" for function based variants.
SEE ALSO
dispatch(3), dispatch_async(3), dispatch_queue_create(3)
Darwin May 1, 2009 Darwin