Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beep in Unix client

Status
Not open for further replies.

sus98

Programmer
Jan 17, 2003
4
0
0
IN
Hi all,
Is there any way I can create a beep sound in AIX unix client with the help of C program.

I am accessing unix AIX 4.2 server with the help of KEA(telnet tool).

Very urgent please reply.

thank u in advance

Sus98
 
Hi glathaa,
beep() does not work in the client system, Any other alternatives please.

sus98
 
Hmmm.. did you try "\a" on the stdout stream? Or write the assembly for the beep with an asm tag.
 
Try "\0x07" since not "\a" since the last one is line feed whil ethe first one is bell or beep.
 
dear jstreich,
"\a" does not work in unix client neither "\0x07"

Please let me know how to write a assembly for beep ... with asm tag.

because i am totally new to that concept... or help me where can i find help for it....

 

Have you tried like this?

#include <stdio.h>

int main()
{
printf(&quot;%c&quot;, 0x07);
return 0;
}



-Latha
 
Well, I'm not an assembly programmer, the only time used it was for class, and that was MIPS assembly... but the idea is just to write a asm tag:

Code:
asm
{
  mv $a0, $t0
  addi $a0, $a0, 5
}

Althogh you'd have to use the brand of ASM your compiler generates before assembling... Try asking in the Assembly forum for the proper asm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top