FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-10-2011, 04:08 PM
 
Default using exec in a script; was "preloading a driver for an autostarted application in LXDE"

From: Liam O'Toole <liam.p.otoole@gmail.com>
Date: Wed, 09 Mar 2011 21:32:34 +0000 (UTC)
> ... script to be placed somewhere in the user's path
> such that it won't get clobbered by an official Debian package.
> /usr/local/bin is the place to be.

Right oh; this trivial script works.

peter@dalton:~$ ls -l /usr/local/bin/skype
-rwxr-xr-x 1 root staff 67 Mar 9 18:26 /usr/local/bin/skype
peter@dalton:~$ cat /usr/local/bin/skype
#!/bin/sh
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype

I didn't succeed in using "exec ..." and the script process
continues along with skype. Is there a way to preload the
module, start skype, terminate the script and leave skype
running?

Thanks, ... Peter E.


--
Telephone 1 360 450 2132.
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 171056938.37406.33133@cantor.invalid">http://lists.debian.org/171056938.37406.33133@cantor.invalid
 
Old 03-10-2011, 07:03 PM
Liam O'Toole
 
Default using exec in a script; was "preloading a driver for an autostarted application in LXDE"

On 2011-03-10, peasthope@shaw.ca <peasthope@shaw.ca> wrote:
> From: Liam O'Toole <liam.p.otoole@gmail.com>
> Date: Wed, 09 Mar 2011 21:32:34 +0000 (UTC)
>> ... script to be placed somewhere in the user's path
>> such that it won't get clobbered by an official Debian package.
>> /usr/local/bin is the place to be.
>
> Right oh; this trivial script works.
>
> peter@dalton:~$ ls -l /usr/local/bin/skype
> -rwxr-xr-x 1 root staff 67 Mar 9 18:26 /usr/local/bin/skype
> peter@dalton:~$ cat /usr/local/bin/skype
> #!/bin/sh
> LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype
>
> I didn't succeed in using "exec ..." and the script process
> continues along with skype. Is there a way to preload the
> module, start skype, terminate the script and leave skype
> running?

This should do it:

#!/bin/sh
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
exec /usr/bin/skype

--
Liam O'Toole
Cork, Ireland


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: slrninibl8.m36.liam.p.otoole@dipsy.tubbynet">http://lists.debian.org/slrninibl8.m36.liam.p.otoole@dipsy.tubbynet
 

Thread Tools




All times are GMT. The time now is 01:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org