Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

redirect(1) [debian man page]

XERCES-C-SAMPLE(1)					      General Commands Manual						XERCES-C-SAMPLE(1)

NAME
xerces-c - xerces-c sample program DESCRIPTION
This program is part of the libxerces-c-samples package. That package supplies compiled versions of the sample programs that are included in the libxerces-c-dev packages. Please see the examples for details. These programs are not intended for production use, but they may be useful in helping to create bug reports that the xerces-c maintainers can easily reproduce. SEE ALSO
/usr/share/doc/libxerces-c-dev/examples /usr/share/doc/libxerces-c-doc/html 22 Mar 2008 XERCES-C-SAMPLE(1)

Check Out this Related Man Page

SAMPLE(3alleg4) 						  Allegro manual						   SAMPLE(3alleg4)

NAME
SAMPLE - Stores sound data. Allegro game programming library. SYNOPSIS
#include <allegro.h> typedef struct SAMPLE DESCRIPTION
int bits; - 8 or 16 int stereo; - sample type flag int freq; - sample frequency int priority; - 0-255 unsigned long len; - length (in samples) unsigned long loop_start; - loop start position unsigned long loop_end; - loop finish position void *data; - raw sample data A sample structure, which holds sound data, used by the digital sample routines. You can consider all of these fields as read only except priority, loop_start and loop_end, which you can change them for example after loading a sample from disk. The priority is a value from 0 to 255 (by default set to 128) and controls how hardware voices on the sound card are allocated if you attempt to play more than the driver can handle. This may be used to ensure that the less important sounds are cut off while the important ones are preserved. The variables loop_start and loop_end specify the loop position in sample units, and are set by default to the start and end of the sample. If you are creating your own samples on the fly, you might also want to modify the raw data of the sample pointed by the data field. The sample data are always in unsigned format. This means that if you are loading a PCM encoded sound file with signed 16-bit samples, you would have to XOR every two bytes (i.e. every sample value) with 0x8000 to change the signedness. SEE ALSO
load_sample(3alleg4), exsample(3alleg4) Allegro version 4.4.2 SAMPLE(3alleg4)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

no data redirected to a file with top and grep - why?

HI all, I want to capture cpu data in batch mode of "top" command and redirect to a file like this: top -b > cpu.dat it works! But I want to capture only Cpu lines, so i have: top -b | grep ^Cpu >cpu.dat Then I got an empty output file. Why? Could somebody explain and help me to make it... (15 Replies)
Discussion started by: fongthai
15 Replies

2. Shell Programming and Scripting

KSH problem - how do i redirect three times?

i need to output an ls command to a file but also capture any errors from that command and output them to a log file and the screen. if it's only possible to output them to a log file and not the screen then that's fine. this is what i've tried so far, but it won't populate log.txt. i've... (16 Replies)
Discussion started by: mjays
16 Replies

3. Shell Programming and Scripting

How to redirect value from sql select statment to unix variable

Hi, I need to get the value from the table using the sql command and store this value into the unix variable so that i can use this value for furthure use.. Please can any body help me in this regards Thanks & Regards Abdul Hafeez Shaik (17 Replies)
Discussion started by: abdulhafeez
17 Replies

4. Shell Programming and Scripting

Unix file redirect problems

hi, In my script, i wrote a line like this : ls -lrt tpa* > x.xls while executing the script, it showing o/p as "tpa*: No such file or directory" because there is no files starts with tpa* now, instead of server showing this msg, i want my scritpt to display as : "No jobs available which... (15 Replies)
Discussion started by: p_satyambabu
15 Replies

5. Shell Programming and Scripting

Redirecting standard error issues.

Hello Friends, Good Day. I am trying to redirect a standard error to the bit bucket(/dev/null) but it is not working. Though, it is working fine in redirecting the standard output. Below is the output of my script without any redirection: $ ./CheckVSSLocks.sh... (16 Replies)
Discussion started by: singh.chandan18
16 Replies

