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
STARTFLUXBOX(1) 						  Fluxbox Manual						   STARTFLUXBOX(1)

NAME
startfluxbox - start a fluxbox session SYNOPSIS
startfluxbox DESCRIPTION
startfluxbox is a script which runs the file ~/.fluxbox/startup If it doesn't exist it will be generated. startfluxbox should be started from your ~/.xinitrc if you use startx, or ~/.xsession if you run a display manager, like xdm. FILES
~/.fluxbox/startup This file contains all commands that should be executed before fluxbox is started. The initial file contains helpful comments for beginners. It also starts fluxbox. EXAMPLES
The default ~/.fluxbox/startup is as follows: #!/bin/sh # # fluxbox startup-script: # # Lines starting with a '#' are ignored. # Change your keymap: xmodmap "$HOME/.Xmodmap" # Applications you want to run with fluxbox. # MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END. # # unclutter -idle 2 & # wmnd & # wmsmixer -w & # idesk & # And last but not least we start fluxbox. # Because it is the last app you have to run it with ''exec'' before it. exec fluxbox # or if you want to keep a log: # exec fluxbox -log "$fluxdir/log" If you need to start applications after fluxbox, you can change the exec fluxbox line above to something like this: exec fluxbox & fbpid=$! sleep 1 { xsetroot -cursor_name left_ptr -fg white -bg black & ipager & gkrellm2 & } & wait $fbpid So xsetroot, ipager, and gkrellm2 will all be started after fluxbox, after giving fluxbox 1 second to startup. For more details on what else you can do in this script, see sh(1), or the documentation for your shell. AUTHORS
The author of startfluxbox(1) is Han Boetes <han at fluxbox.org> This manpage was converted to asciidoc format by Jim Ramsay <i.am at jimramsay.com> for fluxbox-1.1.2 SEE ALSO
fluxbox(1) AUTHOR
Jim Ramsay <i.am@jimramsay.com> Author. startfluxbox.txt 28 October 2011 STARTFLUXBOX(1)