- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what was this script telling me
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
12-04-2006 01:40 PM
12-04-2006 01:40 PM
./IDT_Archive_Dailies.ksh[32]: syntax error at line 58 : `(' unexpected
what does the "[32]" mean? please note that i have already fixed the problem with the script (was actually an error at line 38 and not line 58), so my question is just what the script was telling me using "[32]" in the above output. seems 32 has nothing to do with a line number in the script...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 02:46 PM
12-04-2006 02:46 PM
SolutionI'm not really sure what the [32] means but a quick Google search turned up a hit in the O'Reilly KSH book:
scriptname[N]: lskdjfafd: not found
ERROR: command exited with status 1.
N is the number of the line in the script that contains the bad command.
-------------------------------------
So apparently the shell thought line 32 was the problem, even though it later reported line 58 and the problem turned out to be on line 38.
Go figure...
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 03:15 PM
12-04-2006 03:15 PM
Re: what was this script telling me
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 07:35 PM
12-04-2006 07:35 PM
Re: what was this script telling me
reading man ksh:
" If the line number on which the error occurred is greater
than one, the line number is also printed in brackets ([]) after the
command or function name."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2006 03:37 AM
12-05-2006 03:37 AM
Re: what was this script telling me
bill: over the years i discovered what you just detailed. i was hoping that process could be sped up if "[32]" really meant something ...seems one just is lucky if it really does point to a problematic line as with " error at line 58 "
peter: i looked at the man page and found nothing ...seems my reading skills are low (understanding better why my my kids ask my wife to read to them and not me)
bottom line seems to be that maybe using both numbers as limits (start at line 32 and stop at line 58) for searching for that script problem i had ...which did end up within those limits by being on line 38