UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old July 27th, 2004, 06:12 PM
madshell madshell is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 madshell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation input file for 'pkgadd'

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 .

Reply With Quote
  #2  
Old July 27th, 2004, 06:29 PM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
no need of perl
man pkgadd
look at the -r option
get out how to create a response-file

Reply With Quote
  #3  
Old October 13th, 2004, 02:04 AM
devendra_joshi devendra_joshi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Pune
Posts: 3 devendra_joshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old October 13th, 2004, 08:48 AM
devendra_joshi devendra_joshi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Pune
Posts: 3 devendra_joshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face I got the partial answer

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

Reply With Quote
  #5  
Old October 13th, 2004, 09:22 AM
devendra_joshi devendra_joshi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Pune
Posts: 3 devendra_joshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile Here is the full answer

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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > input file for 'pkgadd'


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway