- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: su - user in 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
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-2001 12:57 PM
12-04-2001 12:57 PM
the relevant part of the script..
case $1 in
start)
if [[ -f /etc/rc.config.d/tidal ]];then
. /etc/rc.config.d/tidal
else
echo "Defaults file /etc/rc.config.d/tidal missing"
fi
if [[ $TD = 1 ]];then
echo "starting tidal server"
su - $USER -c "/opt/ocsagent/bin/express start"
fi;;
Here is the users .profile
#!/bin/ksh
export TERM=hp
export OCS=/opt/ocsagent
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 01:01 PM
12-04-2001 01:01 PM
Re: su - user in script
See what happens to that specific user. Are you prompted for the TERM type then? If so you could probably enter that info in the ocsagent .profile and that should take care of you prob.
Good Luck,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 01:03 PM
12-04-2001 01:03 PM
Re: su - user in script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 01:09 PM
12-04-2001 01:09 PM
Re: su - user in script
It should work fine in the current format without prompting. I used to have tidal express scheduler in an earlier site and remember running it in the same way .
(hope ocs is more stable now!
if so, some credit for me for reporting endless list of problems ;-) ).
-Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 01:13 PM
12-04-2001 01:13 PM
Re: su - user in script
Don't know if ocs is more stable or not yet, I just installed it as a client yesterday, but that doesn't sound good.
Thanks for the help.