OK, just as concept:
The base platform is Suse Enterprise server 11.1
I have a binary file to install; to install it, I need input some value such as ip address, cert location and so on.
Now what I want to do is to write a perl program to gather all input information first and then generate a script to guide the binary file install unattended.
Can it be done? I'm a fresh Perl learner.
Thanks.
The easiest way to get paramters via Console, is to use the
Getopt
Module. You can find further informations about that here:For example:
Then you can call your script (inside your shell) with:
Getopt
parses the command line from@ARGV
, recognizing and removing specified options and their possible values.