From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: Login/Logout hook scripts on Linux
   Date: Wed, 20 Mar 2013 16:35:14 -0400
Msg# 2317
View Complete Thread (9 articles) | All Threads
Last Next
On 03/20/13 13:19, Mr. Daniel Browne wrote:
> [posted to rush.general]
> 
> Hi Greg,
> 
> No matter what I try I simply cannot get any of the rush =
> -online/-offline commands to execute when included in the linux =
> /etc/gdm/PostLogin/Default or /etc/gdm/PostSession/Default scripts.

	What's the error output say from the command?
	Paste the output here.

	If you're not sure where the error output goes when the scripts run,
	redirect the output to a log file, e.g.

rush -offline >> /tmp/test.log 2>&1

	..then logout/in to inspect the log to see what the errors are.


> They =
> will work fine if the script is executed manually from the shell but =
> when the scripts are run behind the scenes by the gnome login window. My =
> other commands in the scripts seem to work fine. Is there an environment =
> variable or some other element needed that /usr/local/rush/bin/rush =
> might not be getting?

	Other than the PATH, no, can't think of any.
	And you can avoid that with an absolute path to the command..

-- 
Greg Ercolano, erco@(email surpressed)
Seriss Corporation
Rush Render Queue, http://seriss.com/rush/

Tel: (Tel# suppressed)ext.23
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)


Last Next