Re: Executing script(SOLVED)

2005-07-05 Thread j Mak
The problem is now solved. I edited the sudoers file entering my username with the following command: User_Alias FULLTIMERS = mak FULLTIMERS ALL = NOPASSWD: ALL After that, I created a link with sudo /usr/bin/xcd.sh command, and now the program ejects the cd without problem. Thanks eve

Re: Executing script

2005-07-04 Thread Douglas Ward
On Tuesday 05 July 2005 01:10, j Mak wrote: > --- Anders Breindahl <[EMAIL PROTECTED]> wrote: > > On Tuesday 05 July 2005 05:48, j Mak wrote: > > > Hi, > > > > > > I have a script for ejecting cd from the drive. > > > > > only > > > > > way I can execute the script is to login as root, > > >

Re: Executing script

2005-07-04 Thread Saverio Trioni
This is the script: #! /bin/bash killall kio_audiocd eject /dev/hdc The point is brobably on the permissions for /usr/bin/eject (or wherever it sits). Try: ls -l `which eject`(these are backticks, not apostrophes) you'll see not everyone can eject. Either set a+x permission to eject

Re: Executing script

2005-07-04 Thread j Mak
--- Anders Breindahl <[EMAIL PROTECTED]> wrote: > On Tuesday 05 July 2005 05:48, j Mak wrote: > > Hi, > > > > I have a script for ejecting cd from the drive. > The > > script resides in the /usr/bin directory. But, I > am > > unable to make the link to the script work. The > only > > way I

Re: Executing script

2005-07-04 Thread Roberto C. Sanchez
On Mon, Jul 04, 2005 at 11:48:57PM -0400, j Mak wrote: > Hi, > > I have a script for ejecting cd from the drive. The > script resides in the /usr/bin directory. But, I am > unable to make the link to the script work. The only > way I can execute the script is to login as root, > navigate to the

Re: Executing script

2005-07-04 Thread Anders Breindahl
On Tuesday 05 July 2005 05:48, j Mak wrote: > Hi, > > I have a script for ejecting cd from the drive. The > script resides in the /usr/bin directory. But, I am > unable to make the link to the script work. The only > way I can execute the script is to login as root, > navigate to the /usr/b

Executing script

2005-07-04 Thread j Mak
Hi, I have a script for ejecting cd from the drive. The script resides in the /usr/bin directory. But, I am unable to make the link to the script work. The only way I can execute the script is to login as root, navigate to the /usr/bin directory and double-clicking on it. How can i make the lin

Re: Executing script on X login

2004-09-09 Thread Erik Steffl
Stefan O'Rear wrote: On Thu, Sep 09, 2004 at 04:47:38PM -0700, Matt Perry wrote: On Thu, 9 Sep 2004, Erik Steffl wrote: problem 1 (that's just something to be careful about): if you just have the default x-window-manager it can be replaced during update and when you restart WM the X session wi

Re: Executing script on X login

2004-09-09 Thread Stefan O'Rear
On Thu, Sep 09, 2004 at 04:47:38PM -0700, Matt Perry wrote: > On Thu, 9 Sep 2004, Erik Steffl wrote: > > >problem 1 (that's just something to be careful about): if you just > > have the default x-window-manager it can be replaced during update and > > when you restart WM the X session will c

Re: Executing script on X login

2004-09-09 Thread Matt Perry
On Thu, 9 Sep 2004, Erik Steffl wrote: >problem 1 (that's just something to be careful about): if you just > have the default x-window-manager it can be replaced during update and > when you restart WM the X session will crash/end. > >problem 2 (IMO serious alternative issue): even if y

Re: Executing script on X login

2004-09-09 Thread Matt Perry
On Fri, 10 Sep 2004, Wim De Smet wrote: > I think you can use the generic 'x-window-manager' which will point to > the selected default. So you could end your .xsession with either > 'exec x-window-manager' (though the exec is probably not necessary). That solves the problem the way I wanted to.

Re: Executing script on X login

2004-09-09 Thread Erik Steffl
Wim De Smet wrote: On Thu, 9 Sep 2004 15:18:46 -0700 (PDT), Matt Perry <[EMAIL PROTECTED]> wrote: Is there a file where I can put programs to be run when I log into X via XDM? I tried .Xsession but that just dumps me back out to XDM. That's logical. The .xsession is run as a script. So it starts a

Re: Executing script on X login

2004-09-09 Thread Wim De Smet
On Thu, 9 Sep 2004 15:18:46 -0700 (PDT), Matt Perry <[EMAIL PROTECTED]> wrote: > Is there a file where I can put programs to be run when I log into X via > XDM? I tried .Xsession but that just dumps me back out to XDM. That's logical. The .xsession is run as a script. So it starts all programs and

Executing script on X login

2004-09-09 Thread Matt Perry
Is there a file where I can put programs to be run when I log into X via XDM? I tried .Xsession but that just dumps me back out to XDM. What I want is for several programs to be run when I log in such as xterm and xmodmap. I *don't* want to start a window manager from this. I want to use the w