- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP UX 11.11/800
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
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
09-12-2004 09:40 PM
09-12-2004 09:40 PM
I am getting an error of
CPM_Collect.sh[101]: Synatax error at line 197 : 'Elif' is not expected.
I am running as root
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2004 09:56 PM
09-12-2004 09:56 PM
Re: HP UX 11.11/800
This could be related to a single qoute, or if, then else etc. loop.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2004 09:58 PM
09-12-2004 09:58 PM
Re: HP UX 11.11/800
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2004 10:02 PM
09-12-2004 10:02 PM
Re: HP UX 11.11/800
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2004 10:03 PM
09-12-2004 10:03 PM
Re: HP UX 11.11/800
Open the script and do a search for all qoutes to see if they are ended.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 03:08 AM
09-13-2004 03:08 AM
Re: HP UX 11.11/800
# sh cpm_collect.sh
cpm_collect.sh[87]: ^M: not found.
cpm_collect.sh[93]: ^M: not found.
Warning! One or more of your selected locales are not available.
Please invoke the commands "locale" and "locale -a" to verify your
selections and the available locales.
Continuing processing using the "C" locale.
cpm_collect.sh[101]: Syntax error at line 197 : `elif' is not expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 03:27 AM
09-13-2004 03:27 AM
Re: HP UX 11.11/800
^M: not found is usally a problem, coming from file tranfert : if you receive this file in a windows box, put it to your unix server, with binary mode, with ftp, like this :
ftp
bin
put cpm_collect.sh
bye
Also, just run it adding execution right with :
chmod +x cpm_collect.sh
and run it with :
./cpm_collect.sh
Olivier.
PS : Don't forget to assing points : it is important for us to known if any response help you, or not. And you will have more chance to receive help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 03:58 AM
09-13-2004 03:58 AM
Re: HP UX 11.11/800
I think you wanted to say to him to use ASCII and not BINARY: that's because of using BIN that he gets those errors...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 05:41 AM
09-13-2004 05:41 AM
SolutionMark, you might want to try the following:
# mv CPM_collect.sh old_CPM_collect.sh
# dos2ux old_CPM_collect.sh > CPM_collect.sh
the dos2ux utility should strip off the extraneous ^m (carraige return) characters. This has worked for me in the past with other shell scripts that got modified by the PC-UX interchange.
Best Regards,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 07:10 PM
09-13-2004 07:10 PM
Re: HP UX 11.11/800
Thanks for your support.
I ran the dos2ux command and also chmod +x and it worked a treat :o). Now time to patch it !!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 07:46 PM
09-13-2004 07:46 PM
Re: HP UX 11.11/800
I just use this dos2ux on text files because, you transfer them in binary mode. I have never needed this utility, except from files I've received on CD from other people...