Software :: Irexec Not Executing Commands
May 22, 2011
I have setup lirc on my htpc and it works perfectly, but I am trying to use irexec to execute commands from my remote controller, and this does not work.
Basically, I loosely based my setup on this thread at the XBMC forums (starting at step 3 because lirc is configured and runs the Slackware way !): [URL]
The thread on XBMC's forum uses irexec and irxevent to execute commands. I am not 100% sure why irxevent is used but I am interested to know why and what it really does...
In the meantime my .lircrc file looks like:
Code:
# Start XBMC
begin
remote = harmony2
prog = irexec
[Code]....
but irxevent wouldnt start normally. My understanding is that irxevent uses the display of the parent owner (in my case root since it is called from rc.local) so I tried to start it as normal user and it worked.
So on top of my problem executing commands with irexec, I would like to know how to execute a process as a different user so I can have irxevent started as a normal user by the system at boot time?
View 1 Replies
ADVERTISEMENT
Aug 13, 2010
I have a USB modem on a Debian install that I want to be able to use AT commands to diagnose, specifically for obtaining signal strength (RSSI). I know the command for this is AT+CSQ but I cannot seem to get the interface for issuing AT commands to work.
The modem is using /dev/ttyACM0 and when I try to use minicom, I type in AT commands and nothing is echoed to the screen (Yes, echo is turned on). Maybe I just don't know how to use minicom correctly.
View 9 Replies
View Related
Apr 13, 2010
i just want to know whether we can execute the commands in invisible mode in linux. i.e.the command we typed must be executed but should not be visible.is it possible.
if not,then how the password we are typing is not visible in linux,while creating or entering password for users.
View 12 Replies
View Related
Jul 8, 2010
For routine tasks i have to execute commands on machines running both winxp and linux. I usually do it via telnet. But the process is very manual as i have to authenticate for each machine then specify the command.
Is there any way that i could automate this job using a script or so?
View 10 Replies
View Related
Feb 5, 2010
I made a small script to passwordless login to server with sshgnome-terminal --command "ssh myserver"I can login but i want to execute a command, lets say a "ls".So when i doubleclick the script it should login (which works) and gives me a listing (ls) on that server.gnome-terminal --command "ssh myserver" ---> and then execute ls on that server.
View 1 Replies
View Related
May 8, 2009
wanted to know if i can execute commands on linux console through a web page and redirect it back to my web page !For example :if i send a query "ls"it should execute this command on my linux console and also redirect the list of the files to the web page from which i give the command !
View 8 Replies
View Related
Oct 27, 2010
I have issues with with my USB remote (ATI/NVidia/X10). irw shows correct codes while pressing buttons, but irexec doesn't execute commands from ~/.lircrc file.
I have defined simple .lircrc with following code:
Code:
begin
prog = irexec
button = World
config = echo "Hello world!!!"
[Code]....
View 2 Replies
View Related
Sep 1, 2011
I am a xfce user. I have a list of wallpapers and I wanted to change them every 5 minutes Initially I was using a simple command in crontab entry to change it, Quote: */5 * * * * xfdesktop --reload it was working but it would crash xfdesktop process after few changes and the screen would be all grey. To solve this issues I wrote a simple script which would check if xfdesktop is alive and if yes it would call xfdesktop --reload else start xfdesktop I called this script idesktop & its path is ~/.bin/idesktop
[Code]....
View 8 Replies
View Related
Mar 3, 2011
Why is the timer not executing?
Code: #include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <time.h>
#include <pthread.h>
void func(union sigval sv)
[Code]....
View 1 Replies
View Related
Oct 26, 2010
I successfully installed and validate ns-allinone-2.34 network simulator on ubuntu-9.10. I then tried to run simple tcl code and ended up on the following error. I couldn't move ahead from there. What should I do to make 'nam(version 1.14)' work on my ubuntu 9.10?
ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"
Here is the code I tried to run (for reference):
#Create a simulator object
set ns [new Simulator]
#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red
#Open the NAM trace file
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a 'finish' procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the NAM trace file
close $nf
#Execute NAM on the trace file
exec nam out.nam &
exit 0
} .....
By the way I googled and got some suggestions like: adding 'nam' directory to environment. I did this as follow but it didn't work. I added:
export PATH=$PATH:/home/elias/ns-allinone-2.34/nam-1.14
to /etc/profile (>sudo gedit /etc/profile)
View 1 Replies
View Related
Apr 18, 2011
i have many text files in my directory and when i click on them to open them os treat it as a runnable file any says display or run or run in terminal ... i want to pick up recursively the tick of "Allow executing file as program" for all files.
View 2 Replies
View Related
Jan 14, 2010
Is [URL]... down? I try to add the repository:
sudo add-apt-repository ppaorg-edgers/ppa
and I get this error:
[code]...
View 5 Replies
View Related
May 11, 2010
I cannot seem to find what I need to in either these forums, Ubuntu help, or various Man pages.Issue:When I insert a CD it automounts correctly, but I cannot Use the "Open with Wine" option (even after configuring wine to recognize the executable) due to a "trust" issue within Ubuntu. I have learned that this "trust" is simply the executable bit, but I obviously cannot change that bit on a read only medium. he software requires the CD at both install and run time, so I cannot use a separately mounted ISO.Somewhere there must be a setting where I can turn off the "require trust flag" which I assume must exist.
View 5 Replies
View Related
May 20, 2010
I just closed my terminal after checkin out byobu . Now when i click terminal , nothing happens . how can i get back my terminal ???
View 1 Replies
View Related
Jul 5, 2010
using ubuntu-10.04/gnome
i have my printer and localhost startup written in rc.local but it does not execute on boot/reboot
that is the report i could make (yet learning about how to use linux)
Code:
r@r-desktop:~$ ls /etc/rc.local -l
-rwxr-xr-x 1 root root 540 2010-07-05 14:26 /etc/rc.local
r@r-desktop:~$ cat /etc/rc.local
#!/bin/sh -e
[Code].....
View 4 Replies
View Related
Sep 4, 2010
After downloading any program thats in ubuntu or uses wine to run before i can run it i've got to allow it to execute, is there a workaround for this? Im using 10.04 ubuntu desktop
View 1 Replies
View Related
Oct 26, 2010
Code:
ryan@TehLaptop:~$ uname -a
Linux TehLaptop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux
ryan@TehLaptop:~$ lsb_release -a
[Code].....
I have it in my system -> preferences -> startup applications as the command "/etc/init.d/fixkeys" however it is not being executed at startup (I have to manually run the script every time I login). If I manually run it, it works perfectly. I have tried moving it to a directory in my home folder but that did not solve anything.
View 9 Replies
View Related
Apr 22, 2011
On the `Install Properties` Menu , I am not allowed to check the: Allow executing file as program...
View 2 Replies
View Related
Apr 30, 2011
I installed wine in the new Ubuntu 11, but when i right click and go open with wine it says that its not marked as executable! then i went right click and properties and under the permissions i clicked "Allow executing file" but it keeps unchecking!
View 9 Replies
View Related
Aug 6, 2011
Is there any way to map a shell script to run when you press a certain set of keys? For instance, I may want to execute the following by pressing CTRL+ALT+R (if that key combination is not already taken)
Code:
compiz --replace --loose-binding ccp
Or perhaps I want to open the System Monitor by pressing CTRL+ALT+DEL (a la Windows)
View 2 Replies
View Related
Oct 1, 2009
I am adding the following scripts to cron via crontab -e (as user)
Quote:
The first one is to record tv. I've added dev/null 2>&1 at the end. No too clear why but without it, it records only a few seconds.
The second script is (as you should already noticed) to turn off my computer at 6:25 am. It doesn't work (with or without dev/null 2>&1). I am surely forgetting something important. Could you please tell me what is it?
View 6 Replies
View Related
Jan 14, 2010
My present working is
Code:
linux:/home/anisha/downloads/mapnik-0.6.1/demo/c++ #
Now I want to run "python scons/scons.py" located in
Code:
linux:/home/anisha/downloads/mapnik-0.6.1/ #
I tried
Code:
../../python scons/scons.py
From the above stated PWD but it resulted in the following:
Code:
bash: ../../python: No such file or directory
What is the way to execute a file of some other directory from the PWD!
View 14 Replies
View Related
Jun 16, 2011
Running following script for checking root ssh login status.
Code:
Flag=`cat /etc/ssh/sshd_config | grep "^PermitRootLogin"`
if [ -z "$Flag" ]
then
[Code].....
View 1 Replies
View Related
Jul 15, 2010
Code:
#!/usr/bin/awk -f
BEGIN{ FS=":"}
{
"groups "$1 | getline grps
[code]....
View 5 Replies
View Related
Aug 6, 2010
I have a some c source code files that i have to copy to linux machine from a windows machine over a network. This source code folder has to be copied into a particular directory structure in the linux system at the other end. After copying the file into the appropriate folder in the linux server i have to instruct the linux machine to make(using the make file that is there with the c files) this source code from the windows machine. Does anyone have any idea in regard to how this can be implemented?? i am trying to have a gui client that has the above mentioned options(copying and inserting the c files into the appropriate directory and then for making the files and getting the executable.)
View 3 Replies
View Related
Feb 23, 2011
build a Linux environment in which only "signed" processes are allowed to run. When I say signed I don't mean a VeriSign etc. signature like you know it from Windows, but I mean signed by myself. I.e. I choose the software allowed to run, sign it, and then want to deny any other processes to run.If it is somehow possible I'd like to extend this even to scripts and the kernel (i.e. no unsigned modules can be loaded).Does anyone have a good idea how to solve this problem?The bad thing is: I'm pretty fine with coding stuff myself in C, but have absolutely 0 experience or knowledge in kernel (module)-programming.Any tipps, links, literatureOne approach I came up with (just a rough idea at the moment):Linux starts new processes with a fork-and-exec-combination. I therefore wonder if it is possible to change exec() in such a way that it will only execute signed programs
View 5 Replies
View Related
Jul 9, 2010
hi! everyone does anybody experience this? i have ubuntu server, php5, apache2. every time i visit my website the script is not executed by my apache instead it will downloading my script with application/x-httpd-php file type. how can i fix this?
View 5 Replies
View Related
Aug 24, 2010
what we are trying to do is, to let the customer click a button in the web browser, and then the web server to call a shell script to do the work. The output from the stdout && stderr of the script should be displayed in the web browser once finished or timeout, along with the exit code of the script.
The shell script is however not on the web server, but on another app server. So to call this script from the web server as the identity 'tomcat':
Code:
$ sh appuser@app-server:$appbin/app-script
The .ssh/id_rsa.pub thing is done, and we have no problem doing this in the command line so far.
Our loaded ex-colleage has left us the webpages (jsp) with code like these:
Code:
<%@ include file="jsp_functions.jsp" %>
<%
String cmd = "sh $appbin/app-script";
ExecResult r = new ExecResult();
[Code].....
View 6 Replies
View Related
Jun 2, 2010
I'm trying to add several cron jobs. I have a folder (/etc/cron.myapp) with several subfolders in it (30minute, 3minute, daily, hourly). Each of these folders contains a script.Runnng/usr/bin/run-parts /etc/cron.myapp/3minute/will execute the contents of that folder.I have tried adding the following entries to /etc/crontab with no luck, and nothing is showing up in /var/log/cron
*/3 * * * * /usr/bin/run-parts /etc/cron.myapp/3minute/
*/3 * * * * /usr/bin/run-parts /etc/cron.myapp/3minute
*/3 * * * * root /usr/bin/run-parts /etc/cron.myapp/3minute/
[code]....
View 3 Replies
View Related
Jul 21, 2010
I have installed Centos 5 for Oracle on my PC. I observe that everytime I have to execute .bash_profile. Otherwise I get command not found message.How to change this behaviour so that it executes automatically everytime I open a new terminal or a tab.The bash_profile is as follows. I notice that the same entry is in another Centos 5 installation in another PC, But I don't have to executeeverytime the bash_profile .
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
[code]....
View 1 Replies
View Related