Re: My ip-ip.d directory not executed

1999-03-26 Thread Michael Stenner
I think it says in ip-up (the sript, not the directory) that all of the
scripts are run with minimal (or even no) environment.  So DISPLAY
probably IS set, but ip-up is run without any of these variables.

The wierdness here is not X or linux in general.  It's the way pppd and
ip-up work.

-Michael

On Wed, 24 Mar 1999, John Leget wrote:

I ran into similar problems fortunately i had had some trouble with junkbuster 
( one
way of looking at it grin) and remembered seeing the following in the
/etc/init.d/junkbuster
startup script

su nobody -c command

so i tried this

su myself -c proggy to launch

and found it complained about not knowing where the X display was
so i set DISPLAY=:0 ( in the script i set up for it ) and tried again and it 
worked
fine.

Im just wondering - wouldnt it be an idea to have the DISPLAY variable set 
when X is
launched. ( And yes i know its possible to run multiple X servers but id 
assume those
able to set that up would figure the rest out easily, me im just learning to 
crawl in
linux ;0) )

Cheers

Daniel Mashao wrote:

 On 23 Mar 1999, John Hasler wrote:

  Daniel Mashao writes:
   Is there any way to send the output of pppd to a file so I can debug what
   is happenning.
 
  Sure.  Put this in your script:
 
echo Running  /etc/ppp/running
 
  and the string 'Running' will appear in the file /etc/ppp/running if the
  script executes.
 Thanks I did all these tests and indeed the scripts are running. I still
 have to figure out how to have xnetload to load immediately after pppd
 starts. It seems to be a problem with the display settings and path.

 /--/
 Daniel J. Mashao
 Electrical Engineering  [EMAIL PROTECTED]
 University of Cape Town http://www.ee.uct.ac.za/~daniel
 Rondebosch, 7700, S. Africa (w) 27+21+650 2816  (h) 27+21+705 8469
 /--/

 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


-- 
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


  Michael Stenner   Office Phone: 919-660-2513
  Duke University, Dept. of Physics   [EMAIL PROTECTED]
  Box 90305, Durham N.C. 27708-0305


Re: My ip-ip.d directory not executed

1999-03-26 Thread John Leget
Yes ,

But i found out about needing to set the DISPLAY from a terminal when i tried 
to manually
run my script, there was no DISPLAY set at all, so i had to manually set it.

Still seems to me it might be usefull to have it when i fire up x  whatever 
guess its
juest a matter of adding it somewhere.

cheers

Michael Stenner wrote:

 I think it says in ip-up (the sript, not the directory) that all of the
 scripts are run with minimal (or even no) environment.  So DISPLAY
 probably IS set, but ip-up is run without any of these variables.

 The wierdness here is not X or linux in general.  It's the way pppd and
 ip-up work.

 -Michael

 On Wed, 24 Mar 1999, John Leget wrote:
 
 I ran into similar problems fortunately i had had some trouble with 
 junkbuster ( one
 way of looking at it grin) and remembered seeing the following in the
 /etc/init.d/junkbuster
 startup script
 
 su nobody -c command
 
 so i tried this
 
 su myself -c proggy to launch
 
 and found it complained about not knowing where the X display was
 so i set DISPLAY=:0 ( in the script i set up for it ) and tried again and 
 it worked
 fine.
 
 Im just wondering - wouldnt it be an idea to have the DISPLAY variable set 
 when X is
 launched. ( And yes i know its possible to run multiple X servers but id 
 assume those
 able to set that up would figure the rest out easily, me im just learning to 
 crawl in
 linux ;0) )
 
 Cheers
 
 Daniel Mashao wrote:
 
  On 23 Mar 1999, John Hasler wrote:
 
   Daniel Mashao writes:
Is there any way to send the output of pppd to a file so I can debug 
what
is happenning.
  
   Sure.  Put this in your script:
  
 echo Running  /etc/ppp/running
  
   and the string 'Running' will appear in the file /etc/ppp/running if the
   script executes.
  Thanks I did all these tests and indeed the scripts are running. I still
  have to figure out how to have xnetload to load immediately after pppd
  starts. It seems to be a problem with the display settings and path.
 
  /--/
  Daniel J. Mashao
  Electrical Engineering  [EMAIL PROTECTED]
  University of Cape Town http://www.ee.uct.ac.za/~daniel
  Rondebosch, 7700, S. Africa (w) 27+21+650 2816  (h) 27+21+705 8469
  /--/
 
  --
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 
 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

   Michael Stenner   Office Phone: 919-660-2513
   Duke University, Dept. of Physics   [EMAIL PROTECTED]
   Box 90305, Durham N.C. 27708-0305

 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


Re: My ip-ip.d directory not executed

1999-03-24 Thread Daniel Mashao
On 23 Mar 1999, John Hasler wrote:

 Daniel Mashao writes:
  Is there any way to send the output of pppd to a file so I can debug what
  is happenning.
 
 Sure.  Put this in your script:
 
   echo Running  /etc/ppp/running
 
 and the string 'Running' will appear in the file /etc/ppp/running if the
 script executes.
Thanks I did all these tests and indeed the scripts are running. I still
have to figure out how to have xnetload to load immediately after pppd
starts. It seems to be a problem with the display settings and path.

/--/
Daniel J. Mashao
Electrical Engineering  [EMAIL PROTECTED]
University of Cape Town http://www.ee.uct.ac.za/~daniel 
Rondebosch, 7700, S. Africa (w) 27+21+650 2816  (h) 27+21+705 8469
/--/


Re: My ip-ip.d directory not executed

1999-03-24 Thread John Leget
HI,

