Irix - startup script problem


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Irix - startup script problem
# 1  
Old 11-16-2006
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Startup script problem

The attached file is a copy of my rc.local. The rc.local script appears to execute as the tightvncserver gets started. However the nodemon process does not start. The element nodemon is a symlink to nodemon and the path is correct. I have a little start script located in the... (3 Replies)
Discussion started by: barrygordon
3 Replies

2. Shell Programming and Scripting

Apache tomcat startup script not booting at startup.

I copied the script from an AskUbuntu post - #!/bin/bash ### BEGIN INIT INFO # Provides: tomcat7 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server ### END INIT INFO ... (14 Replies)
Discussion started by: Hijanoqu
14 Replies

3. Windows & DOS: Issues & Discussions

Windows vista startup problem

I all, I have a problem on my Windows Vista that began afetr the purchase of an external Hard Disk Freecom. A few days afetr the purchase I disconnected it while it was writing and, since that moment, every time I connect and disconnect it, the PC go to freeze mode for 5 minutes. The same... (2 Replies)
Discussion started by: Ubertino
2 Replies

4. Linux

startup problem

Hello: I have a little problem, I have Windows Xp in my desktop, yesterday I installed centos 5. Now when the Pc starts it goes directly to windows and I do not have the option to start centos. Xp and centos are in the same disk. (4 Replies)
Discussion started by: jcpetela
4 Replies

5. BSD

[OpenBSD] DNS startup problem

I have the DNS files set up on my OpenBSD 4.0 amd64 system however when I run named, I get the following error in my logs: Sep 23 10:43:03 grunty named: starting BIND 9.3.2-P1 Sep 23 10:43:03 grunty named: /etc/named.conf:25: change directory to '/var/named' failed: file not found Sep 23... (2 Replies)
Discussion started by: BOFH
2 Replies

6. UNIX for Advanced & Expert Users

How to diagnosis the problem on Solaris 10 for DB startup

I run Oracle 10g on Solaris 10 Sparc machine. I created a dbora file to automatically start Oracle database when UNIX system reboot. I created this dbora file under /etc/init.d, Then link it to /etc/rc0.d/K10dbora and /etc/rc2.d/S99dbora. When I reboot solaris 10 system to test this script. It... (2 Replies)
Discussion started by: duke0001
2 Replies

7. UNIX for Dummies Questions & Answers

Problem with Pax command and backups on AIX HP-UX and IRIX

can someone tell me in details what this command does: pax -rpe -f /dev/rmt0 -s:^/home:/temp/test:g The definition given in the source i got this from says that command is used to restore the files from /home to /tmp/test. now, i know there's goto be a deeper explanation than that. can... (1 Reply)
Discussion started by: TRUEST
1 Replies

8. UNIX for Dummies Questions & Answers

databse startup problem

i have oracle database startup problem. i have installed oracle8i(8.1.7) on windowsXP i have configured everything properly but i m unable to start database automatically and for this when i checked services of database it shows starting not started so i have to start it manually.Can u plz tell... (3 Replies)
Discussion started by: vandana
3 Replies

9. UNIX for Dummies Questions & Answers

problem with the startup

I have installed free bsd, and it won't reboot on it. I got win on disk 1 and on disk 2 is free bsd. Is there an optoin tha do so u could choose betwen win or free bsd? Is there an option in the installation that maybe I have missed? (4 Replies)
Discussion started by: Mr.Rudiment
4 Replies

10. UNIX for Dummies Questions & Answers

Problem with IRIX

I have a SGI sys with Irix running on it. Actually i cant see the console login . It just shows a blank blue screen . I can use the mouse though. Also i can remote login into the m/c I am new to SGI . Can anybody help (2 Replies)
Discussion started by: Jai
2 Replies
Login or Register to Ask a Question
startup(7)						 Miscellaneous Information Manual						startup(7)

NAME
startup - event signalling system startup SYNOPSIS
startup [ENV]... DESCRIPTION
The startup event is generated by the Upstart init(8) daemon after it has completed its own initialisation and is the signal that the rest of the system may be started. Typically this will involve checking and mounting the partitions and drives that form the filesystem, loading drivers for connected devices and starting the X windowing system or other login environment. In the default Upstart configuration, the primary task run on the startup event is the /etc/init/rc-sysinit.conf job responsible for gener- ating the System V compatible runlevel(7) event. See that page for a more detailed explanation of this process. Paradoxically there is currently no corresponding Upstart-native event signifying that the system is to be shutdown, only the System V com- patible runlevel 0 and runlevel 6 events provide this functionality. EXAMPLE
A service with no other dependencies run on startup might use: start on startup SEE ALSO
runlevel(7) init(8) Upstart 2009-07-09 startup(7)