LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-11-2007, 03:59 PM   #1
lord_darkhelmet
LQ Newbie
 
Registered: Oct 2005
Posts: 12

Rep: Reputation: 0
run script from irexec


I built a mythtv pvr using fedora 7 and I am trying to get a script to execute from a button press on the remote control. Lirc and irexec are working properly from what I can tell. the remote works fine and the script to start and stop mythfrontend from the remote works. Problem is the other script I wish to run needs root privileges (i want to mount a remote filesystem with a button press). The script to check the if the remote machine is running and mount the filesystem was created as root and placed in a dir which is accessible by everyone. I added the line to the sudoers file to allow execution as root without a password - "mythtv ALL=NOPASSWD:/scripts/thescript.sh"

When I type sudo /scripts/thescript.sh as mythtv user from a shell, it executes and mounts the filessystem as desired. Now when I try to launch it from irexec, nothing happens. The command line in .lircrc is

# Mount movie drive on remote box
begin
prog = irexec
button = Videos
repeat = 3
config = sudo /scripts/thescript.sh
end

I have also tried creating an alias for the command (which works from a shell) but still does not function from irexec. No errors are being logged anywhere to track down why. Irexec is started in the background after mythtv logs on and shows as owned by mythtv from a ps command. Have I missed something when trying to set this up ??
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is a script, run at boot time from init.d, run with root authority? tmbrwolf53 Linux - Server 2 03-31-2007 08:15 PM
Lirc problem, irexec won't start Rajahuroman Linux - Hardware 1 08-14-2004 07:00 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 09:34 AM
irexec problem vijayaramanl Linux - Newbie 1 10-26-2003 08:10 PM
LIRC-problem with irexec! radhapriya Programming 0 06-08-2003 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration