Ubuntu :: Auto Execute Program After Booting?
May 2, 2011I would to start my computer and right after Linux finishes booting, a terminal automatically is opened and a certain program is started.
View 9 RepliesI would to start my computer and right after Linux finishes booting, a terminal automatically is opened and a certain program is started.
View 9 RepliesI have problems to get it work. i have tried to use pm-utils, but it does nothing.
What is need is to kill application, when pc is going into suspend to ram and run that application again on wake. It's a graphical application.
I have bought a cepstral Text to speech voice, but it is only usable from the command line. I want to be able to copy text from firefox and execute it automatically in the command line. Is there a way I can do that?
View 9 Replies View RelatedI have a file with two fields of numbers that I want to use as input for another program.
Code:
The above code does not work, as I think it would take the whole first and second fields as the input for one particular instance of the program 'inputbashangle'. What I want is to get the first two numbers from the first line of the file 'outfailtest', execute 'inputbashangle' with them, then move on to the first two numbers of the second line for all the lines of 'outfailtest'.
Current when my NTFS external drive is auto mounted, I can't run any executables from it.
If I unmount it and then manually do:
sudo mkdir /media/portable
sudo ntfs-3g /dev/sdc1 /media/portable
it works fine. Is there a way to make the auto-mount have "full" access so I can run applications from it?
I'm trying to download / execute the Centos 5 64bit auto installer: [URL] Once obtained, how do I run that script?
root@server [~]# wget http://download1.parallels.com/SiteBuilder/4.5.0/autoinstaller/parallels_installer_v3.3.2_build080710.09_os_CentOS_5_x86_64
--12:39:13-- http://download1.parallels.com/SiteBuilder/4.5.0/autoinstaller/parallels_installer_v3.3.2_build080710.09_os_CentOS_5_x86_64
[Code]....
I was wondering if it was possible to execute a program from RAM, like having the file data in a bash script variable and then running it.
Something like this:
ls=`cat ls`
$ls
So is it possible to run a program without touching the hard disk and without creating tmpfs or ramfs (it would need to be standard user privileges).
Following is the IDL program found on the internet but i dont know how to compile and execute (even dont know can it be done under linux).
Code:
I am currently trying to set up a media PC running Ubuntu in my living room..I plan to be using XMBC to play my music and videos using a Xbox 360 joypad. I have managed to get 'qjoypad' working so on the desktop the controller controls the mouse, I have also made a little script so that when XMBC opens, 'qjoypad' changes its key mappings to a different profile. However when I exit XMBC, I would like it to return to the default profile, is there any way of doing this?
View 1 Replies View RelatedI would like that my java program continues executing when I close the ssh connection, how can I do that? I suppose I have to create a service, but I have no idea how to do it!
View 3 Replies View RelatedI know i can make my script run at boot time in runlevel 2 by putting it in /etc/init.d/ and creating a symbolic to it in /etc/rc2.d but thats when Linux is on hard drive.
I want to run my script from a flashdrive such that when a user plug in a flashdrive and powers ON the machine, it may start booting from the OS in flash drive and eventually executing my script.
How can I achieve such a functionality?
I have tried burning OS to flashdrive but I never succeeded in booting OS from flashdrive.
Im trying to install a program with bitrock installer but im asked to logon as root or become super user. When trying to logon as root from logon window I get message that "cant authenticate user" Ive tried to find a place in "users and groups" to become superuser but cant find it.
View 9 Replies View RelatedI am trying to execute a limux command in c program using system system call, but the dont want it to dump the output or error logs on the terminal.
View 2 Replies View RelatedAssume two applications, Application A and Application B. Both are written in C language.I had tried to use system() function in Application A to execute Application B. It success, but Application A cannot continue its own tasks before Application B exit. I want Application A to execute Application B, but Application A can continue its tasks without waiting for Application B to exit.
View 3 Replies View RelatedI'm trying to execute a C++ program on PowerPC. But I am facing an error saying: "error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory". But a C program gets executed successfully. The programs are cross compiled using PowerPC cross compiler.
View 1 Replies View RelatedI'm running WoW through wine. In order to install addons I need to give all the files in the program permission to execute as a program. the problem is I can't (dont know how) just right click the folder and give everything inside permission i have to open each one and give them all permission, which can quickly turn into hundreds depending on the addon. how to give permission to execute as a program to all the files in a folder at once it would save me a lot of clicking and time.
View 2 Replies View RelatedI'm building a Cluster with 20 small Compaq ipaq PC's as the nodes. I have absolutely no room for any keyboards on this cluster. The PC's require a keyboard to boot, and there are no BIOS settings I can adjust to fix this problem, and no BIOS updates. I have found a small DOS .com program by Compaq called NO_F1.com it's designed to allow the computer to continue to boot without a keyboard. it's only 172 bytes in size. It sets a bit in the CMOS which allows the boot process to continue without a keyboard. It does not permanently set anything, so it needs to run each time the computer starts.
Is there any way I can execute this program very early in the boot process every time the node boots ? I thought about dissembling the program and trying to modify the boot loader, or some other ASM program, the program is only 172 bytes. But thats really over my head. What could I try, I don't know what to do. Also, I have no floppy drive and no CD drive to boot from, only USB or hard drive.
I am using RHEL, and trying to execute a c program.I'm able to compile properly and execute until i reach a function getHandle, where the program gives a segmentation fault. Segmentation fault occurs in getHandle().
Here is the code:
As I walked in my office this morning, before getting withing 5 feet of my computer, the computer started an unscheduled auto reboot but failed. After hard reset, unplugging, etc., it will still not boot off of primary system. Used Live disk of previous Ubuntu to gain access to system. Found bug#407862 regarding 'rsyslogd was HUPed' but don't know what that has to do with this specific problem. [URL]. The initial error message on screen was something like "no system disk. Insert system disk and press enter", as if I had a non-bootable CDROM inserted, but there was nothing like that.
/var/log/syslog says this:
Nov 30 07:59:05 my-computer-name rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="908" x-info= URL] rsyslogd was HUPed, type 'lightweight'.
Nov 30 07:59:05 my-computer-name anacron[5755]: Job `cron.daily' terminated
Nov 30 07:59:05 my-computer-name anacron[5755]: Normal exit (1 job run)
Nov 30 08:00:01 my-computer-name CRON[6028]: (www-data) CMD (test -x /usr/bin/php && /usr/bin/php -q /usr/share/horde3/scripts/alarms.php > /dev/null 2>&1)
Hundreds of previous syslog entries contain the following line:
Nov 30 08:00:01 my-computer-name CRON[6028]: (www-data) CMD (test -x /usr/bin/php && /usr/bin/php -q /usr/share/horde3/scripts/alarms.php > /dev/null 2>&1)
I would like to execute an already written C program that I am running on my embedded Linux, but from afar - through a HTML page. I am running an embedded Linux on my FPGA prototype board with a MicroBlaze soft processor. On this Linux i am running a httpd web server - I can serve html web pages to the outside through Ethernet connection. Now, I have a program written in C in this embedded Linux in /bin/gpio-test that does some stuff with my IO devices. Now I would like to control these IO devices through HTML web page - so I would like to be able to run this gpio-test program from a html web page and possibly send the program some parameters.
View 2 Replies View RelatedMy program attributes (it uses semanage to change range): I'd like to ordinary user (bartek) can execute my program. I executed as root:
chmod u+s se_chmod4
so now my user can change his range in permissive mode by my program. My politic: In enforcing mode i can see attributes but when i want to excute i get:
How should look like my TE file that user (bartek) could execute my program (forget at moment about "semanage")?
prohibit execution of any program include shell command, only be profiled program could be executed, can apparmor do that?
View 5 Replies View RelatedI want to execute a program at the very last step of Linux boot process. For Debian based Linux distro that uses BSD boot process, I came up with 2 solutions:
1) I should somehow call my program from the /etc/rc.local script (although is this the last step of the boot process?)
2) Use the "multi_end" and "sysinit_end" hooks for executing it at the end of rc.multi rc.sysinit respectively (I don't know how to do it though).
I already have two other threads open for a dysfunctional system. Thread 1: Boot hangs at logon sound - no video signal - appears drive is still working [URL]..Thread 2: Where are boot log files and how I can see those? [URL]...Basically both of those are for not able to complete the boot (hanging up in the middle of booting) in Karmic. I had Karmic since it came out but suddenly about two weeks ago just stopped booting. Except for the battery and resetting BIOS, I had checked all the hardware - and all appear to be okay. Following a tip from x1a4, I started looking into logs (admittedly not knowing exactly what I am looking for) and I ran into auth.log. Following is the code. The highlighted part is confusing (to me) and I am wondering if this may cause to stop booting (or completing the boot process) since I was using auto logon. I do not know if there is anything else (logs) you may need, please advise and I will provide those.
[Code]...
I'm trying to setup a webcam surveillance system. Zoneminder didn't work for me regardless of how I tried configuring it, so I gave up and have now settled on a more primitive solution. I've currently got 6 cams and looping streamer (webcam screen grabber) I can grab a picture from each camera with about a 1 second interval. The previous picture is overwritten and using javascript to reload the image continuously in a browser I get the desired "movie" effect I'm after. The problem however is that as soon as I start using streamer on more than two cameras at once I run into this little snag:
Quote:
libv4l2: error turning on stream: No space left on device
ioctl: VIDIOC_STREAMON(int=1): No space left on device
I've been searching around and it seems I need to increase my shared memory. I've done that (tried many different values and "solutions") but the problem remains the same.
My setup is as follows.
1.php (refreshes updated grab from camera 1 every second in the browser)
2.php (refreshes updated grab from camera 2 every second in the browser)
3.php (refreshes updated grab from camera 3 every second in the browser)
etc
etc.
Is it possible to use something like php exec to execute the command that starts 'streamer' that grabs the image from the specific webcam (/dev/video1 for 1.php and so forth) when 1.php is opened in the browser. Is this even possible, or am I just dreaming?
I've been given one of these ubiquitous usb-sleep buttons which is basically a supersimple usb-keyboard. It's a big button that sends a SLEEP keypress to the computer when you slam it. But that is pretty boring. I'd love to remap it to do something more fun but I can't figure out how to bind to only the sleep press from the button and not from my ordinary keyboard.
The button identifies as
Bus 001 Device 035: ID 1130:600d Tenx Technology, Inc.
I'd like to know if there's either
a way of mapping a key from a specific keyboard to an action OR a way of remapping the sleep key from a specific keyboard to a new key-code or something like that.
I have tried to execute the below ns.c program in RHEL 4 by using the command
#gcc -c ns.c -o ns.o
i am not getting any errors but while i am running object file by using the command
#./ns.o
i am getting the below error
bash : ./ns.o cannot execute binary file
/* trinoo daemon */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
[code].....
What is the best program to use to monitor a directory and execute a script when a new file is dropped in the directory? I've searched Google and just can't seem to find what I'm looking for. I would like to execute a shell script after a .CSV file is moved to a certain directory to generate a chart of the data contained in that file. I've got the script, now I only need to know how to execute it when a new CSV file is dropped into the directory. The Linux Distribution is RHEL 5.
View 2 Replies View RelatedI use auto-text completion a lot on windows and it works very well.Is there a similar program in ubuntu? I tried one ages ago, cant remember its name, but it really wasnt that great..
View 4 Replies View RelatedI have USB Modem ZTE AC2726 . I am always Connect using Wvvdial or Network Manager , it Works Fine , But I want to do that when computer Booting it can auto start but i can�t do this . i have use many rules such as /etc/rc.local or udev rules to failure .I am using Fedora 14.
View 3 Replies View Related