Operating System - HP-UX
1847986 Members
6451 Online
104022 Solutions
New Discussion

Re: pre_config_cmd loop script?

 
rleon
Regular Advisor

pre_config_cmd loop script?

Hi

I was wondering if there was a way to do a simple loop as part of the pre_config_cmd in local.config?

I have tried to do a loop but it will not run. Is there something I am missing?
I can run it in the post_config_script
But I would like to do it before any install happens.

All I want to do is
for disk in `ls /dev/rdsk`
do
something
done

Thanks
ricardo
1 REPLY 1
Scot Bean
Honored Contributor

Re: pre_config_cmd loop script?

The 'pre_config_cmd' as described in the man pages http://www.docs.hp.com/en/5992-5839/5992-5839.pdf is the most difficult execution hook to use.

You are trying to run shell commands here, and the man page states that even a shell is not yet available at this early point of the install.

See if the 'loadfile' command will help you, as described in the man page.