The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to diagnosis the problem on Solaris 10 for DB startup duke0001 UNIX for Advanced & Expert Users 2 09-10-2007 06:42 PM
Problem with Pax command and backups on AIX HP-UX and IRIX TRUEST UNIX for Dummies Questions & Answers 1 01-27-2003 09:19 AM
databse startup problem vandana UNIX for Dummies Questions & Answers 3 07-29-2002 09:40 AM
problem with the startup Mr.Rudiment UNIX for Dummies Questions & Answers 4 11-14-2001 01:51 PM
Problem with IRIX Jai UNIX for Dummies Questions & Answers 2 07-26-2001 04:07 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-16-2006
rshampshire rshampshire is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 2
Irix - startup script problem

Hi there. Sorry if this is in the wrong forum but I guess a moderator can shift it if needed.

I've set up a shell script to be run as a user that fires at startup on Solaris and RedHat by adding

su - <user> -c <Path_to_Script>/<script>.sh

And it works great. Problem is I can't get this to run on Irix.

From the investigations I've done it seems that the -c option is being run without the <user>'s environment variables being loaded, even though I'm specifying su - <user>

If I manually type it and split it into
su - <user>
./<Path_to_Script>/<script>.sh

The script works.

So, anyone have any idea why this happens and what a workaround might be?

Thanks,
- Rich.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0