|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi All,
I'm a newbie to this forum. Currently I'm trying to 'pkgadd' with -d option. Since the packages require interactive mode, I would like to avoid it(Automating it through a perl script) and hence trying to input the data through file. > pkgadd -d /tmp < input.txt I just found that pkgadd reads only the first line in the input file, and the rest are ignored. Could somebody there shed more light on how to give input for pkgadd. Thanks in advance. Regards Madhusudhan . |
|
#2
|
|||
|
|||
|
no need of perl
man pkgadd look at the -r option get out how to create a response-file ![]() |
|
#3
|
|||
|
|||
|
Regarding responce file
Hi buddy
I'm new to this field. I have created responce file using pkgask. but when i used it with package it again ask me about some options. pkgadd -d <pkgnm> - r <responcefile> 1>Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: here if i say "a" it again asks me 2> Do you want to continue with the installation of <Etc> [y,n,?] y I want all these to be done automatically. can any one help me Thaks in advance regards devendra |
|
#4
|
|||
|
|||
|
Hi buddy,
I got the partial answer for my above question. I think if some one needs can folow the same step. The command is as follow pkgadd -d <pkgname> -r <responcefilename> -a admin all < input.txt so it will take 1> all the packages and 2> from input.txt it will take one parameter But now the question is if there are multiple answers required then how to do? because pkgadd reads a single line. You can't give space or comma. that I tried. Please let me know if I am wrong Thanks & Regards, Devendra |
|
#5
|
|||
|
|||
|
Hi buddy
you have to modify the admin file so that u can do it noninteractively. modify that file according to ur need If a relative administration file is provided on the command line, pkgadd looks in /var/sadm/install/admin for the file name and uses it. Just have a look at file mail= instance=overwrite #ident "@(#)default 1.4 92/12/23 SMI" /* SVr4.0 1.5.2.1 */ mail= instance=unique partial=ask runlevel=ask idepend=ask rdepend=ask space=ask setuid=ask conflict=ask action=ask basedir=default My file is #ident "@(#)default 1.4 92/12/23 SMI" /* SVr4.0 1.5.2.1 */ mail= instance=overwrite partial=nocheck runlevel=nocheck idepend=nocheck rdepend=nocheck space=ask setuid=ask conflict=nocheck action=nocheck basedir=default It works cheers.......... regards Devendra |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > input file for 'pkgadd' |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|