- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script is not running after installing patch...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 09:20 AM
04-29-2004 09:20 AM
Yesterday we installed 2 patches on our 11i server:
PHCO_28832 cumulative sh-posix(1) patch
PHCO_29816 rc(1M) scripts cumulative patch
After installing these patches, it seems one script is not running, after executing, it gives like below error message:
/home/test/bin/fru_script.shl[331]: 008: The specified number is not valid for this command.
What might be the problem?
Thanks in advance,
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 09:27 AM
04-29-2004 09:27 AM
Re: Script is not running after installing patch...
e.g. typeset -i10 myvar=08
Now when it is updated, $myvar will be correctly interpreted.
I thing the patch release notes for the rc commands mention something similar so look at the release notes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 09:32 AM
04-29-2004 09:32 AM
Re: Script is not running after installing patch...
Please post.
Thanks.
Keep on foruming.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 10:05 AM
04-29-2004 10:05 AM
Re: Script is not running after installing patch...
line# 323 if [ -d $FRU_DIR/$FRU_DAY_DIR ]
line# 324 then RaiseError $FRU $TRACE_MSG $WARN_LEV "The directory $FRU_DAY_DIR already exist"
line# 325 cd $FRU_DIR/$FRU_DAY_DIR
line# 326 fru_num_dir_list=`ls -tla | grep "^d" | grep FRU | cut -c${OFFSET_DIR_NAME}- | sort -nr`
line# 327 current_fru_num=`echo $fru_num_dir_list | cut -f1 -d " "`
line# 328 if [ -n "$current_fru_num" ]
line# 329 then RaiseError $FRU $TRACE_MSG $WARN_LEV "The directory $current_fru_num already exist"
line# 330 #Assigns new FRU number directory
line# 331 (( current_fru_num = current_fru_num + 1 ))
line# 332 if [ $current_fru_num -gt $FRU_FILE_MAX ]
line# 333 then
line# 334 current_h_m_s=`date +%H" "%M" "%S`
line# 335 current_seg=`echo $current_h_m_s | awk '{sum=0;sum = $1*3600+$2*60+$3;printf "%d\n", sum}'`
line# 336 (( current_seg = $SECS_PER_DAY - current_seg ))
I tried with starting the script with
#!/usr/bin/sh <----1st line
export UNIX95=0 <----2nd line
Have fun,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 10:18 AM
04-29-2004 10:18 AM
Solutionecho "Current_fru_num = ${current_fru_num}"
It would also be a good idea to enclose ALL of your variables in {}'s so that $current_fru_num is expressed instead as ${current_fru_num}. This prevents possible misinterpreation when variables are jammed into one another and it represents better discipline and coding on the part of the developer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 11:28 AM
04-29-2004 11:28 AM
Re: Script is not running after installing patch...
line# 331 (( current_fru_num = current_fru_num + 1 ))
to
current_fru_num=$((current_fru_num+1))
should work .....