Scripts after startx


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Scripts after startx
# 1  
Old 02-05-2009
Scripts after startx

I want to autorun a shell script which
inculde start two java programs and some shell scripts

I using fedora 9 and I had put in Personal > Sessions
/bin/sh /myscript.sh

but it got a problem when I start firefox from one of the java program, it said "Firefox is already running but not responding..."

However, if I run the script from terminal manually, it works well.

Is there any other conf file I can set so that the script can run after I login and startx into a xwindow?
# 2  
Old 02-05-2009
how do you start your program?
did you try puting your script in /etc/rc.local ?

- nilesh
# 3  
Old 02-05-2009
Quote:
Originally Posted by ynilesh
how do you start your program?
did you try puting your script in /etc/rc.local ?

- nilesh
Thanks your reply.

I tried two different code to put my script in /etc/rc.local

Here is my /etc/rc.local
Code:
#!/bin/sh
 
touch /var/locak/subsys/local
 
/bin/sh /folder/script.sh

or
Code:
#!/bin/sh
 
touch /var/locak/subsys/local
 
cd /java_folder
java java_program

Both no response.
# 4  
Old 02-05-2009
1. Did you check logs why its not running?
2. Are those script executable?
3. You can also try putting them into your bash_profile.
4. Are you using any environment variable, if yes you have to specify that path and export while running your script.

- nilesh
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Startx xclock on virtual lpar

Hello, Is there a way to run xclock or startx on LPAR, since LPAR doesn't have any console or it is connected to HMC usually the way is to export the display to some PC which has Xmanager running on it, but in my case, I want to run xmanager on the AIX Lpar and run on it the... (2 Replies)
Discussion started by: filosophizer
2 Replies

2. Ubuntu

startx not working for 8.04.4

Hi, I am running Ubuntu 8.04.4 on a Sun Blade 1000 SPARC. I installed both kubuntu and xubuntu in attempt to load a gui onto the machine. Both fail when trying to start them. When I use startx I get the following error: (EE) Failed to laod module... (0 Replies)
Discussion started by: swilso
0 Replies

3. Debian

kde, startx on debian

Hello :-)! I installed Debian (I downloaded it on may 2009 so it is new version) from CD. I run it and see only text console. I try to type "kde" or "startx" but it doens't recognize those commands. That's difficult for me to believe that Linux from CD doesn't contain graphical interface so I... (2 Replies)
Discussion started by: johnyjj2
2 Replies

4. Shell Programming and Scripting

startx and then firefox

I have edited /etc/inittab to auto login as root in level 3 and edited .bash_profile to auto start x window I would like to auto start a firefox browser after go into x window. I tried to add "firefox" in /etc/rc.d/rc.local but no effects. Anyone have suggestion? Thanks in advance. (1 Reply)
Discussion started by: uativan
1 Replies

5. UNIX Desktop Questions & Answers

KDE and startx

Hello, Ive installed freeBSD 6.0 - and the prompt part of the system works well. Ive then tried to install KDE for graphic interface to the unix system. The problem is: Whenever I run "$ startx" it starts some graphical interface, but its totally swirled, you can sense that in the background... (1 Reply)
Discussion started by: congo
1 Replies

6. UNIX for Advanced & Expert Users

startx / xterm

When I try to run startx or xterm the window opens fine, however when using keyboard incorrect chars are displayed, e.g pressing return displays 2 (0 Replies)
Discussion started by: gefa
0 Replies

7. Debian

error startx with debian

hello i have installed xfree86 with debian 2.4, but i have the message when i launch startx: XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0" after 0 requests (0 known processed) with 0 events remaining. xauth: (argv):1: bad display name "uxdev1000.lobino.fr:0"... (0 Replies)
Discussion started by: pascalbout
0 Replies

8. UNIX for Dummies Questions & Answers

Help with FreeBSD and startx.

Hello everyone. I just installed FreeBSD recently and when I type the command startx, I get the following errors: (EE) failed to load module "fbdev" (EE) <default pointer> cannot find which device to use (EE) xf860Open erial: No evice specified (EE) <default pointer> cannot open input... (3 Replies)
Discussion started by: cosmotron
3 Replies

9. UNIX for Dummies Questions & Answers

startx, xauth msg and Solaris 8

I just built my first Solaris 8 machine. I start x using this command (assume I'm in the correct directory): ./startx After I run this command, I receive this extremely frustrating message: /startx: XAUTHORITY=//.Xauthority: is not an identifier Can someone tell me what I am doing... (4 Replies)
Discussion started by: rpeteg
4 Replies

10. UNIX for Dummies Questions & Answers

StartX

Hi guys :) I'm having a slight problem. Every time I run the StartX command from my csh, it just says cannot access terminal. Can anyone tell me why this is and what it means? Thank you :) hellz. (15 Replies)
Discussion started by: hellz
15 Replies
Login or Register to Ask a Question