10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi all,
First of all, sorry for the pastebin link. The code tags aren't working for me.
#!/bin/bash # while-menu-dialog: a menu driven - Pastebin.com
This is a channel "changer" shell script i'm working on. It uses dialog to display the menus.
It... (3 Replies)
Discussion started by: ignatius
3 Replies
2. Shell Programming and Scripting
I have a nice program to change the background but I want it to operate on subdirectories as well.
# Script to randomly set Background from files in a directory
while true;do
# Directory Containing Pictures
DIR="/home/pc/Pictures"
# Internal Field Separator set to newline, so file names... (4 Replies)
Discussion started by: triplemaya
4 Replies
3. Shell Programming and Scripting
Need to use dd to generate a large file from a sample file of random data. This is because I don't have /dev/urandom.
I create a named pipe then:
dd if=mynamed.fifo do=myfile.fifo bs=1024 count=1024
but when I cat a file to the fifo that's 1024 random bytes:
cat randomfile.txt >... (7 Replies)
Discussion started by: Devyn
7 Replies
4. Shell Programming and Scripting
Hello,
From the URL
https://www.unix.com/shell-programming-scripting/121303-remove-path-path-environment-variable-2.html
I got a function to remove the directories from a path. but looks like this isnt quite working.. i am also not able to post the comments in the thread as it is closed.
... (6 Replies)
Discussion started by: satishkumar432
6 Replies
5. Shell Programming and Scripting
I need a script that extracts function names from php files together with their location (path and file in which they are defined).
The php files are located in several directories under a base directory.
Ideally the output should be something like:
"Path/FileName/FunctionName" for a... (2 Replies)
Discussion started by: bamse
2 Replies
6. Shell Programming and Scripting
I have this problem using a script that uses mplayer. This is the error messages.
INFO: Mplayer Log
LOG: MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
LOG: mplayer: could not connect to socket
LOG: mplayer: No such file or directory
LOG: Failed to open LIRC support. You... (1 Reply)
Discussion started by: locoroco
1 Replies
7. Ubuntu
Hi
I am new to expect. Please if any one can help on my issue its really appreciable. here is my issue:
I want expect script for random passwords and random commands generation.
please can anyone help me?
Many Thanks in advance (0 Replies)
Discussion started by: vanid
0 Replies
8. Solaris
Hi all ...
I would like to know how to install mplayer on solaris 10
i have been trying to understand it through the docs on their website
but didnt get it that well..
So if anyone can give me step by step instructions to install it ..i would much appreciate it!!!
Thanks (3 Replies)
Discussion started by: wrapster
3 Replies
9. Shell Programming and Scripting
hi,
I need a command which picks the records randomly from the file.
For example. i am having some 10000 entries in a file and need to extract the lines randomly without repeating the numbers.
Do anybody have any idea on how to get this out. (4 Replies)
Discussion started by: prash_b
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I'm a beginner in linux :(
I wanna play divx with MPlayer. I have mdk8.1 and I can't install MPlayer because I have gcc 2.96
I need upgrade my gcc to 2.95.2 or 2.95.4
Anyone can say me how do i do to uninstall gcc-2.96 and install gcc-2.95.2. Can you give me the exactly url to... (1 Reply)
Discussion started by: mercutio
1 Replies
CDPLAY(1) General Commands Manual CDPLAY(1)
NAME
cdplay - play audio compact disks
SYNOPSIS
cdplay [ -a]|[-r]
DESCRIPTION
Cdplay is an audio-cdplayer it can be used interactively or non-interactively. With no flags cdplay is used interactively. When used inter-
actively cdplay can be either in non-playing or playing mode. In non-playing mode you can select tracks to be played. In playing mode
cdplay shows the track-time, remaining track-time, total-time and remaining total-time. Cdplay assumes the drive to be at /dev/cd0.
During non-playing mode the following commands are available:
cursor-up/down
browse through the track-list
spacebar
add track to the play-list
backspace
remove a track from the play-list
s start playing the tracks in the play-list. When the play-list is empty start playing from the current position in the track-list
until the end of the cd
p play the track on the current position in the track-list
r play all tracks in a random order (shuffle play)
e exit cdplay
During playing mode the following commands are available:
s stop playing, return to non-playing mode
spacebar
pause/resume current track
cursor-up/down
skip to next/previous track
OPTIONS
When one of these options is used cdplay does everything in the background.
-a Play all tracks, cdplay tells the drive to play all tracks and then it immediately returns to the user
-r Play all tracks in random order (shuffle play). Cdplay forks of a new process which starts up a track, during that track it sleeps.
When the track is finished it wakes up to start the next track and goes to sleep again. The parent process immediately returns to
the user.
BUGS
Cdplay does not sense if a cd has changed, so don't switch cd's. If you want to play another cd you have to insert the new cd and start
cdplay again.
AUTHOR
Michel R. Prevenier (mrpreve@cs.vu.nl)
CDPLAY(1)