- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: caljd.sh question
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
06-09-2003 12:07 AM
06-09-2003 12:07 AM
kit:149>./caljd.sh
awk: syntax error near line 3
awk: bailing out near line 3
0
I also tried sh -x caljd.sh and the error is like this:
caljd.sh: syntax error at line 285: 'Y_TARGET_DAY=$' unexpected
But I can run this script in Linux and HP platform successfully. Do anyone know the reason?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 12:10 AM
06-09-2003 12:10 AM
Re: caljd.sh question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 12:21 AM
06-09-2003 12:21 AM
Re: caljd.sh question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 06:16 AM
06-09-2003 06:16 AM
Solution2) Change the "shebang" at the top of the script from #!/usr/bin/sh to #!/usr/bin/ksh.
----------------------------
Plan B. Find and download caljd.pl. The arguments are exactly the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 06:26 AM
06-09-2003 06:26 AM
Re: caljd.sh question
But if you have an earlier version of caljd.sh, you can go through the script and change all occurrences of awk to nawk.
That combined with the shell change to ksh, as Clay mentioned, should allow you to run it successfully on Sun platforms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 05:19 PM
06-09-2003 05:19 PM
Re: caljd.sh question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 05:47 PM
06-09-2003 05:47 PM
Re: caljd.sh question
Hi,
With original awk, you can:??? Think of a text file as made up of records and fields in atextual database.??? Perform arithmetic and string operations.??? Use programming constructs such as loops conditionals.??? Produce formatted reportsWith nawk, you can also:??? Define your own functions??? Execute Unix commands from a script??? Process the results of Unix commands??? Process command-line arguments more gracefully??? Work more easily with multiple input streams??? Flush open output files and pipes (latest Bell Labs awk)In addition, with GNU auk (gawk), you can:??? Use regular expressions to separate records, as well asfield??? Skip to the start of the next file, not just the next record??? Perform more powerful string sustitutions??? Retrieve and format system time values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2003 05:54 PM
06-09-2003 05:54 PM
Re: caljd.sh question
One more :-
Note that the most up to date version of Awk is called nawk. It is used in exactly the same way as awk but is a little more powerful - for example, it is capable of handling slightly larger strings as variable values - 3000 characters instead of 2500. The casual user is unlikely to be inconvenienced by such restrictions of awk. All programs in these notes should run equally well with either awk or nawk. On some machines, nawk may be the default and and be invoked with the usual awk command. You can always check this with the which awk/nawk command.