Operating System - HP-UX
1830241 Members
7501 Online
109999 Solutions
New Discussion

Problem with request script in SWASK or SWINSTALL

 
Nagendar
Advisor

Problem with request script in SWASK or SWINSTALL

Hi,

To start with, I have a simple request script, which reads a variabe from user. Just to add, my depot is in defaulr dir i.e, /var/spool/sw.

I am getting the following error.

# swask -s /var/spool/sw \*

======= 12/18/02 14:38:24 MST BEGIN swask SESSION (non-interactive)

* Session started for user "root@lothar".

* Beginning Selection
* Target connection succeeded for "lothar:/".
* Source connection succeeded for "lothar:/var/spool/sw".
* Software bin has a "request" script. It will be executed and
corresponding "response" file will be generated.

Inside request script ... ... ...
Please enter the name
test
* Ask task succeeded.

ERROR: File "/var/tmp/BAAa24520/catalog/IFS/bin/response": No such
file or directory (2). Cannot copy it to file
"/var/spool/sw/catalog/IFS/bin/response".

======= 12/18/02 14:38:27 MST END swask SESSION (non-interactive)


Please help!

With best regards,
Nagendar
4 REPLIES 4
Mark Greene_1
Honored Contributor

Re: Problem with request script in SWASK or SWINSTALL

Are you running this as root? What are the permissions on the file and the directories that lead to it? Does another process have a the file locked (fuser to check that)? What are the permissions on the target directories? Are all the directories in the path there--the copy won't create them.

HTH
mark
the future will be a lot like now, only later
Pete Randall
Outstanding Contributor

Re: Problem with request script in SWASK or SWINSTALL

Does /var/tmp/BAAa24520/catalog/IFS/bin exist?

Pete

Pete
Nagendar
Advisor

Re: Problem with request script in SWASK or SWINSTALL


Mark,

I am running as a root only. So, any permission problem should not arise. There is something else going wrong. Also, response of that will be created in DEFAULT_DIR (/var/spool/sw) direwctory only. I am not doing swcopy, instead I am running swask as part of swinstall. MY depot is in DEFAULT_DIR.


Pete,

/var/tmp/BAAa24520/catalog/IFS/bin is a temporary directory, which swask itself creates while in process.


Any clues now?
Regards,
Nagendar

Re: Problem with request script in SWASK or SWINSTALL

Hi,

Do you have more than one network card? If yes, try enabling all of them.
I had to enable all of them to be able to install software on our computers, if not I got some strange errors.

Ivone.