Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Redhat / Fedora Linux Help
Reload this Page scripts? executable, background, foreground? what?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Redhat / Fedora Linux Help Help and discussion related to Redhat and Fedora Linux.

Reply
 
Thread Tools Display Modes
Old 04-27-2008   #1 (permalink)
Zebu00
Just Joined!
 
Join Date: Apr 2008
Posts: 7
scripts? executable, background, foreground? what?

Ok I've been able to make it executable (just typed chmod 755) and I made it run in the background so now the line in the script is this: /usr/bin/X11R6/clock &

But I still dont know how to make it run when xserver starts up. I thought putting it in the xinitrc.d directory automatically did that, but apparently not...any help?

Here are the steps for this simple lab (supposedly should take less than 10min):
Quote:
Create a short shell script which starts the xclock X client, but leave the command in the foreground. Store the script as the file /etc/X11/xinit/xinitrc.d/xclock.sh, remembering to make it executable.

Log out and back in again. Note that your startup process will be interrupted when xclock starts in the foreground. Because the window manager has not yet started, there is no convenient way to get rid of it. Kill your X server with a CTRL-ALT-BACKSPACE key sequence.

Fix your script by starting xclock in the background. When you restart your X server, the xclock X client should start automatically, with your X startup sequence continuing otherwise normally.
Zebu00 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 06:32 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0