I ran into similar problems fortunately i had had some trouble with junkbuster 
( one
way of looking at it grin) and remembered seeing the following in the
/etc/init.d/junkbuster
startup script

su nobody -c command

so i tried this

su myself -c proggy to launch

and found it complained about not knowing where the X display was
so i set DISPLAY=:0 ( in the script i set up for it ) and tried again and it 
worked
fine.

Im just wondering - wouldnt it be an idea to have the DISPLAY variable set when 
X is
launched. ( And yes i know its possible to run multiple X servers but id assume 
those
able to set that up would figure the rest out easily, me im just learning to 
crawl in
linux ;0) )

Cheers

Daniel Mashao wrote:

 On 23 Mar 1999, John Hasler wrote:

  Daniel Mashao writes:
   Is there any way to send the output of pppd to a file so I can debug what
   is happenning.
 
  Sure.  Put this in your script:
 
echo Running  /etc/ppp/running
 
  and the string 'Running' will appear in the file /etc/ppp/running if the
  script executes.
 Thanks I did all these tests and indeed the scripts are running. I still
 have to figure out how to have xnetload to load immediately after pppd
 starts. It seems to be a problem with the display settings and path.

 /--/
 Daniel J. Mashao
 Electrical Engineering  [EMAIL PROTECTED]
 University of Cape Town http://www.ee.uct.ac.za/~daniel
 Rondebosch, 7700, S. Africa (w) 27+21+650 2816  (h) 27+21+705 8469
 /--/

 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


Re: My ip-ip.d directory not executed

1999-03-23 Thread John Hasler
Daniel Mashao writes:
 My ip-up.d directory is not executed when pppd wakes up.

Pppd runs those scripts with stdout and stderr redirected to /dev/null.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI


Re: My ip-ip.d directory not executed

1999-03-23 Thread Daniel Mashao
On 22 Mar 1999, John Hasler wrote:

 Daniel Mashao writes:
  My ip-up.d directory is not executed when pppd wakes up.
 
 Pppd runs those scripts with stdout and stderr redirected to /dev/null.
Thanks for responding. But why don't I see the programs running? I
even put in xload script that runs okay if I run ip-up script, but never
executes when pppd runs.

Is there any way to send the output of pppd to a file so I can debug what
is happenning.
/--/
Daniel J. Mashao
Electrical Engineering  [EMAIL PROTECTED]
University of Cape Town http://www.ee.uct.ac.za/~daniel 
Rondebosch, 7700, S. Africa (w) 27+21+650 2816  (h) 27+21+705 8469
/--/


Re: My ip-ip.d directory not executed

1999-03-23 Thread servis
*- On 23 Mar, Daniel Mashao wrote about Re: My ip-ip.d directory not executed
 On 22 Mar 1999, John Hasler wrote:
 
 Daniel Mashao writes:
  My ip-up.d directory is not executed when pppd wakes up.
 
 Pppd runs those scripts with stdout and stderr redirected to /dev/null.
 Thanks for responding. But why don't I see the programs running? I
 even put in xload script that runs okay if I run ip-up script, but never
 executes when pppd runs.
 
 Is there any way to send the output of pppd to a file so I can debug what
 is happenning.

Don't forget that ip-up and the files in ip-up.d are run as root. And
they are do not explicitly know anything about X display settings.  So
if you are running as a regular user in X(which you should be) and pppd
starts the xload will be run as root and will not know which DISPLAY to
go to and will probably not have the proper permissions.  Also remember
that the scripts must have executible permissions.  Also note that the
the script /etc/ppp/ip-up actually calls the command 
'run-parts /etc/ppp/ip-up.d' so ip-up must be executible as well and
must have that command in it.


-- 
Brian 
-
Never criticize anybody until you have walked a mile in their shoes,  
 because by that time you will be a mile away and have their shoes. 
   - unknown  

Mechanical Engineering[EMAIL PROTECTED]
Purdue University   http://www.ecn.purdue.edu/~servis
-


Re: My ip-ip.d directory not executed

1999-03-23 Thread John Hasler
Daniel Mashao writes:
 Is there any way to send the output of pppd to a file so I can debug what
 is happenning.

Sure.  Put this in your script:

echo Running  /etc/ppp/running

and the string 'Running' will appear in the file /etc/ppp/running if the
script executes.
-- 
John HaslerThis posting is in the public domain.
[EMAIL PROTECTED]  Do with it what you will.
Dancing Horse Hill Make money from it if you can; I don't mind.
Elmwood, Wisconsin Do not send email advertisements to this address.


Re: My ip-ip.d directory not executed

1999-03-23 Thread MallarJ
In a message dated 3/23/99 8:18:41 AM Central Standard Time, [EMAIL PROTECTED]
writes:

  Is there any way to send the output of pppd to a file so I can debug what
   is happenning.
  

the output of pppd is already stored in your /var/log/syslog.

-Jay


Re: My ip-ip.d directory not executed

1999-03-23 Thread John Hasler
Jay writes:
 the output of pppd is already stored in your /var/log/syslog.

That will not help him find if his script is running.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI


My ip-ip.d directory not executed

1999-03-22 Thread Daniel Mashao
My ip-up.d directory is not executed when pppd wakes up. How can I debug
this condition. I have tried putting in simple things like xload in the
directory but they do not get executed. I am able to execute the contents
of the directory if I run ./ip-up file in the /etc/ppp directory but not
when pppd runs. Any ideas?

/--/
Daniel J. Mashao
Electrical Engineering  [EMAIL PROTECTED]
University of Cape Town http://www.ee.uct.ac.za/~daniel 
Rondebosch, 7700, S. Africa (w) 27+21+650 2816  (h) 27+21+705 8469
/--/