11-27-2013
Perl script give answers by file
Hi,
I am new in perl.
I am running a perl installation script, its asking for paths and so many inputs.
Can we provide that info by any file.
so i can avoid the interactive installation.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
What is the basic syntax for a script that says
do you want to do this?
y - execute this
n - end
not y or n - end and print this
for example if I want to run this:
"Do you want to start this process?"
answer
if y,Y, or yes
then
run the following script (do I put the script with... (10 Replies)
Discussion started by: llsmr777
10 Replies
2. Shell Programming and Scripting
I have sourced a property file in my script like this to load some variables in the script
Then i am able to echo all the property file values inside script but the script is not able to recognize other unix commands
#!/bin/bash
. build.properties
mkdir build
i am getting error ... (3 Replies)
Discussion started by: codeman007
3 Replies
3. Shell Programming and Scripting
Hi,
I have a perl script which prints me the epoch value of a specific date and time given.Now I want to proceed to a next step ie i want to give the input at the time of execution.
I have to initialise the date and time values in the script before executing it.But now i want to give the date... (3 Replies)
Discussion started by: jyothi_wipro
3 Replies
4. Solaris
I was not able to get answers for these interview questions. It will be appreciable and useful if any one answers this questions. (5 Replies)
Discussion started by: Sesha
5 Replies
5. Shell Programming and Scripting
How can i print the output of a perl script on a unix console and redirect the same in a log file under same directory simultaneously ?
Like in Shell script, we use tee, is there anything in Perl or any other option ? (2 Replies)
Discussion started by: butterfly20
2 Replies
6. Shell Programming and Scripting
Hi,
I have a script that calles some other scripts. Those scripts are expecting some inputs.
Right no I am typing manually. But now the number of questions from other scripts are too much and I want to give asnwers autimatically.
example.
Other scripts gives me 2 options
1) joom... (2 Replies)
Discussion started by: microsim
2 Replies
7. Shell Programming and Scripting
I have a text file in this format
Some lines....
Question no: 1
The question?
A. Answer 1
B. Answer 2
C. Answer 3
D. Answer 4
Answer:B
Some lines....
Question no: 2
The question? (choose 2) (10 Replies)
Discussion started by: zorrox
10 Replies
8. Shell Programming and Scripting
Hello everybody,
I use `case' quite a lot but , excellent as it is , it only gives one
final result ; can anyone suggest a way whereas , say long
lists of choices are given and I , or a user could select either one
two or any number of results to be echoed .
many thanks in... (3 Replies)
Discussion started by: V686
3 Replies
9. UNIX for Advanced & Expert Users
I have a file size is around 24 G with 14 columns, delimiter with "|"
My requirement- can anyone provide me the fastest and best to get the below results
Number of records of the file
First column and second Column- Unique counts
Thanks for your time
Karti
------ Post updated at... (3 Replies)
Discussion started by: kartikirans
3 Replies
LEARN ABOUT DEBIAN
perlivp
PERLIVP(1) Perl Programmers Reference Guide PERLIVP(1)
NAME
perlivp - Perl Installation Verification Procedure
SYNOPSIS
perlivp [-a] [-p] [-v] [-h]
DESCRIPTION
The perlivp program is set up at Perl source code build time to test the Perl version it was built under. It can be used after running:
make install
(or your platform's equivalent procedure) to verify that perl and its libraries have been installed correctly. A correct installation is
verified by output that looks like:
ok 1
ok 2
etc.
OPTIONS
-h help
Prints out a brief help message.
-a run all tests
Normally tests for optional features are skipped. With -a all tests are executed.
-p print preface
Gives a description of each test prior to performing it.
-v verbose
Gives more detailed information about each test, after it has been performed. Note that any failed tests ought to print out some
extra information whether or not -v is thrown.
DIAGNOSTICS
o print "# Perl binary `$perlpath' does not appear executable.
";
Likely to occur for a perl binary that was not properly installed. Correct by conducting a proper installation.
o print "# Perl version `$]' installed, expected $ivp_VERSION.
";
Likely to occur for a perl that was not properly installed. Correct by conducting a proper installation.
o print "# Perl @INC directory `$_' does not appear to exist.
";
Likely to occur for a perl library tree that was not properly installed. Correct by conducting a proper installation.
o print "# Needed module `$_' does not appear to be properly installed.
";
One of the two modules that is used by perlivp was not present in the installation. This is a serious error since it adversely affects
perlivp's ability to function. You may be able to correct this by performing a proper perl installation.
o print "# Required module `$_' does not appear to be properly installed.
";
An attempt to "eval "require $module"" failed, even though the list of extensions indicated that it should succeed. Correct by
conducting a proper installation.
o print "# Unnecessary module `bLuRfle' appears to be installed.
";
This test not coming out ok could indicate that you have in fact installed a bLuRfle.pm module or that the "eval " require
"$module_name.pm"; "" test may give misleading results with your installation of perl. If yours is the latter case then please let
the author know.
o print "# file",+($#missing == 0) ? '' : 's'," missing from installation:
";
One or more files turned up missing according to a run of "ExtUtils::Installed -> validate()" over your installation. Correct by
conducting a proper installation.
o print "# Perl header `$_' does not appear to be properly installed.
";
Correct by running h2ph over your system's C header files. If necessary, edit the resulting *.ph files to eliminate perl syntax
errors.
For further information on how to conduct a proper installation consult the INSTALL file that comes with the perl source and the README
file for your platform.
AUTHOR
Peter Prymmer
perl v5.14.2 2014-09-30 PERLIVP(1)