LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2003, 07:29 AM   #16
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30

I've come a little bit further...

When I place the (above mentioned) script "xconnect" in the rc.local, it starts correctly, but it never "ends".. Therefor the rc.local waits until the script exits but this never happens. Putting Exit 0 on the last line didn't do the trick either.

I googled around a bit, and found that the script should run as a system-process or daemon..

But googling some more on how to do that, did not result in anything...

Does anyone have a clue on how to do that? (OR in another way accomplish the "perfect world" ?
 
Old 06-04-2003, 09:02 AM   #17
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I haven't had a chance to look yet but have you considered/tried using /etc/inittab
 
Old 06-10-2003, 09:46 AM   #18
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Original Poster
Rep: Reputation: 30
david, thanks!

I figured it out. So just for anyone's info:

Since I run gdm as default display manager, I edited /etc/X11/gdm/gdm.conf
and added on the last line:

1=/etc/X11/xconnect

now i created a little script called xconnect, which first checks if the server I want to connect to is available, and if that is the case, it runs X -query 1.2.3.4

(See earlier in this thread)

When started from gdm, it starts as a process, so it generates no output, except in the case of errors, but then the errors go into the correct log....

For all who helped me with this one: THanks!!!!!!
 
Old 06-10-2003, 09:54 AM   #19
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Well done - I'm sure others will find this thread useful in the future.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto: crossover connection between two linux machines? anGeR Linux - Networking 18 07-23-2013 11:23 PM
XP machine cannot find Linux machines moonmoth Linux - Networking 1 07-31-2005 01:26 PM
browsing windows machines in linux machine SSENT12 Linux - Networking 8 07-21-2003 09:04 PM
Multiple Linux Machines using sendmail... needamiracle Linux - General 13 08-28-2002 02:38 PM
How to view NT machines on Linux machine? LenkaNguyen Linux - Networking 2 02-01-2002 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration