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...
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?
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.
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.
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?
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.
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 !
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!!!"
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
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)
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.
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.
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
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.
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!
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)
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?
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!
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.)
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
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?
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();
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
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