Sponsored Content
Full Discussion: Pipeing Individual Echos
Top Forums UNIX for Dummies Questions & Answers Pipeing Individual Echos Post 302398631 by mortocks on Thursday 25th of February 2010 06:16:48 AM
Old 02-25-2010
thanks guys, appreciate it. Sorry to ask this but do you mind posting a codded example? Tried did some experiments with tee but just raised more questions :-)

as an experiment, I setup a function that mimicks what my video render is doing and tried to route it too the osx "say" command which just makes the mac speak the variable

Code:
# !/bin/sh

shoutOut()
{
  echo "Line 1"
  sleep 2
  echo "Line 2"
  sleep 2
  echo "Line 3"
}

shoutOut | tee say

This did not work. Any suggestions?

Thanks guys

Last edited by Scott; 02-25-2010 at 07:29 PM.. Reason: Code tags
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multiple echos and cuts too slow

Hi guys, hopefully this hasn't been asked before - couldn't see the question anywhere. I have a large number of timestamps (hh-mm-ss-millisecond) that I need to find the difference between e.g.: 14-11-07-513 14-11-07-644 Now the script that I have just knocked up is horrifically slow,... (4 Replies)
Discussion started by: dlam
4 Replies

2. Shell Programming and Scripting

Adding the individual columns of a matrix.

I have a huge matrix file containing some 1.5 million rows and 6000 columns. The matrix looks something like this: 1 2 3 4 5 6 7 8 9 3 4 5 I want to add all the numbers in the columns of this matrix and display the result to my stdout. This means that the numbers in the first column are: ... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies

3. UNIX for Dummies Questions & Answers

Print individual rows.

Hi all, I have a file im reading with a for loop using: for i in $(cat filename) do etc. done the original file is 3 columns, this method prints it out into 3 rows, and i would like to just assign the first to rows (originally first two columns) to separate variables. What would be... (3 Replies)
Discussion started by: jgrosecl
3 Replies

4. HP-UX

Individual file size limit on HP-UX

I got a question on ulimit on HP-UX. I have a log file that gets more than 2 GB and the application crashes because it can not write to log. I browsed through the forum and found one very similar post on ulimit but that was not concluded. Did some analysis and below is some output. >getconf... (6 Replies)
Discussion started by: asutoshch
6 Replies

5. Shell Programming and Scripting

Unpack individual files from tarball

Say you don't want to unpack the whole thing, just individual files or directories within a .tgz. How to do this? (1 Reply)
Discussion started by: stevensw
1 Replies

6. Solaris

Auditing Individual Files

I have some Solaris 9 systems and I'm interested in using the "fm" audit class to track changes to sensitive files but it's too verbose for it to be auditing to that level for EVERY file, so I was wondering if there were a way of restricting the audit of those events to particular files. I... (0 Replies)
Discussion started by: thmnetwork
0 Replies

7. UNIX for Dummies Questions & Answers

Terminal telnet echos garbage

i am trying to make powerterm not echo back this charactor. ≥ When I press control-C I get it that telnet charactor/garbage echos back. how to turn off? where? what config? is there something in powerterm to switch on/off? I do not see it. Redhats offical statement is: "I... (10 Replies)
Discussion started by: olyanderson
10 Replies

8. Solaris

Individual usernames for the same login account

Hi There is an application installed on a server, that has a unique login account, but many users are using it with the same login name! How can we overcame this by creating individual accounts for the same application login account? (11 Replies)
Discussion started by: fretagi
11 Replies
pods::SDL::SMPEG(3pm)					User Contributed Perl Documentation				     pods::SDL::SMPEG(3pm)

NAME
SDL::SMPEG - a SDL perl extension CATEGORY
TODO SYNOPSIS
$video = SDL::SMPEG->new( -name => 'pr0n.mpg' ); DESCRIPTION
"SDL::SMPEG" adds support for MPEG video to your SDL Perl application. SMPEGs are objects bound to surfaces, whose playback is controlled through the object's interface. METHODS o "SDL::SMPEG::error()" returns any error messages associated with playback o "SDL::SMPEG::audio(bool)" enables or disables audio playback, (on by default) o "SDL::SMPEG::video(bool)" enables or disable video playback, (on by default) o "SDL::SMPEG::loop(bool)" enables or disable playback looping (off by default) o "SDL::SMPEG::volume(int)" set the volume as per the mixer volume o "SDL::SMPEG:display(surface)" binds the clip to a display surface o "SDL::SMPEG::scale([x,y]|[surface]|int)" scales the clip by either x,y factors, scales to the image dimensions, or a single scalar. o "SDL::SMPEG::play()" plays the video clip, call "SDL::SMPEG::display()" before playing o "SDL::SMPEG::pause()" pauses video playback o "SDL::SMPEG::stop()" stops video playback o "SDL::SMPEG::rewind()" resets the clip to the beginning o "SDL::SMPEG::seek(offset)" seeks to a particular byte offset o "SDL::SMPEG::skip(time)" skips to a particular time o "SDL::SMPEG::region(rect)" takes a SDL::Rect and defines the display area o "SDL::SMPEG::frame(int)" renders a specific frame to the screen o "SDL::SMPEG::info()" returns a new "SDL::MPEG" object reflecting the current status o "SDL::SMPEG::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.14.2 2012-05-28 pods::SDL::SMPEG(3pm)
All times are GMT -4. The time now is 05:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy