Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xpacode(7) [debian man page]

xpacode(7)							SAORD Documentation							xpacode(7)

NAME
XPACode - Where to Find Example/Test Code SYNOPSIS
The XPA source code directory contains two test programs, stest.c, and ctest.c that can serve as examples for writing XPA servers and clients, respectively. They also can be used to test various features of XPA. DESCRIPTION
To build the XPA test programs, execute: make All in the XPA source directory to generate the stest and ctest programs. (NB: this should work on all platforms, although we have had prob- lems with unresolved externals on one Sun/Solaris machine, for reasons still unknown.) The stest program can be executed with no arguments to start an XPA server that contains the access points: xpa, xpa1, c_xpa (containing sub-commands cmd1 and cmd2), and i_xpa. You then can use xpaset and xpaget to interact with these access points: cat xpa.c | xpaset xpa # send to xpa cat xpa.c | xpaset "xpa*" # send to xpa and xpa1 xpaget xpa # receive from xpa xpaget xpa* # receive from xpa and xpa1 etc. You also can use ctest to do the same thing, or to iterate: ctest -s -l 100 xpa # send to xpa 100 times ctest -s -l 100 "xpa*" # send to xpa and xpa1 100 times ctest -g -l 100 xpa # receive from xpa 100 times ctest -g -l 100 "xpa*" # receive from xpa and xpa1 100 times More options are available: see the stest.c and ctest.c code itself, which were used extensively to debug XPA. The file test.tcl in the XPA source directory gives examples for using the XPATclInterface. SEE ALSO
See xpa(7) for a list of XPA help pages version 2.1.14 June 7, 2012 xpacode(7)

Check Out this Related Man Page

xpachanges(7)							SAORD Documentation						     xpachanges(7)

NAME
XPAChanges - Changes For Users from XPA 1.0 and 2.0 SYNOPSIS
This document describes changes that will affect users who migrate from XPA 1.0 to XPA 2.0. DESCRIPTION
There have been a few changes that affect users who upgrade XPA from version 1.0 to version 2.0. These changes are detailed below. o XPA commands no longer have a resolver routine (this is open to negotiations, but we decided the idea was dumb). For the SAOtng pro- gram, this means that you must explicitly specify the access point, i.e.,: cat foo.fits | xpaset SAOtng fits instead of: cat foo.fits | xpaset SAOtng o By default, xpaset, xpaget, etc. now wait for the server callback to complete; i.e., the old -W is implied (and the switch is ignored). This allows support for better error handling. If you want xpaset, etc. to return before the callback is complete, use -n switch: echo "file foo.fits" | xpaset -n SAOtng o The old -w switch in xpaset and xpaget is no longer necessary (and is ignored), since you can have more than one process communicating with an xpa access point at one time. o The new -p switch on xpaset means you need not read from stdout: xpaset -p SAOtng colormap I8 will send the paramlist to the SAOtng callback without reading from stdin. SEE ALSO
See xpa(7) for a list of XPA help pages version 2.1.14 June 7, 2012 xpachanges(7)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Little script with awk

Hello, i would like to test the number of files in a directory, and if this number is greater than 100 (for example) send an email with the value. I tried this ls | wc -l | awk '{if ( $1 > 100 ) print $1 }' | /bin/mailx -s "Mailqueue" gnak@pouet.fr But of course the email is sent even if the... (3 Replies)
Discussion started by: gnak
3 Replies

2. UNIX for Dummies Questions & Answers

split function

Hi all! I am relatively new to UNIX staff, and I have come across a problem: I have a big directory, which contains 100 smaller ones. Each of the 100 contains a file ending in .txt , so there are 100 files ending in .txt I want to split each of the 100 files in smaller ones, which will contain... (4 Replies)
Discussion started by: ktsirig
4 Replies

3. HP-UX

How to test directory availibility

Hello, I'm trying to test if a directory specified in a script parameter is available or not. I wrote a little code to do so, but there's a problem because I receive an error message. My code: #Verify command parameter if then echo 'Incorrect command parameter' echo... (3 Replies)
Discussion started by: santuna
3 Replies

4. UNIX for Dummies Questions & Answers

rename a file to include the ip address

I am trying to pull 100 different files from 100 different servers, each file has the same name. To prevent over writing of the files i want to edit the file name to include the IP address of where it came from. Being new to Unix I have no idea how to script this.... Help.. Regards Mac (10 Replies)
Discussion started by: MrMac
10 Replies

