Unix Technical Forum

su and the ksh .profile

This is a discussion on su and the ksh .profile within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> As root and as part of the system boot sequence I run /etc/init.d/oracle, which starts up oracle, among other ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 08:41 AM
thumper57
 
Posts: n/a
Default su and the ksh .profile

As root and as part of the system boot sequence I run
/etc/init.d/oracle, which starts up oracle, among other things. In this
script, I also execute:

su - oracle -c /var/opt/idspoll

This command executes the .profile, which I need to do, but in the
..profile there is a sequence of commands [by the DBA] for the user to
select a menu item. I want to be able to skip this part, but execute
the rest.

I also have ksh version 88 and Solaris 5.9.

I have tried the standard case $- in ... and the [ -t 0 ] and the if
tty -s, but none of those work. I have also tried the above with the
"&" after the su.

Does anyone have any ideas that will work?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:22 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com