I once made bash script to start/kill a program.
Search thru the archives, and you will find the script. If they are=20
unavailable, mail to my privatly. You may alos look into my page:
http://dgi_il.tripod.com/linux
- diego
=D7=91=D7=99=D7=95=D7=9D =D7=A9=D7=9C=D7=99=D7=A9=D7=99 04 =D7=9E=D7=A8=D7=
=A5 2003, 00:37, Lucas Fisher =D7=9B=D7=AA=D7=91:
> I have no idea if this will work, but you might try it. We have irexec
> start off in the 'irexec mode'. When in 'irexec mode' irexec will rece=
ive
> a command to start xine and irexec will enter 'xine mode'. Xine will
> automatically start in 'xine mode'. When you quit xine, the irexec comm=
and
> that originally started xine will not be run because irexec is in 'xine
> mode'. Instead, the entries in the 'xine mode' will be run. The first e=
ntry
> quits xine. The second entry puts irexec back into 'irexec mode' so th=
e
> next time you press ON_OFF it will start xine again. I've never actua=
lly
> tried this, though.
>
> This is really very clumsy. It would be nice if there was a toggle fea=
ture
> in lirc that solved this problem.
>
> begin irexec
> begin # irexec start xine command
> =09remote =3D Sony_DVD
> prog =3D irexec
> button =3D ON_OFF
> config =3D xine --auto-play=3Dd
> mode =3D xine
> # flags =3D once
> end
> end irexec
>
> begin xine
> begin
> =09remote =3D Sony_DVD
> =09button =3D ON_OFF
> =09prog =3D xine
> =09repeat =3D 0
> =09config =3D Quit
> end
> begin
> =09remote =3D Sony_DVD
> =09button =3D ON_OFF
> =09prog =3D irexec
> =09mode =3D irexec
> end
> end xine
>
> On Monday 03 March 2003 00:56, Adam Klein wrote:
> > Well, I got the xine-ui to work with LIRC. However, I have a power
> > button that I would like to toggle between on and off. In my .lircrc
> > file i have:
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The debu=
gger
> for complex code. Debugging C/C++ programs can leave you feeling lost a=
nd
> disoriented. TotalView can help you find your way. Available on major U=
NIX
> and Linux platforms. Try it free. http://www.etnus.com
|