02-23-2018
Quote:
Originally Posted by
tomislav91
. . .
How can i fix this . . .
If we only knew what you're up to. You read something from stdin into a variable
n but then don't use that anywhere.
And, I'm afraid having
passwd read from a pipe won't work as it is designed for interactive input.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
Discussion started by: Aashish
2 Replies
2. Shell Programming and Scripting
Hi All,
I want to execute some commands on unix machine from the mac machne. I have two options for doing so, I am confused which is the best way of doing. Here are two options.
Requirement:
Execute command on the remote server machine. Commands to be executed itself contain arguments to be... (0 Replies)
Discussion started by: Ranu
0 Replies
3. Shell Programming and Scripting
I don't know why the following shell script doesn't work. Could you please help me out?
#!/usr/bin/ksh
test="cal > /tmp/tmp.txt 2>&1"
$test
I know it will work for the following format:
#!/usr/bin/ksh
cal > /tmp/tmp.txt 2>&1
However, I need to get the command from the user in... (1 Reply)
Discussion started by: redtiger
1 Replies
4. Shell Programming and Scripting
Hi,
I am having nightmare issue-ing remote ssh command from a CGI perl script.
It just won't run on debug message: It says permission denied. Can I even do this? as the apache server running under DAEMON account probably can't execute it? Is this the case of what's going on?
Here is my... (3 Replies)
Discussion started by: Dabheeruz
3 Replies
5. Shell Programming and Scripting
Hi, could anyone please tell me how to ssh to remote host foo and execute command on it and print the result on local host?
Thanks,
Paresh (1 Reply)
Discussion started by: masaniparesh
1 Replies
6. Shell Programming and Scripting
Hi All
I have written one shell script for GPRS route add is given below named GPRSRouteSet.sh
URL="www.google.com"
VBURL="10.5.2.211"
echo "Setting route for $URL for GPRS"
URL_Address=`nslookup $URL|grep Address:|grep -v "#"|awk -F " " '{print $2}'|head -1`
echo "Executing ... (3 Replies)
Discussion started by: mnmonu
3 Replies
7. Shell Programming and Scripting
Hi all,
I am facing the following issue:
Host A should execute a remote command (say pwd) on host B2.
B2 is not directly reacheable but you have to connect from a to B1, then from B1 you can execute the command ssh user@B2 pwd.
B1 and B2 are directly connected:
A => B1 => B2
| ... (3 Replies)
Discussion started by: Evan
3 Replies
8. UNIX for Dummies Questions & Answers
ssh -q <hostname> /opt/tcs/satish/tst.ksh
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh
tst.ksh has "nohup <command> & "
when i execute below script , its throwing error as
nohup can not be found
ssh -q <anotherserver> /opt/tcs/satish/tst.ksh > log &
can someone let me... (5 Replies)
Discussion started by: only4satish
5 Replies
9. Shell Programming and Scripting
Hello,
I am running into few issues, please suggest me what I am missing.
I am running this script on a linux host.
Main idea of this script is to, login to each host via ssh and get uid of user, service user that I trying to run this script, has already deployed ssh keys and provide sudo... (8 Replies)
Discussion started by: bobby320
8 Replies
10. Shell Programming and Scripting
How should i make the following code working
#!/bin/bash
INPUTFILE="test.txt"
while read STRING; do
IP=`host -t A $STRING | awk '{print $NF}'`
HOSTNAME=`ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no $IP "hostname"`
echo $HOSTNAME > out.txt
done < $INPUTFILE
At this moment while... (3 Replies)
Discussion started by: urello
3 Replies
LEARN ABOUT OPENSOLARIS
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)