Computing.Net > Forums > Solaris > su command does not work on startup

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

su command does not work on startup

Reply to Message Icon

Name: avia30
Date: December 25, 2002 at 23:00:39 Pacific
OS: Solaris 5.8
CPU/Ram: 2 X SPARC II/2 GB
Comment:

Hi,

I tried to the following startup script that launches another script using the su command. It seems like the startup script is being executed but the script that is being called in the su command does not. When I try to execute the problematic script manually it works. Probably something stupid, but I can't figure it out. Please advise.

S98rvd:
-------

#!/usr/bin/sh
echo "before rvd" >> /test.txt
su - mind -c /users/mind/startrvd

echo "after rvd" >> /test.txt

startrvd
--------

#!/usr/bin/sh
echo "about to execute tibco " $MIND_TIBCO_HOME >> /users/mind/rvd.txt
$MIND_TIBCO_HOME/bin/rvd -permanent
echo "After executing tibco " >> /users/mind/rvd.txt




Sponsored Link
Ads by Google

Response Number 1
Name: cdac
Date: January 9, 2003 at 07:57:49 Pacific
Reply:

Try putting it like

su - mind -c "/users/mind/startrvd"



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: su command does not work on startup

My Solaris Router does not work www.computing.net/answers/solaris/my-solaris-router-does-not-work/2656.html

Network card does not work 8 intel www.computing.net/answers/solaris/network-card-does-not-work-8-intel/1717.html

SU command doesn't work! www.computing.net/answers/solaris/su-command-doesnt-work/2176.html