- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need help with Startup csh Script
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
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
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
тАО08-11-2000 11:26 AM
тАО08-11-2000 11:26 AM
Need help with Startup csh Script
The following script is in my /sbin/init.d directory. And I have a soft link in /sbin/rc3.d.
Am I missing something? How can a csh script be executed during startup? The /etc/rc.log file doe not indicate an error. Yet lmgrd is not running.
#!/bin/csh
PATH=/usr/sbin:/usr/bin:/sbin
mode=$1
case $mode in
'start_msg')
echo "Starting Flotherm License"
;;
'stop_msg')
echo "Stopping Flotherm License"
;;
'start')
source /flov20/flov22/flomerics/flotherm22/HP-UX/bin/setup
setenv DISPLAY local:0.0
/flov20/flov22/flomerics/flotherm22/HP-UX/bin/startFLEX bisher2
;;
'stop')
/flov20/flov22/flomerics/Flexlm61/HP-UX/lmutil lmdown
;;
esac
exit 0
Thanks in advance for any help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2000 11:42 AM
тАО08-11-2000 11:42 AM
Re: Need help with Startup csh Script
If you have /etc/shells then make sure /usr/bin/csh an entry therein.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2000 11:46 AM
тАО08-11-2000 11:46 AM
Re: Need help with Startup csh Script
i've put you the (so i hope) correct script at the attachment.
Regards
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2000 11:54 AM
тАО08-11-2000 11:54 AM
Re: Need help with Startup csh Script
I'm curious. Why are you using csh?
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2000 12:02 PM
тАО08-11-2000 12:02 PM
Re: Need help with Startup csh Script
Thanks!!! I'll give this a try. However, I was just informed I cannot interrupt a solve that is currently running on that system. It may be early next week, but I will provide feedback after I try it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2000 12:02 PM
тАО08-11-2000 12:02 PM
Re: Need help with Startup csh Script
Flomerics (the software vendor) has told me that I must start the license from the csh. Also, I must source the setup file for all the environment variables. But yes, I was also thinking it could be done in the ksh like my other flex licenses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2000 12:04 PM
тАО08-11-2000 12:04 PM
Re: Need help with Startup csh Script
Ah, I scanned right over that in the script. Now I see why (ugh!). Thanks for the response back.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2000 01:10 PM
тАО08-11-2000 01:10 PM
Re: Need help with Startup csh Script
I was able to test and Flexlm did not start.
here is the message from /etc/rc.log:
Output from "/sbin/rc3.d/S999flotherm start":
----------------------------
mode=start: Command not found.
mode: Undefined variable.
"/sbin/rc3.d/S999flotherm start" FAILED
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2000 02:14 PM
тАО08-11-2000 02:14 PM
Re: Need help with Startup csh Script
In Andreas' script, change "mode=$1" to "set mode=$1".
I think the script should then work as he intended.
...JRF...