6. Programming

Redirecting Terminal to Local Application!

i wanted to execute some terminal commands on local linux, parse their output and display it to the user, i checked netcat source code but i couldnt understance it since im new to c (and linux at the same time). so i was wondering if there is away to run an instance of terminal hidden, read and... (15 Replies)
Discussion started by: JonhyM
15 Replies

7. Shell Programming and Scripting

I/O redirection

Hello everyone,I'm reading a book and there's code fragment: exec 3>&1 ls -l 2>&1 >&3 3>&- | grep bad 3>&- exec 3>&- It says that the red part of that code does not close fd 3 but the green does close the fd 3.I can't understand that.....Why?Any predicate will be appreciated.:) (18 Replies)
Discussion started by: homeboy
18 Replies

8. Shell Programming and Scripting

Redirecting paste cmd

using paste -- sd " " via command line give sme desired output however when I use > it changes the format slightly. Anyone any ideas as to why this may happen Running SunOS alps 5.10 Generic_125100-05 sun4v sparc SUNW,Sun-Fire-T200 (14 Replies)
Discussion started by: rob171171
14 Replies

9. Shell Programming and Scripting

ssh and redirection

hi, i was using with success the following rsh statement : rsh server -l user1 "> /var/spool/mail/user1" to clear all the mail by remote now i try to do the same with ssh without success : ssh -t newuser@server "sudo -u user1 '> /var/spool/mail/user1'" i'm not authorized to... (17 Replies)
Discussion started by: Nicol
17 Replies

10. Linux

Ambiguous redirect error and syntax error when using on multiple files

Hi, I need help on following linux bash script. When I linux commands for loop or while loop on individual file it runs great. but now I want the script to run on N number of files so it gives me ambiguous redirect error on line 12 and syntax error on line 22 : (pls help ); #!/bin/bash #... (16 Replies)
Discussion started by: Madhusudan Das
16 Replies

11. Shell Programming and Scripting

Redirecting STDERR to file and screen, STDOUT only to file

I have to redirect STDERR messages both to screen and also capture the same in a file but STDOUT only to the same file. I have searched in this formum for a solution, but something like srcipt 3>&1 >&2 2>&3 3>&- | tee errs doesn't work for me... Has anyone an idea??? (18 Replies)
Discussion started by: thuranga
18 Replies

12. UNIX for Dummies Questions & Answers

Redirecting stdout inside a loop

hi, OK. I am writing a bash script, and it is almost working for me. Problem 1: I currently have stout sent to a file (stout.miRNA.bash.$date_formatted) which I would like to have work inside my loop, but when I move it, it just prints to the screen. Problem 2: I have a second file... (18 Replies)
Discussion started by: hmortens
18 Replies

13. UNIX for Dummies Questions & Answers

Redirect output to the same input file in awk

Hi, I want to compare a value from test file and redirect the o/p value to the same file input file 250 32000 32 128 Below is my code awk '{ if ($1 < "300") print $1 > /tmp/test}' test want to compare 250 < 300 then print 300 to the same place below is the... (24 Replies)
Discussion started by: stew
24 Replies

14. Shell Programming and Scripting

Redirecting the results to different output files

Hi All, I am trying a shell script and need your help on taking the results to different output files. I have tried the below code: nawk ' {CNF = (length()-10)/7 printf "%9s", substr ($0, 1, 9) for (i=0; i<=CNF; i++) T = substr ($0, 10+i*7, 7) TMP = 100 - (T + T + T + T + T + T + T + T... (24 Replies)
Discussion started by: am24
24 Replies

15. Shell Programming and Scripting

Difficulty with CAT redirection in script

I have not been able to append the contents of many files into one file. I have executed the CAT command shown below separately substituting an actual path and file name for the array variable to verify that I have the syntax correct. The bottom line - nothing is happening with CAT. I am running... (16 Replies)
Discussion started by: demmith
16 Replies