I think that this script will do the trick, just start the script like
- this will call the script every five seconds. There may be other approaches too, but that's what I have in mind now. HTH.
I am trying to write a short block of code that takes a partial filename as input from the command line, then searches multiple remote servers for any file that matches the pattern. If the pattern is found, I would like to return the value of an environment variable from the *remote* server.
... (0 Replies)
When I run "/etc/myApp" I am presented with continuous output, just about once per second.
However when I try to get the information in Perl via a piped open, it waits till the end to give me anything... my code:
open (OUTPUT,"/etc/myApp |");
while (<OUTPUT>){
print $_;
}... (2 Replies)
First of all want to apologize for such a simple question. Very "new" to UNIX and have just taken a small intro class.
I need to pull back YYYYMMDD and store it in a field to be used later. I figured out date "+%Y%m%d" returns the date in that format, just not sure how to store it.
I am... (7 Replies)
Hey guys, i just started shell programming and i have a question. I am working on a simple inventory project and one of the problems which i am unable to solve would be how i am going to extract the data i need from a text file(which will be my database) and then put it inside the executable to be... (5 Replies)
Hi ,
I need to retreive the file name in an variable on the ftp server.Can you guy please let me know how can i do that.I need some thing like
connect to ftp <<eof
new_variable=`ls *_1_AUDIT.txt *_2_AUDIT.txt` (but on a ftp server)
mget $new_variable
>>eof (1 Reply)
Dear All,
I have a question.
I have similarly named files stored in different directories and I'd like to retreive information from them remotely to perform other tasks. For example given:
Folder 5 has files S5_SK1.chr01 S5_SK1.chr02 .......
Folder 6 has files S6_SK1.chr01 ... (3 Replies)
Hello,
I am new to UNIX.
My Requirement: Need to connect to Oracle database from UNIX and execute an SELECT statement and store the records in a flatfile of Comma delimiter.
What I have Succeeded: I was able to connect to Oracle from UNIX.
Problem: I cannot fetch multiple... (3 Replies)
Hi all,
I want to retrieve a part of the mail ID.
Im using Ksh.
The mail ID's i handle are of the type:
abc.def@ghi.com
I want the abc part alone.
Here is the code i used:
a=`echo $mailid |sed 's/\(.*\)..../\1/'`
echo $a
but the output i get is abc.def@ghi
I dont know... (2 Replies)
Hi,
I have one file 1.txt with one field consist of following Ids (shortlisted 10 but showing 3 here):
00052
00184
00607
and then second file 2.txt with three fields (very big file):
00052 00184 12.73062
00052 00598 13.51205
00052 00599 13.92554
00052 00600 13.73358... (2 Replies)
Update: UserCP Screeching Frog 0.7641 - Changed Live Chat to Live Updates
In this version of the UserCP, I have changed "Live Chat" to "Live Updates" by disabling the ability to post in the "live chat" area and changed the name to "Live Updates"
The reason for this change is that experienced... (6 Replies)
Discussion started by: Neo
6 Replies
LEARN ABOUT CENTOS
get_audio_stream_buffer
get_audio_stream_buffer(3alleg4) Allegro manual get_audio_stream_buffer(3alleg4)NAME
get_audio_stream_buffer - Tells you if you need to fill the audiostream or not. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void *get_audio_stream_buffer(AUDIOSTREAM *stream);
DESCRIPTION
You must call this function at regular intervals while an audio stream is playing, to provide the next buffer of sample data (the smaller
the stream buffer size, the more often it must be called). This function should not be called from a timer handler. Example:
void *mem_chunk;
...
while (TRUE) {
...
mem_chunk = get_audio_stream_buffer(buffer);
if (mem_chunk != NULL) {
/* Refill the stream buffer. */
}
}
RETURN VALUE
If it returns NULL, the stream is still playing the previous lot of data, so you don't need to do anything. If it returns a value, that is
the location of the next buffer to be played, and you should load the appropriate number of samples (however many you specified when creat-
ing the stream) to that address, for example using an fread() from a disk file. After filling the buffer with data, call
free_audio_stream_buffer() to indicate that the new data is now valid.
SEE ALSO play_audio_stream(3alleg4), free_audio_stream_buffer(3alleg4), exstream(3alleg4)Allegro version 4.4.2 get_audio_stream_buffer(3alleg4)