5. Shell Programming and Scripting

awk: find and replace in certain field only, help needed

I got a sample file like this. $ cat test 12|13|100|s 12|13|100|s 100|13|100|s 12|13|100|s I want to replace all 100 by 2000 only in 3rd field using "awk" This is replacing all 100's :-( $ awk -F "|" '{gsub( /100/,"2000");print}' test 12|13|2000|s 12|13|2000|s 2000|13|2000|s... (5 Replies)
Discussion started by: jkl_jkl
5 Replies

6. Shell Programming and Scripting

Automatically execute all programs in a directory

Hello. The last days I extended an open-source C++ library by some faster functions. This library provides a lot of short test programs which guarantee that the library works exactly. The compilation of each test works in a Makefile automatically. What I need is a shell script which... (5 Replies)
Discussion started by: max3000
5 Replies

7. Shell Programming and Scripting

Find the lights which are turn on.

See the interview question from other site, that I'd like to implement by AWK. The rules are: There are 100 lamps, number from 1 to 100. Initially, all of them are returned off. First time, if the number of lamp is multiple by one, switch the lamp status; that's mean, if it turn off, turn it... (4 Replies)
Discussion started by: rdcwayx
4 Replies

8. Programming

awk programming

I have the list of numbers in a file 105.1 102.0 100.5 100 98 97.5 95 ... I want to get how many times I have numbers greater than a particular limit, say 100 in the list. How can I do that with awk command? (5 Replies)
Discussion started by: pranto_d
5 Replies

9. UNIX for Dummies Questions & Answers

Directory Split

Hello again unix.com. How can I split a directory in 100 other ones. I have the directory "example.com" and I want to make 100 like it with names 1.example.com, 2.example.com, 3.example.com ... to 100.example.com. Thanks. (6 Replies)
Discussion started by: galford
6 Replies

10. Shell Programming and Scripting

To send mail with same format as in file

I want to send the content in same format as it is in file. #!/bin/sh cat /usr/test/abc > /usr/test/abc/file if then MAILTO=test@yahoo.com CONTENT="/usr/test/abc/file" ( echo "Subject: TEST " echo "MIME-Version: 1.0" echo "Content-Type: text/html" cat $CONTENT ) |... (7 Replies)
Discussion started by: rajjev_saini123
7 Replies

11. Shell Programming and Scripting

No such file or directory in script

Hi Folks am in /home/coolboy/ directory $cat test.sh hi test $cat hello.sh ./home/coolboy/test.sh echo hello when am executing hello.sh as ./hello.sh then it is giving the below error No such file or directory Please help me on this (3 Replies)
Discussion started by: coolboy98699
3 Replies

12. Shell Programming and Scripting

Find lines with matching column 1 value, retain only the one with highest value in column 2

I have a file like: I would like to find lines lines with duplicate values in column 1, and retain only one based on two conditions: 1) keep line with highest value in column 3, 2) if column 3 values are equal, retain the line with the highest value in column 4. Desired output: I was able to... (3 Replies)
Discussion started by: pathunkathunk
3 Replies

13. UNIX for Dummies Questions & Answers

Implement the '&&' function in a shell

Hello, I'm currently implementing the && function in a shell using C. For example, if we input cmd1 && cmd2, then cmd2 executes only when cmd1 exits successfully. I'm thinking about: int main() { int i; char **args; while(1) { printf("yongfeng's shell:~$ "); args =... (5 Replies)
Discussion started by: Yongfeng
5 Replies

14. Shell Programming and Scripting

Extract number from string.

Hi I am on Sun os. I have data in the below format and I need to grab the number out from the string. O/p needed: ---------- Post updated at 12:39 PM ---------- Previous update was at 12:32 PM ---------- I tried this but I am getting . at the front (14 Replies)
Discussion started by: dsravanam
14 Replies

15. Shell Programming and Scripting

How to send data to previous program (pipe)?

Hi, Suppose I have a command:$ cmd1 | cmd2I need to send a message from cmd2 to cmd1 when I receive some a certain message from cmd1. How to do this? I think that I have to know cmd1's PID and then in cmd2 send a message to this PID. How? (24 Replies)
Discussion started by: JackK
24 Replies