Sponsored Content
Top Forums UNIX for Advanced & Expert Users Spawing multiple display processes from one shell. Post 29287 by JoeTheGuy on Wednesday 2nd of October 2002 10:35:38 PM
Old 10-02-2002
wow! I used that command to play multiple wav files all at the same time through esd.

The result was scary!

for file in `slocate .wav`; do esdplay $file & done

uh huh huh huh huh huh
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Doubt about multiple processes

Suppose that I am performing some operation on an sql database. Lets say process of Searching and then if a value is found, updating it... Now, when I have some millions of records on which the operation has to be performed... Does it help to spawn multiple processes each executing the same... (9 Replies)
Discussion started by: Legend986
9 Replies

2. Shell Programming and Scripting

multiple processes overlap

Hello I've got a script that creates multiple processes, in ksh, to bcp out 6 tables at a time. In the script, we write messages to the log to show our progress; most of the time, the log messages are nice and neat with one per line, like they should be. But every once in awhile, at random, the... (2 Replies)
Discussion started by: stonemonolith
2 Replies

3. Shell Programming and Scripting

How to display what processes, users have opened at a given time

Hello, What i have to do is make a top 10 list of users sorted by the number of processes opened at a given time. Can anyone help me with finding out for a given moment, for all users how many processes each had opened? (5 Replies)
Discussion started by: gabibyte
5 Replies

4. Shell Programming and Scripting

Scripting Help - Display Processes

Hi, I was wondering if somebody could help me as I am struggling with writing a script for a training course. Ive had to write 5 scripts and this is the last one but am struggling with this even though I understand what it is meant to do..... PROBLEM: write a script which will allow you to... (1 Reply)
Discussion started by: isxrc
1 Replies

5. Programming

Creating Multiple Processes

I am having problems creating multiple forks. I want create a certain number of forks, each call a program and each wait for a different value. How is this accomplished my loop is not doing the trick. for (i = 0; i < 5; i++) { if (fork() < 0) { //print error } ... (3 Replies)
Discussion started by: Vikings1201
3 Replies

6. Shell Programming and Scripting

kill multiple processes by name

Want to kill multiple processes by name. for the example below, I want to kill all 'proxy-stagerd_copy' processes. I tried this but didn't work: >> ps -ef|grep proxy_copy root 991 986 0 14:45:34 ? 0:04 proxy-stagerd root 1003 991 0 14:45:49 ? 0:01... (2 Replies)
Discussion started by: catalinawinemxr
2 Replies

7. Shell Programming and Scripting

need help ps -e on multiple processes

:)Hi there, I am new to scripting and wanted to see if someone can show me how to grep on multiple processes and send the output to a file in /home/mydir/output. I am aware of ps -ef | grep on 1 process but need help looking up multiple processes, can you use this command ps -elf | grep |pid1... (4 Replies)
Discussion started by: abbya
4 Replies

8. Linux

How to display all daemon processes in priority order?

Hi, Is there any way to run chkconfig --list and to display all daemon processes in PRIORITY order, not in alphabetic order? Thank you. (4 Replies)
Discussion started by: hce
4 Replies

9. Homework & Coursework Questions

Display info about users (UID GID processes terminal)

I would like to get an opinion for my solution for this task and get feedback about better approach or mistakes I have made. 1. The problem statement, all variables and given/known data: The task is to create a script which prints information about users whose names are specified in the... (2 Replies)
Discussion started by: kornfan
2 Replies

10. UNIX for Beginners Questions & Answers

How to display processes which have been running for more than a X hours?

Hi, Is it possible to display processes which have been running for more than a 5hrs using a variation of the ps -ef command? Regards, Manny (5 Replies)
Discussion started by: mantas44
5 Replies
esdctl(1)							   User Commands							 esdctl(1)

NAME
esdctl - Enlightened Sound Daemon (esd) control program SYNOPSIS
esdctl [-h] [-s hostname:port] command DESCRIPTION
The esdctl utility is a command-line control program for the Enlightened Sound Daemon (esd). OPTIONS
The following options are supported: -s hostname:portContact the esd server on hostname at port. You can also specify this option as follows: --server=hostname:port -h Display help text, and exit. OPERANDS
The following operands are supported: command The following commands are supported: allinfo Get player and sample information from the server cache sample Cache a sample in the server free name Uncache a sample in the server getid name Retrieve a sample id, given the sample name lock Do not allow foreign clients to use the server loop name Make a cached sample loop off Suspend sound output so that other programs can use the audio device (this is the same as the standby option) on Resume sound output so that only esd can use the audio device (this is the same as the resume option) pansample id lefSetidefault panning for a sample, where id is the sample ID, and left and right are integers in the range 0 to 255 panstream id lefSetipanning for a stream, where id is the stream ID, and left and right are integers in the range 0 to 255 play name Play a cached sample once resume Resume sound output so that only esd can use the audio device (this is the same as the on option) serverinfo Get server information from the server standby Suspend sound output so that other programs can use the audio device (this is the same as the off option) standbymode Check whether the server is on standby stop name Stop the looping sample at the end unlock Allow foreign clients to use the server EXAMPLES
Example 1: Putting esd into Standby Mode example% esdctl standby Example 2: Ending Standby Mode example% esdctl resume Example 3: Loading a sample into the esd cache example% esdctl cache info.wav Sample <3> uploaded. Name = esdctl:info.wav This output indicates that the sample id is 3, and the sample name is esdctl:info.wav. Example 4: Getting a sample id from the esd cache example% esdctl getid esdctl:info.wav Example 5: Playing a sample from the esd cache example% esdctl play esdctl:info.wav Example 6: Playing and looping a sample example% esdctl loop esdctl:info.wav Example 7: Stopping a looped sample that is being played example% esdctl stop esdctl:info.wav Example 8: Removing a sample from the esd cache example% esdctl free esdctl:info.wav Example 9: Setting panning for a stream example% esdctl panstream 1 100 155 Example 10: Setting panning for a sample example% esdctl pansample 1 155 100 EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/esdctl Executable for Enlightened Sound Daemon control program ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-audio | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
esdcat(1), esdplay(1), esdrec(1), esdsample(1), esdmon(1), esd-config(1), libesd(3) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003. SunOS 5.10 8 Jan 2003 esdctl(1)
All times are GMT -4. The time now is 07:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy