8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have been thinking about a few things that I have no idea of how to do with a scripting language (awk/sed I know to make proper use of just these 2).
1. Is there a way to have persistent variables? Say a variable that will be held in memory, and which can be accessed by subsequent... (7 Replies)
Discussion started by: jamie_123
7 Replies
2. Shell Programming and Scripting
I dont get something about sed
If i have a text file inside contain a:a:a:a:a
sed "s/"$title:$author:$price:$qtyAvailable:$qtySold"/"$Ntitle:$author:$price:$qtyAvailable:$qtySold"/"
This work!!
but
If i have a text file inside contain Tom Tom:La La:Di Di :Do Do :De DE
It cannot work... (2 Replies)
Discussion started by: GQiang
2 Replies
3. UNIX for Dummies Questions & Answers
I was talking to a coworker and we got into a discussion about the -9. No one knew where the -9 came from and it's not in the man. I suggested that it was like counting to 10 (0-9) and you finally get to the point that that's it, the durned thing is going to die. So how did the -9 come to mean... (3 Replies)
Discussion started by: pflickner
3 Replies
4. Shell Programming and Scripting
sorry, just simple question:
how can i do this in bash>
foreach i( 1 2 3 )
sed 's/Hello/Howdy/g' test$i > test$i.new
mv test$i.new test$i
end (6 Replies)
Discussion started by: kurosaki
6 Replies
5. UNIX for Advanced & Expert Users
Hi,
I am seeing a curious issue with 'ls' command.
If I open a telnet session of my Solaris box and give "ls".
The output is in 3 columns.
a b c
d e f
g h i
j k l
However, if I give the same command after a couple of hours in the same window, it goes to 6 columns according to the... (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies
6. Linux
To correct most of the problems with this language, How do I remove the DOS and WORD stuff from it? These come from the fact that it was written on those with a Microsoft supplied platform at the writers request. (1 Reply)
Discussion started by: River Freight
1 Replies
7. UNIX for Dummies Questions & Answers
I have a website but I do not for the life of me know how to upload using unix based command lines. Can someone send me a good site that has these commands. That and I am curious to know more about command line based interfacing. :D Curious Dummy (1 Reply)
Discussion started by: highway39
1 Replies
8. UNIX for Dummies Questions & Answers
Dear All
I am curious to know, that in a system compromise, when someone has access to a box, does that individual have access to a shell on the system, i.e. the person is logging into the system using telnet or SSH to remotely access the box?? How does this individual/ hacker access the system. ... (2 Replies)
Discussion started by: skotapal
2 Replies
SDL::Video(3) User Contributed Perl Documentation SDL::Video(3)
NAME
SDL::Video - a SDL perl extension
SYNOPSIS
$video = new SDL::Video ( -name => 'pr0n.mpg' );
DESCRIPTION
"SDL::Video" adds support for MPEG video to your SDL Perl application. Videos are objects bound to surfaces, whose playback is controled
through the object's interface.
METHODS
o "SDL::Video::error()" returns any error messages associated with playback
o "SDL::Video::audio(bool)" enables or disables audio playback, (on by default)
o "SDL::Video::video(bool)" enables or disable video playback, (on by default)
o "SDL::Video::loop(bool)" enables or disable playback looping (off by default)
o "SDL::Video::volume(int)" set the volume as per the mixer volume
o "SDL::Video:display(surface)" binds the clip to a display surface
o "SDL::Video::scale([x,y]|[surface]|int)" scales the clip by either x,y factors, scales to the image dimensions, or a single scalar.
o "SDL::Video::play()" plays the video clip, call "SDL::Video::display()" before playing
o "SDL::Video::pause()" pauses video playback
o "SDL::Video::stop()" stops video playback
o "SDL::Video::rewind()" resets the clip to the beginning
o "SDL::Video::seek(offset)" seeks to a particular byte offset
o "SDL::Video::skip(time)" skips to a particular time
o "SDL::Video::region(rect)" takes a SDL::Rect and defines the display area
o "SDL::Video::frame(int)" renders a specific frame to the screen
o "SDL::Video::info()" returns a new "SDL::MPEG" object reflecting the current status
o "SDL::Video::status()" returns either SMPEG_PLAYING or SMPEG_STOPPED or SMPEG_ERROR
AUTHOR
David J. Goehrig
SEE ALSO
perl(1) SDL::Surface(3) SDL::MPEG(3)
perl v5.12.1 2010-07-05 SDL::Video(3)