i have installed vmware on a text base linux node
now i have to vmware-configure.pl to do the initial configuration
now 1st step it askes for agreeing for a " License Agreement"
for that i have to say "q" and "yes" to Accept it
i want to run a script with does these 3 steps without user intervention
1) vmware-configure.pl
2) type "q" to exit the License Agreement
3) type "yes" to Accept it and
4) Ctrl C to come out of it
can we do these with out any user intervention ??
Why not just modify the perl script?
sudo vmware-config.pl << EOF
yes
no
yes
EOF
this is doing the work for me but
how to give a ENTER in that series's as but one blank line doesnt see to work
more clearly --
it show
You must read and accept the End User License Agreement to continue.
Press enter to display it.
--More--(Next file: /usr/share/doc/vmware/EULA)
and when i give a "q" it goes off .. but i am not able to pass this via << EOF
any ideas??
try this prior to running your script.
export MORE="-e -n 10000"
beautiful tweak that worked :))
but is there now way to pass it to << ??
to make much simper
open a man page and display 2 pages by "space" and "space" and then give a "q" and come out
say
man sed << EOF
(space)
(space)
q
EOF
but not sure y it doesnt work ??
Instead of typing a "space" in your <<here doc, you could try giving it the octal value for that keystroke. That may work.