General :: Get Ubuntu To Automatically Run A Program Every Time The Screen Is Unlocked?

Oct 31, 2010

I have a script I would like to have automatically invoked every time the screen is unlocked. Does Ubuntu provide some support for users who wish to do this?

View 1 Replies


ADVERTISEMENT

Ubuntu :: See What Time Unlocked The Lock Screen (by Typing The Password)?

Feb 24, 2011

Is there a way to see what time I unlocked the lock screen (by typing the password)?

View 5 Replies View Related

General :: Automatically Set Screensaver Activation Back At 30 Minutes Each Time The Normal Screen Is Reactivated?

Mar 16, 2011

I'm running Fedora 14 and set the screensaver (in System>Preferences on the Gnome GUI) to activate after the computer is idle for 30 minutes. After the screensaver is activated, and a press a key or the mouse, the screen is back to normal -- no problem.After the screensaver has been activated once, however, it comes back on very quickly -- usually in 2 or 3 minutes if the computer is idle. The only way I have found to correct this (and set activation back at 30 minutes again) is to log out and back in again.How can I correct this, and automatically set screensaver activation back at 30 minutes each time the normal screen is reactivated?

View 1 Replies View Related

Programming :: Mutexes Necessary - Gets Locked / Unlocked Each Time One Of The 60 Threads?

Jun 24, 2011

I'm a bit worried about "too many mutexes" in my little curses-based app and would like to get confirmation/opinions that I'm doing this right. I've got an array: int nums[60] I've got 61 threads. 1-60 are doing math on the value in their array index (ie: thread1 increments nums[1], threadN increments nums[N]), then sleep(1) The 61st thread is my curses thread which does a for-loop over the array and prints out all the values to the screen, then sleep(1)

Right now, I've got 1 mutex which gets locked/unlocked each time one of the 60 threads needs to update its array-index with a new value, and the 61st thread locks the same mutex just before the for-loop beings reading the values and unlocks after ending the loop.

My questions:
A) Does the above seem OK? (I know it's ok, cause everything works right now but would like opinions on it)
B) Do I even need the mutexes since 1-60 only ever update their own index and 61 just reads?
C) If I do need the mutex protection, is there a better, more efficient way?

View 11 Replies View Related

Ubuntu Security :: Set Automatically Log In To A Specific User Account And At The Same Time Lock The Screen?

Jul 6, 2011

Is there a way to set Linux to automatically log in to a specific user account and at the same time lock the screen? I want to save time and trigger various software that always should start up on boot, while leaving the computer unattended during startup (extra important and practical for remote control boots), by enforcing a 'screen lock' so that no-one can see what happens behind the login screen without entering the login credentials.

View 3 Replies View Related

General :: Short A Time Can Time (system Program) Measure?

Apr 15, 2010

I'm just wondering what the limits for time are. I have a program that always takes exactly 20 ms, so I assume this is the lowest it can measure, but I want to see if there's some sort of documentation of this.

View 3 Replies View Related

General :: Startup A Program Automatically?

Feb 18, 2011

I need to startup a program automatically. What to do? I using kubuntu. In Windows, you go to the startup folder under program files(I think.)

View 1 Replies View Related

General :: Getting Program To Start Up Automatically?

Jun 14, 2011

If I need certain programs such as ktorrent to start automatically on bootup, how do I do it?

View 1 Replies View Related

General :: Centos 5.x Time Change Automatically?

Jun 21, 2010

i am using squid proxy on centos 5.x release with stable version. during installation time i fixed date time region.it was basicaly gmt +3:00 hours. so everything was fixed, now since past few days every 24 hours it change its time automaatically. this looks like it take update somewhere from internet or internally something is mess up.could someone guide me how to fixed permanantly date time. even either restart the machine or passing 24 hours it do never change it. etc

View 2 Replies View Related

Ubuntu :: Inbuilt Logging System - Ran And Installation - Program Opened Automatically - Can't Find Program Executable

Feb 23, 2011

I was wondering whether there is an inbuilt logging system in UNIX?

I ran and installation and the program opened up automatically but I can't find the program executable.

If I could find a log then I could locate this file.

View 9 Replies View Related

General :: Automatically Kill Processes That Over Time Uses 95%+ Of Resources?

May 3, 2010

I don't know about your computer but when mine is working properly no process is sucking 95%+ over time. I would like to have some failsafe that kills any processes behaving like that. This comes to mind because when I woke up this morning my laptop had been crunching all night long on a stray chromium child process.

This can probably be done as a cron job, but before I make it a full time job creating something like this I'd thought I should check here. :) I hate reinventing the wheel.

View 1 Replies View Related

General :: How To Set Debian To Automatically Update Time And Date

Aug 14, 2011

I have an old computer and BIOS counts the time slower than real. So, how can I set my OS to update the time automatically using the internet? If it updated the time only during booting, it would be enough.

View 2 Replies View Related

General :: Automatically Open Terminal At Login Time?

Jun 7, 2011

I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout

View 13 Replies View Related

General :: Automatically Trigger A Cron Job Each Time I Log In On System Account?

Jul 27, 2011

Is there any way to automatically trigger a cron job each time I log in on my linux account.

View 9 Replies View Related

General :: Run A Program For A Specific Amount Of Time Starting At A Specific Time?

May 18, 2010

I want to record an internet radio station starting at 2:00am tomorrow morning. The specific program on the radio station lasts until 6:00am. The command I need to run to record the station is: Code:mplayer http://wjcu.jcu.edu:8001/listen.pls -ao pcm:file=indie_heat_of_the_night.wav -vc dummy -vo nullI'd use cron, but 1. I'm not sure how to and 2. it seems unnecessarily complicated for something that I only want to run once. If cron is the only/easiest solution, I guess I'll just have to resort to that, but I'd rather not.

