hi,
how does a program know whether some data are available from stdin?
I would like to make a program which could read its data from stdin
and _if_there_is_nothing_at_stdin_ from a file which name is given
as an argument. If there is nothing in stdin and no filename is given as
argument,... (2 Replies)
How can I access the standard-in device in HP-UX? I am trying to automate sftp on an HP-UX system. On solaris I can just do:
sftp -b /dev/fd/0 remotehost <<EOF
cd pub
ascii
get filename.txt
bye
EOF (2 Replies)
hello all,
I need to create a password change utility for a database. I need to gather at the command line the username, password and database sid. I have the program currently doing this. What I would like to do is not have the new password appear on the screen when I do my read command.... (2 Replies)
can you redirect STDIN with command arguments?
I have tried this approach:
# ./script -option <argument1> <argument2> 0<$2
# $2: ambiguous redirect
Is this possible? (4 Replies)
Hi,
Program A: uses pipe()
I am able to read the stdout of PROGAM B (stdout got through system() command) into PROGRAM A using:
* child
-> dup2(fd, STDOUT_FILENO);
-> execl("/path/PROGRAM B", "PROGRAM B", NULL);
* parent
-> char line;
-> read(fd, line, 100);
Question:
---------... (1 Reply)
Hi,
Program A: uses pipe()
I am able to read the stdout of PROGAM B (stdout got through system() command) into PROGRAM A using:
* child
-> dup2(fd, STDOUT_FILENO);
-> execl("/path/PROGRAM B", "PROGRAM B", NULL);
* parent
-> char line;
-> read(fd, line, 100);
Question:
---------... (3 Replies)
When a process fork(), the child share the same file descriptors as his father. Thus, they share the same stdin. Quick and dirty exemple below (sorry for the ugly gets() call) :
#include <stdio.h>
#include <unistd.h>
int main()
{
char buf;
if (fork()) { /*parent */
... (1 Reply)
Hi
I'm trying to do something on the bash command line that I will later put into a bash shell script.
I'm trying to take a program that reads stdin (using getline) and be able to keep it running in the background and fire "commands" to it. So what I thought I should do was to try taking... (3 Replies)
Hi,
I am working on a project where I have to generate and execute nasm code on-the-fly. I generate the code in a file program.asm and then execute it.This output is to stdout which i redirect to an output file which i read back to compare results:
system("nasm -f elf program.asm >... (5 Replies)
Well.. let's say i need to write a pretty simple script.
In my script i have 2 variables which can have value of 0 or 1.
$VERBOSE
$LOG
I need to implement these cases:
($VERBOSE = 0 && $LOG = 0) => ONLY ERROR output (STDERR to console && STDOUT to /dev/null)
($VERBOSE = 1... (5 Replies)
Discussion started by: Marmz
5 Replies
LEARN ABOUT DEBIAN
festival
FESTIVAL(1) General Commands Manual FESTIVAL(1)NAME
festival - a text-to-speech system.
SYNOPSIS
festival [options] [file0] [file1] ...
DESCRIPTION
Festival is a general purpose text-to-speech system. As well as simply rendering text as speech it can be used in an interactive command
mode for testing and developing various aspects of speech synthesis technology.
Festival has two major modes, command and tts (text-to-speech). When in command mode input (from file or interactively) is interpreted by
the command interpreter. When in tts mode input is rendered as speech. When in command mode filenames that start with a left parenthesis
are treated as literal commands and evaluated.
OPTIONS -q Load no default setup files
--datadir <string>
Set data directory pathname
--libdir <string>
Set library directory pathname
-b Run in batch mode (no interaction)
--batch Run in batch mode (no interaction)
--tts Synthesize text in files as speech no files means read from stdin (implies no interaction by default)
-i Run in interactive mode (default)
--interactive
Run in interactive mode (default)
--pipe Run in pipe mode, reading commands from stdin, but no prompt or return values are printed (default if stdin not a tty)
--language <string>
Run in named language, default is english, spanish, russian, welsh and others are available
--server
Run in server mode waiting for clients of server_port (1314)
--script
<ifile> Used in #! scripts, runs in batch mode on file and passes all other args to Scheme
--heap <int> {1000000}
Set size of Lisp heap, should not normally need to be changed from its default
-v Display version number and exit
--version
Display version number and exit
BUGS
More than you can imagine.
A manual with much detail (though not complete) is available in distributed as part of the system and is also accessible at
http://www.cstr.ed.ac.uk/projects/festival/manual/
Although we cannot guarantee the time required to fix bugs, we would appreciated it if they were reported to
festival-bug@cstr.ed.ac.uk
AUTHOR
Alan W Black, Richard Caley and Paul Taylor
(C) Centre for Speech Technology Research, 1996-1998
University of Edinburgh
80 South Bridge
Edinburgh EH1 1HN
http://www.cstr.ed.ac.uk/projects/festival.html
6th Apr 1998 FESTIVAL(1)