08-06-2012
Hi Jim. Thanks for the reply. Did the above code work for you? I get an 'issue' in the first line of the for loop. It wont read the value of the $RHOST and $CCMD variables that are part of the loop condition .. so it does nothing unfortunately. If I hard code them in then it works .. I'm missing something from my code.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to know how to successfully back up(and compress) files from a local machine to a remote host.
Will this work?
tar -cvf backup.tar -C /user/somedir | gzip backup.tar | rsh some.domain.com/user/somedir
thanks in advance! (3 Replies)
Discussion started by: WeNdeL
3 Replies
2. Solaris
Hi all,
i am copying .gz files from production server to development server using
"scp" command.my requirement is after copying .gz files i want to delete old
.gz files(two days back) in development server from production server.
like this way i need to delelte .log ,.z and .dmp files... (3 Replies)
Discussion started by: krishna176
3 Replies
3. Shell Programming and Scripting
Hi,
I want to specify multiple remote directories but want to transfer them in a single command with one connection with remote server.
e.g.
rsync -vrt --size-only --delete user@host:/home/user1/dir1 user@host:/home/user1/dir2 user@host:/home/user1/dir3 .... local_dir/
I want to... (0 Replies)
Discussion started by: sardare
0 Replies
4. Shell Programming and Scripting
I would like to find and backup all *.mp4 files from /Pictures and its sub-directories and move them to a single directory on a remote. I can find and move the files but I don't want the directory structure...just the files to be placed in a single remote directory.
To find my files I use
... (1 Reply)
Discussion started by: wreckedred
1 Replies
5. Shell Programming and Scripting
hello,
i am trying to get a list of files to be scped from the remote server
by running the below in my local unix server ( note - there is a passwordless connectivity setup made between the local and remote server) and, we use KSH.
---
ssh $scp_host "find /a/b/c/*/ -iname "$remote_file"" >... (4 Replies)
Discussion started by: billpeter3010
4 Replies
6. Shell Programming and Scripting
Hi,
Given addresses of 2 remote machines, using a shell script is it possible to
get the state of running processes in "src"
stop all the processes in "src"
exit out of "src"
ssh into "dest"
resume the state of executing processes captured in step 1 in "dest"
Assumption:
"src" is... (3 Replies)
Discussion started by: Saeya Darsan
3 Replies
7. Shell Programming and Scripting
Hello All,
Hope all are doing well.
We use scp (some times sftp and rsync also) for transferring big files (around 2GB each ) from 1 Network to another Network.
The Issues which we face :-
During transfer some times( Once in 1 week (or twice)) , the speed of transfer gets down to 30 kb/s,... (2 Replies)
Discussion started by: Upendra Bhushan
2 Replies
8. UNIX for Beginners Questions & Answers
Hello,
I would like to scp multiple files to a remote server that requires a password for the process to be completed.
I have 30 folders (x_1, x_2 ... x_30), each containing 25 files. What I want to do is scp 1 out of the 25 files (file called bvals) for all my folders to a remote server and... (3 Replies)
Discussion started by: nasia.m
3 Replies
9. UNIX for Beginners Questions & Answers
Hi all,
I am trying to paste thousands of files together into a matrix. Each file has only 1 column and all the files have the same number of rows (~27k rows). I tried
paste * > output as well as some other for loops
but the output only contains the columns from the 1st and last files. The... (8 Replies)
Discussion started by: notimenocall
8 Replies
10. Shell Programming and Scripting
I'm trying to copy a file myfile.scr from my local Linux server to multiple folders on remote AiX server using single rsync command.
Below command helps me copy the file "myfile.scr" from my localhost to a remote host folder "/app/deployment/tmpfiles"
rsync --delay-updates -F --compress... (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT CENTOS
xcb-examples
xcb-examples(3) XCB examples xcb-examples(3)
NAME
xcb-examples - manpage examples
DESCRIPTION
Many of the XCB manpages contain example code. These examples intend to explain how to use one particular part of XCB. They almost never
represent a standalone (or even useful) program - X11 programs are relatively involved and thus beyond the scope of a manpage example.
ENVIRONMENT
Every example assumes you have an xcb_connection and possibly other variables at hand. For illustrating how xcb_get_property works, you
need the window of which you want to get the property, for example. To make it clear that these variables are your responsibility, these
examples consist of a single function which takes the necessary variables as parameters.
FLUSHING
Flushing means calling xcb_flush to clear the XCB-internal write buffer and send all pending requests to the X11 server. You don't explic-
itly need to flush before using a reply function (like xcb_query_pointer_reply), but you do need to flush before entering the event loop of
your program.
There are only two cases when XCB flushes by itself. The first case is when its write buffer becomes full, the second case is when you are
asking for the reply of a request which wasn't flushed out yet (like xcb_query_pointer_reply). This last point also includes
xcb_request_check(). Please note that waiting for an event does NOT flush.
Examples generally include the xcb_flush call where appropriate (for example after setting a property). Therefore, including these func-
tions and calling them in your application should just work. However, you might get better results when flushing outside of the function,
depending on the architecture of your program.
COMPILATION
If an example does not compile (without warnings) when using -std=c99, that is considered a documentation bug. Similarly, not handling
errors or leaking memory is also considered a documentation bug. Please inform us about it on xcb@lists.freedesktop.org.
CODING STYLE
Every example uses 4 spaces for indention.
Comments are in asterisks, like /* this */.
No line is longer than 80 characters (including indention).
SEE ALSO
xcb_connect(3), xcb_get_property(3), xcb_flush(3)
AUTHOR
Michael Stapelberg <michael+xcb at stapelberg dot de>
XCB
2011-12-11 xcb-examples(3)