View 12 Replies View Related

General :: Automatically Run Program On USB Flash Drive Upon Plugging It On Computer?

Feb 11, 2010

Is it possible to automatically run a program on a USB Flash drive upon plugging it on a computer?the program should create a text file inside the USB flash drive as i plug it on the computer? Is this possible? how can i do this? autorun.inf doesn't work. Are there any solutions? by the way, i am using kernel 1.0 on my computer...

View 1 Replies View Related

Red Hat / Fedora :: Time Config / Always Changes Time Automatically?

Jun 18, 2010

I have a concern regarding my clock in fedora 12. It always changes time even when I do not change it.

In fedora 10, I to go to CLI > time config > uncheck UTC, But now, it doesn't seem to work. Code: [jun@localhost ~]$ time config
Command not found.
real0m2.875s
code...

View 1 Replies View Related

General :: Live Proxy Detection Decide Which One Is Working Well At Particular Time - Switch Over Automatically?

Jul 30, 2010

In my college many proxy : port (like 144.16.192.245:8080)are using to get Internet connection, performance of each proxy changes, how can i decide which one is working well at particular time. is there any way to switch over them automatically?

View 9 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related

General :: Execution Time In A C Program ?

Jan 10, 2010

I need to find out the processing or operating time in milliseconds or in nanoseconds for the instructions or for the whole process!

for eg :

I need to calculate the time taken to execute :

And i dont want the time for whole program :

View 4 Replies View Related

General :: Arch Over Time Screen Jitter Then Black Screen?

Jan 15, 2010

I've been a happy Arch Linux user for years now. Recently, on my eee 1000he (an Atom netbook with intel GMA graphics) I've been seeing strange things. After it has been on for some time (usually hours), the screen starts to jitter, just for a fraction of a second, every now and then. After this has happened some times, the screen goes black (one time it went red). The backlight is still on and I can still ssh to the machine which reacts normal appart from the black screen. I can only regain the screen when rebooting. What could this mean? Is it hardware or software? X logs don't shown anything weird, where should I look? I haven't found anyone with the same problem on the net.

View 4 Replies View Related

General :: Automation - Good Console-based Program To Automatically Manage Music Collection?

May 31, 2011

I like the convenience of having a music player that manages the placement of my music files based on the tags of the files, sorting into a root music folder with Artist/Album/01 - Track Title.mp3 sort of hierarchy. Previously, I was using Banshee for this feature, as even most of the other gui music players don't have this library management feature. Now, I've been trying to use console-based applications, and I have been using mpd + ncmpcpp fairly successfully. When I download new music, it is downloaded to a specific folder, and that's not part of my music collection. My previous workflow would be to open a gui filemanager at the downloaded folder, and drag and drop those songs onto banshee, which would then make a copy of those files in my library hierarchy. Currently, I'm doing the same thing, using Banshee only as a sort of import program, then closing it and updating my mpd database, and there we go.

If at all possible, I'd like to automate this to something where I can define a watch folder, and when some magical program sees new music in said watch folder, it identifies the correct place for the files to be copied into my heirarchy, renaming folders and files to the correct format. I know I've written a lot describing, but I don't actually think this too uncommon a task, and I'm wondering if anyone has a solution for my problem.

View 3 Replies View Related

General :: Starting Up A Script Or A Program At Boot Time?

May 8, 2010

i wanted to know how can I make my programs or script automatically start at boot time ,for example if I restart my server at any time they start at boot time automatically with no need to any body to start them.

View 2 Replies View Related

General :: Time Oriented Program In Kernel Space?

Jan 28, 2010

I have written a programme in gcc

#include <time.h>
#include <stdio.h>
int main(void)

[code]...

View 2 Replies View Related

General :: Make Second Program Running With CPU Time Limit 2 Seconds?

May 16, 2011

Linux bash inline command to execute a program and limit the resource.As I know, to limit the resource I can use ulimit command.But, the problem is when I set the CPU time limit 1 second, and then I want to execute another program with CPU limit 2s, the ulimit command return an error like this: bash: ulimit: CPU time: cannot modify limit: Operation not permitted and absolutely my program killed in 1 second.So, How can I make the second program running with the CPU time limit 2 seconds?

View 3 Replies View Related

General :: Measuring Time That A Program Is Running In Shell Script

Nov 11, 2010

I have a script that executed 100000 C Programs, reads the commands from a file and executes them. There is a requirement to measuer the time that each of this 100K C programs running.If it exceeds 120 sec I want to Kill that Process.Any Idea to embed this in my shell script?

View 4 Replies View Related

General :: Terminal Command / Centos Server Starts Mysqld, Httpd And Ftpd Services At Boot Time Automatically?

Dec 27, 2010

Can anyone tell me what command can be used so that the Linux Centos Server starts mysqld, httpd and ftpd services at boot time automatically?

View 2 Replies View Related

General :: How To Program The Command Line To Run A Piece Of Code Multiple Time

Dec 4, 2010

So, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.

Say the command is like this:

Is there a way to automate this for many different values of the parameters and generate many different files?

I tried:

I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.

View 3 Replies View Related

General :: Way To Automatically Unlock Screen For VNC Session

Sep 17, 2010

I'm connecting via ssh to an Ubuntu server that has a physical display attached.I'd like the physical display of the server to remain locked while I'm connected remotely.Is this possible? How? Also, is there a way to automatically unlock the screen for the VNC session, which is made from localhost via an ssh tunnel?

View 1 Replies View Related

General :: KDE Screen Saver Box To Start Automatically After 1 Minute

Apr 24, 2011

My KDE scrn-saver box to, Start automatically after 1 minute is left un-checked and my power mangement options are set to, Do nothing when idle, but every ten minutes my screen powers down?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved