Sponsored Content
Full Discussion: Program Hangs
Top Forums Programming Program Hangs Post 302948476 by Meow613 on Tuesday 30th of June 2015 12:27:58 AM
Old 06-30-2015
Don -

Thanks.

Quote:
But, since you don't include <newline> characters in most of your output, it may be stuck in a buffer instead of being made visible
That was it. Put in the \n and everyting worked. I should remember put in error checking and to flush a buffer. Sorry for my stupidity.

BTW - In the Debian distribution that I have, this is what works...
#include <asm/termios.h>

---------- Post updated at 12:27 AM ---------- Previous update was at 12:19 AM ----------

Don -

Thanks. The
Code:
 \n

did it. I should know to use error checking and to flush a buffer. Sorry for my stupidity.

BTW In th eDebian distribution I have, the location of
Code:
<terminos.h>

is
Code:
/usr/include/x86_64-linux-gnu/asm/termios.h

Thanks again
 

10 More Discussions You Might Find Interesting

1. AIX

AIX Hangs

Hai I am new to AIX, currently in our shop we use AIX 4.3.3 , where we have hosted the websphere 3.5 applicaiton on it. The AIX server is getting hanged very frequently, when analyse we found the swap memory is increasing once it reaches the memory 100 the system is totaly in hung state, so... (5 Replies)
Discussion started by: vipin77
5 Replies

2. UNIX for Advanced & Expert Users

sendmail -q hangs

Hi, I have a system where sendmail deamon not running. (And I have lot of jobs under crontab). But I have whole lot of sendmail processes started-up by cron process, eating up its CPU resources. (for a sample - see below) $ ps -ef|grep 248 root 248 1 0 Aug 12 ? 0:56... (5 Replies)
Discussion started by: chaandana
5 Replies

3. Programming

after executing execvp()... program hangs up

Hi , I m actually trying to implement pipes program,but after executing the execvp(),my program is getting hanged up :mad: Actaully i m getting the desired output expected from execvp()...but once results are displayed on the output screen ,program is getting hanged up values of... (3 Replies)
Discussion started by: Crab
3 Replies

4. AIX

telnet hangs

Hi All, When I tried to telnet to lparB from lparA, it hangs at "Escape character is..". I've tried; - killed -15 - re-started it - edit netsvc.conf, hosts=local,bind and hosts=local,bind4 - checked /etc/hosts for 127.0.0.1 loopback localhost - copy original inetd.conf ... (3 Replies)
Discussion started by: fara_aris
3 Replies

5. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

6. AIX

sysback hangs

I've set sysback to run in the cron daily to backup my servers to a nim servers SAN storage. Every once and a while the backup process hangs and the backup doesn't complete. When I check the processes the sysback processes are still running hours after sysback would normally end. I don't see any... (1 Reply)
Discussion started by: daveisme
1 Replies

7. Programming

popen hangs program during cmd execution

How can I get around this? when my program reaches the following popen job it halts the program until the ping/netstat/ipconfig/traceroute is completed then resume to the rest of the program... FILE *in; extern FILE *popen(); char buff; char newline; char nstat; char nping; ... (5 Replies)
Discussion started by: Jess83
5 Replies

8. UNIX for Advanced & Expert Users

SFTP. ls and get hangs.

Hello I have a sftp problem. If I do sftp between some nodes that we installed it works fine i can list directories and get files. If I connect with sftp from the other side of a firewall (wich has port 22 open) I can log in and cd to which ever direcory i want i can do pwd but when i do... (4 Replies)
Discussion started by: vettec3
4 Replies

9. Shell Programming and Scripting

How to display a message if program hangs(takes too long)

I have a ksh script (script1) that calls another ksh script (script2). If script2.ksh hangs or takes too long to execute I want script1.ksh to kill the call to script2.ksh and instead just display "Script2 can't run right now". Could someone help me with coding this? (1 Reply)
Discussion started by: mrskittles99
1 Replies

10. IP Networking

Ftp hangs

On Oracle Linux 5, 64 bit (derivative of RHEL) ... I have a shell script that runs every Sunday, that ftp's a bunch of files from server 'prod' to server 'test'. Script executes on 'test'. This has been running for YEARS with no problem. Normally the FTP step takes about 1.5 to 2 hours. (pulls... (8 Replies)
Discussion started by: edstevens
8 Replies
mlib_SignalMelCepstral_F32(3MLIB)			    mediaLib Library Functions				 mlib_SignalMelCepstral_F32(3MLIB)

NAME
mlib_SignalMelCepstral_F32 - perform cepstral analysis in mel frequency scale SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalMelCepstral_F32(mlib_f32 *cepst, const mlib_f32 *signal, void *state); DESCRIPTION
The mlib_SignalMelCepstral_F32() function performs cepstral analysis in mel frequency scale. The first two steps of mel scale cepstral analysis is the same as in general cepstral anaysis. After the logarithm of the spectrum magni- tude is obtained, it is converted into mel frequency scale before the inverse Fourier transform. +-----------+ +-----------+ | Linear | | Inverse | ... ------>| to |------->| Fourier |-----> X'(k) | Mel Scale | X''(m) | Transform | c(n) +-----------+ +-----------+ where X'(k) is defined in linear frequency scale and X''(m) is defined in mel frequency scale. The mel frequency scale is defined as following. freq_mel = melmul * LOG10(1 + freq_linear / meldiv) where freq_mel is the frequency in mel scale, freq_linear is the frequency in linear scale, melmul is the multiplying factor, muldiv is the dividing factor. Optionally, a bank of band pass filters in linear frequency scale can be used below the bank of band pass filters in mel frequency scale, as shown below in linear frequency scale. 0 f1 f2 f3 fp fp+1 fp+2 fp+3 fp+q |---|---|---| ... |---|----|-----| ... | ... -> freq where fp = melbgn, fp+q = melend, p = nlinear, q = nmel; the filters number 1 to p are defined in linear frequency scale which have equal bandwidth in linear frequency scale; the filters number p+1 to p+q are defined in mel frequency scale which have equal bandwidth in mel frequency scale and increasing bandwidth in linear frequency scale. See Digital Signal Processing by Alan V. Oppenheim and Ronald W. Schafer, Prentice Hall, 1974. See Fundamentals of Speech Recognition by Lawrence Rabiner and Biing-Hwang Juang, Prentice Hall, 1993. PARAMETERS
The function takes the following arguments: cepst The cepstral coefficients. signal The input signal vector. state Pointer to the internal state structure. RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_SignalMelCepstralInit_F32(3MLIB), mlib_SignalMelCepstralFree_F32(3MLIB), attributes(5) SunOS 5.10 10 Nov 2004 mlib_SignalMelCepstral_F32(3MLIB)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy