Sponsored Content
Top Forums UNIX for Advanced & Expert Users Redirection? (I do find some of the strangest things.) Post 302989233 by RudiC on Tuesday 10th of January 2017 07:36:38 AM
Old 01-10-2017
Did you check the exit code of the command in either case?
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

i get the strangest feeling that lilo hates me.

i need to get rid of lilo's splash screen. i've heard that you can edit your /etc/lilo.conf and add this line: <b>append="splash=0"</b> anyway, i did that and i still have a splash screen. any idea why that didn't work, or what is another way to disable the splash screen? okay, -nydel (1 Reply)
Discussion started by: nydel
1 Replies

2. Programming

Complicating things?

So basically what im trying to do is ... Open file, read that file, than try to find .. We or we and replace them with I, but not replace the cases where words contain We or we, such as Went, went, etc a and replace them with the, but not replace the cases where words contain a, such as... (1 Reply)
Discussion started by: bconnor
1 Replies

3. Programming

Question about several things in C

Hey guys, first of all I'd like to say Hi to everyone. I am new here and this is my first post. I have a question about some C stuff. I am in Computer Science and I have an assignment for a UNIX Applications course. It is really complicated, however. We're using the C language for this and... (1 Reply)
Discussion started by: V4D3R
1 Replies

4. UNIX for Advanced & Expert Users

shell redirection in find

hi, i need to clear data off a DOA backup drive. i try this, but just get a file {} in . and no change on the backup drive. bash shell find /mnt/usbbackup -xdev -type f -exec echo `date` > {} \; any ideas? thanks. :) (1 Reply)
Discussion started by: drewnichols
1 Replies

5. UNIX for Dummies Questions & Answers

Just trying to find out a few things ....

Hi everyone Just a couple of quick questions if I may. Can I ask what is meant by "flavours"?? I've come across it many times in the forums and I'm guessing that it is a variery of either Linux or UNIX (I know nil about either) which has developed but not really got a clue. ... (1 Reply)
Discussion started by: Tiramisu
1 Replies

6. Shell Programming and Scripting

Several exec on find send all the output to the last redirection

Example script: find mydir -type f -exec echo {}>aaa \; -exec echo {}>bbb \;The two paths go the the bbb file, while there should be one of them on each file. How should I do it to get it working? (2 Replies)
Discussion started by: Tribe
2 Replies
PYMPG(6)																  PYMPG(6)

NAME
pykaraoke - free CDG/MIDI/MPEG karaoke player SYNOPSIS
pympg mpegfilename.mpg OVERVIEW
pykaraoke is a free karaoke player for Linux, FreeBSD and Windows. pymng is an MPEG player built using python. It was written for the PyKaraoke project but is in fact a general purpose MPEG player that could be used in other python projects requiring an MPEG player. The player uses the pygame library (www.pygame.org), and can therefore run on any operating system that runs pygame (currently Linux, Free- BSD, Windows and OSX). You can use this file as a standalone player, or together with PyKaraoke. PyKaraoke provides a graphical user interface, playlists, search- able song database etc. For those writing a media player or similar project who would like MPG support, this module has been designed to be easily incorporated into such projects and is released under the LGPL. USAGE
To start the player, pass the MPEG filename/path on the command line: python pympg.py /path/song.mpg You can also incorporate a MPG player in your own projects by importing this module. The class mpgPlayer is exported by the module. You can import and start it as follows: import pympg player = pympg.mpgPlayer("/path/song.mpg") player.Play() If you do this, you must also arrange to call pympg.manager.Poll() from time to time, at least every 100 milliseconds or so, to allow the player to do its work. The class also exports Close(), Pause(), Rewind(), GetPos(). There are two optional parameters to the initialiser, errorNotifyCallback and doneCallback: errorNotifyCallback, if provided, will be used to print out any error messages (e.g. song file not found). This allows the module to fit together well with GUI playlist managers by utilising the same GUI's error popup window mechanism (or similar). If no callback is provided, errors are printed to stdout. errorNotifyCallback should take one parameter, the error string, e.g.: def errorPopup (ErrorString): msgBox (ErrorString) doneCallback can be used to register a callback so that the player calls you back when the song is finished playing. The callback should take no parameters, e.g.: def songFinishedCallback(): msgBox ("Song is finished") To register callbacks, pass the functions in to the initialiser: mpgPlayer ("/path/song.mpg", errorPopup, songFinishedCallback) These parameters are optional and default to None. If the initialiser fails (e.g. the song file is not present), __init__ raises an exception. SEE ALSO
You can find PyKaraoke's home page at: http://www.kibosh.org/pykaraoke/ AUTHOR
PyKaraoke was written by Kelvin Lawson <kelvinl@users.sourceforge.net> and William Ferrell <willfe@gmail.com>. This manual page was written by Miriam Ruiz <little_miry@yahoo.es>, for the Debian project (but may be used by others). july 16, 2006 PYMPG(6)
All times are GMT -4. The time now is 10:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy