You can't automate user interactive user inputs. If you know the i/ps are always the same or predefined, then we can automate. Otherwise, it doesn't serve the purpose of having such a script.
Or you can pass the inputs as a parameter in the first script and accept those parameters in the later script.
Run as
You need to show how the second script is accepting the I/P parameters.
if my user has to enter the name of months to carry out a search how can I limit the input values to only the month names and nothing else?
so far my input criteria for the user is this:
i would like it so the user can only enter the months in the way i have stated. otherwise they would... (11 Replies)
Hi,
Lets say I have a script "ss" which does this
read abc
echo $abc
read pqr
echo $pqr
Now if I want to pass and argument to only "abc" how do I do it.
If I do
echo "somevalue" | ss, it does not prompt for pqr and its value comes out as blank.
Any help is appreciated
Thanks
P (6 Replies)
I need to write what I thought would be a fairly simple 2-line UNIX script. It can be written PERL, csh, ksh...or whatever is easiest.
The entire script will be:
Begin Scipt
source MySourceFile
execute MyExecutable.exe
End Script
The problem is that MySourceFile can not be... (1 Reply)
I want a script that will prompt a user to enter 10 numbers and out put them into a file. This what I have so far, but isn't working. I'm guessing it's something easy I'm not seeing. Thanks for any help.
#!/usr/bin/ksh
echo "Enter 10 numbers"
for i in 1 2 3 4 5 6 7 8 9 10
do
read .... ... (8 Replies)
Hi,
Am trying to store the user inputs into a file, but the below code will store only the first line of the values. I need to store all the user input values which may contain one or more lines. Thanks in advance.
echo "please enter file names";
read name;
echo $name>/tmp/test (11 Replies)
Hi Everyone,
1) I really cannot figure out how to pass multiple user inputs in a script. really need your help re this. below is the script.
-----------
#!/bin/sh
# script name: ask.sh
echo "Enter name: \c"
read NAME
echo "Your name is $NAME\n"
echo "Enter age: \c"
read AGE
echo... (5 Replies)
Hello,
I am new to awk and I am trying to figure out how to print an output based on user input.
For example:
ubuntu:~/scripts$ steps="step1, step2, step3"
ubuntu:~/scripts$ echo $steps
step1, step2, step3
I am playing around and I got this pattern that I want:
... (3 Replies)
Need a bash script that will ask the user: Which Files Would you like to copy?
Then the user would input the filenames (space seperated, all lowercase)
The script would then cp each file to /data/backup/ and also wc the files to std output. (to see how many lines each file has)
Should go... (5 Replies)
Hi,
I am new to bash scripting and i wanted to make a bash script that will generate a password for a user. The user must enter his/her name and the url of the site the password is used for. And the script will generate a password with those two elements in the password. So if the url is... (0 Replies)
Say I have this line:
read -p "Enter 3 numbers: " num1 num2 num3;
I want to write a while loop that repeatedly asks for input if the number of inputs entered is not equal to 3.
I don't know the correct command to find the number of inputs entered. Help, please? (4 Replies)
Discussion started by: jejemonx
4 Replies
LEARN ABOUT DEBIAN
ptainterpolate
PTAINTERPOLATE(1) LIBPANO13 TOOLS PTAINTERPOLATE(1)NAME
PTAInterpolate - Interpolate intermediate images between stereo photos.
SYNOPSIS
PTAInterpolate script_file [param2]
DESCRIPTION
PTAInterpolate Interpolate intermediate images between stereo photos.
Description: This program is an enhanced version of Helmut Dersch's original PTInterpolate program. PTInterpolate's source code was never
released, so this program was written from scratch. It is believed that this program should function as a substitute for the original
PTInterpolate program in most circumstances. Enhancements to the original PTInterpolate program include:
1. When used with the accompanying source code in the original distribution, the output is in TIFF format, not PSD (with an incorrect
extension)
2. The output files produced by this program include a numeric value indicating the amount of the interplation position between left and
right images
3. If no valid "i" lines are included in script, then this program triangulates the c lines, and ovrewrites the script file
Usage:
PTAInterpolate script.txt [param2]
Where "param2" is either an image index (0=left, 1=right) to be used when triangulating, or a filename prefix to be used when interpolat-
ing.
SEE ALSO
<http://wiki.panotools.org/>
AUTHORS
Max Lyons, January 2007. Panorama Tools was originally created by Professor Helmut Dersch.
2.9.18 2009-05-01 PTAINTERPOLATE(1)