[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Executing script



--- Anders Breindahl <skrewz@skrewz.dk> 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 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 link on the desktop
> execute
>  > the script?
>  > I am running kde desktop; the link dialog doesn't
> let
>  > me check the executable box; only the read and
> write
>  > boxes.
> 
> Are you sure that the script-file has the x-bit set
> for your group?
> Try making the ``link to application'' point to 
> ``sh /usr/bin/<your-script-name>''.
> 
> Try posting the output of `ls -la
> /usr/bin/<your-script-name>'.

 
This is the script:

#! /bin/bash
killall kio_audiocd
eject /dev/hdc

I didn't write it but found on the web while looking
for solution for the problem of not being able to
eject cd from the drive.  This script supposedly
corrects a serious bug in kde that prevents ejecting
cds. 
I also installed the 'eject' package that Roberto
suggested. I have the same problem with that one as
well. It works only if I login as root and navigate to
its folder; but it doesn't work as a link.
This is the output of the ls -la /usr/bin/xcd.sh
command:

-rwxr-xr-x  1 root root 47 2005-06-26 15:58
/usr/bin/xcd.sh

I tried the sh /usr/bin/xcd.sh link in the link dialog
but didn't work.

Thanks,
jozsefmak


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Reply to: