07-10-2012
Thank you.
Last edited by awc228; 07-10-2012 at 12:23 PM..
Reason: removing thread
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a comma delimited string, e.g. empno, ename, sal.
Using Korn Shell Script I want to build the SET clause for an UPDATE statement, and set clause should look like this:
empno=decode(:empno, '?', empno, :empno),
ename=decode(:ename, '?', empno, :ename),
sal=decode(:sal, '?',... (14 Replies)
Discussion started by: shalua
14 Replies
2. Shell Programming and Scripting
Hi guys,
I am new to shell scripting, i need your help to tackle a problem.
I have a single file, sample is below:
2008:07:08 07:01:14.360 (tid 4) INFO no bonus notifications to send
2008:07:08 07:01:50.823 (tid 1) INFO Database cleaned of all stale bonus records order than 30 days... (3 Replies)
Discussion started by: fahadaizaz
3 Replies
3. Shell Programming and Scripting
Hi all,
We have a requirement like,
There will be a file. For example the content will be as follows
+=KA100012345678 0114092150R328abcdefgh
D 345626 011409
1 2121212 232323 12121212 2323232323 1212121
We need to select the bold portion and change it to a... (11 Replies)
Discussion started by: susant.igate
11 Replies
4. Shell Programming and Scripting
Hi all,
We have a requirement like we need to create a program which will change a particular string in the file. For example
+=KA1238767 1121 3344645 686943 22356
01 567893 12435 12121 983627 121 1092 091217
02 may be for engine failure
In the above file we need to change the bold string... (2 Replies)
Discussion started by: susant.igate
2 Replies
5. Shell Programming and Scripting
Greetings,
I would be very grateful to anyone who is willing to help and knows there scripting and how to convert a DOS CMD script. :)
In this posting I am also hoping to pass on information to anyone wanting to see a bit of VMware command line stuff.
I have made a script (batch file) that runs... (11 Replies)
Discussion started by: dp123
11 Replies
6. Shell Programming and Scripting
Input data:
read1_data1
read1_data1
read2_data1
read3_data1
read4_data1
read4_data1
read4_data1
read5_data1
.
.
Desired output result:
read1_data1
read1_data2
read2_data1
read3_data1
read4_data1 (3 Replies)
Discussion started by: perl_beginner
3 Replies
7. Homework & Coursework Questions
I'm having problems with this assignment. I know how to do these basic unix "if" and "then" statements) What I am having trouble with is putting my script together. I started with #!/bin/bash and not sure how to continue. I have to indicate the source and destination folders, and make each a... (2 Replies)
Discussion started by: ulib00n
2 Replies
8. Programming
Hey guys, not sure I am in the right forum for this, just trying a shot in the dark here. I am using an app on my android to control certain functions on my pc's music player but need to have the app perform 2 specific tasks within my music player so I am looking around for a coder or programmer... (2 Replies)
Discussion started by: mikehende
2 Replies
9. Shell Programming and Scripting
Hello.
I'm new to bash script and I'm learning the basics by writing some scripts.
Recently a friend of mine asked me if I could try to write a script to him to automate a couple of processes that uses JSON RPCs.
I'll try to explain in few words the workflow just to contextualize the problem.... (48 Replies)
Discussion started by: psysc0rpi0n
48 Replies
LEARN ABOUT SUSE
sdl::mixer
SDL::Mixer(3) User Contributed Perl Documentation SDL::Mixer(3)
NAME
SDL::Mixer - a SDL perl extension
SYNOPSIS
$mixer = new SDL::Mixer -frequency => MIX_DEFAULT_FREQUENCY,
-format => MIX_DEFAULT_FORMAT,
-channels => MIX_DEFAULT_CHANNELS,
-size => 4096;
DESCRIPTION
SDL::Mixer allows you access to the SDL mixer library, enablig sound and music volume setting, playing, pausing and resuming, as well as
fading the sound and music in and out.
METHODS
new()
$mixer = SDL::Mixer->new( -frequency => MIX_DEFAULT_FREQUENCY,
-format => MIX_DEFAULT_FORMAT,
-channels => MIX_DEFAULT_CHANNELS,
-size => 4096);
Creates a new SDL::Mixer object. $size is the buffer size in bytes.
query_spec()
my $specs = SDL::Mixer::query_spec();
Returns a hash reference, containing the following keys and their respective values:
-status
-frequency
-channels
-format
reserve_channels
$mixer->reserve_channels(4);
Reserve so many channels.
allocate_channels()
$mixer->reserve_channels(2);
Allocate so many channels.
group_channel(channel,group)
Group the channel number $channel into group $group.
group_channels(from,to,group)
Groups a range of channels
group_available(group)
Return true when the group is available.
group_count(group)
Returns the number of channels in the group
group_oldest()
group_newer()
play_channel()
play_music()
Play $music $loop times.
fade_in_channel(channel,chunk,loops,ms,ticks)
Fades a channel in
fade_in_music(music,loops,ms)
Fades the music in over a number of ms, looping as it does
channel_volume(channel,volume)
Sets the volume for a single channel
mucis_volume(volume)
Set the volume for the music.
halt_channel(channel)
Stops a specific channel
halt_group(group)
Stops a group of channels
halt_music()
Stops the music
channel_expire(channel,ticks)
Ignores the channel after "ticks" has expired
fade_out_channel(channel,ms)
Fade the channel number $channel in $ms ms out.
fade_out_group(group,ms)
Fade the channel group $group in $ms ms out.
fade_out_music(ms)
Fade the music in $ms ms out.
fading_music()
Return true when the music is currently fading in or out.
fading_channel()
Return true when the channel number $channel is currently fading in or out.
pause( channel )
Pause the channel $channel.
resume(channel)
Resume the channel $channel.
paused()
Return true when the channel is currently paused.
pause_music()
Pause the music play.
resume_music()
Resume the music play.
rewind_music()
Resets the music file to the beginning
music_paused()
Return true when the music is currently paused.
playing()
Return true when the channel is currently playing.
playing_music ()
Return true when the music is currently playing.
AUTHORS
David J. Goehrig, basic doc added by Tels <http://bloodgate.com>.
SEE ALSO
perl, SDL::Music and SDL::Sound.
perl v5.12.1 2010-07-05 SDL::Mixer(3)