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

Re: Executing script



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 /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.
> 

Why write your own script?  Did you try the eject package?

$ apt-cache show eject |sed -n '/^Description/,$p'
Description: ejects CDs and operates CD-Changers under Linux
 This little program will eject CD-ROMs (assuming your drive supports
 the CDROMEJECT ioctl). It also allows setting the autoeject feature,
 currently supported by a number of the Linux CD-ROM drivers. See the
 documentation in /usr/src/linux/Documentation for more information on
 the autoeject feature.
 .
 On supported ATAPI/IDE multi-disc CD-ROM changers, it allows changing
 the active disc.

-Roberto
-- 
Roberto C. Sanchez
http://familiasanchez.net/~sanchezr

Attachment: pgpq19tMUycSp.pgp
Description: PGP signature


Reply to: