General :: Automatically Trigger A Cron Job Each Time I Log In On System Account?
Jul 27, 2011Is there any way to automatically trigger a cron job each time I log in on my linux account.
View 9 RepliesIs there any way to automatically trigger a cron job each time I log in on my linux account.
View 9 RepliesIs 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 RelatedI have cron jobs running and the timing is critical, because I'm running Nessus scans on production servers. If I hit them at the wrong time, I'm toast. But when I check the cron log, I see that it is an hour off. Here is the output for the command "clock":
Wed 31 Mar 2010 03:01:26 PM CDT -0.257677 seconds
And this is the tail of the cron log:
Mar 31 16:00:01 nes-001 CROND[8790]: (root) CMD (/Nessus/Targets/NessusScriptDataCenterScan.test)
Mar 31 16:01:02 nes-001 CROND[8822]: (root) CMD (run-parts /etc/cron.hourly)
Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8822]: starting 0anacron
Mar 31 16:01:02 nes-001 anacron[8832]: Anacron started on 2010-03-31
Mar 31 16:01:02 nes-001 anacron[8832]: Normal exit (0 jobs run)
Mar 31 16:01:02 nes-001 run-parts(/etc/cron.hourly)[8834]: finished 0anacron
Cron thinks it is 4:00 p.m., but it's really 3:00 p.m. How do I tell Cron what time it is? (Stopping and restarting the crond service did not change it.)
When the computer is on... we assign a date and time... My question 9is how is the system automatically adjusting time when i start my machine even months after...
View 4 Replies View Relatedi want a service to be start at 8:00 and be ended in 14:00 automatically i already do this manualy by:
/etc/init.d/myservice.sh start
/etc/init.d/myservice.sh stop
i think it should be related to cron jobs.
How do i log the start/completion (time&date) of my cron job script? i want to be able to see what time it started and what time it finished? and if there where any errors while running my script.
View 3 Replies View RelatedI am looking to send emails from cron for backup information. However, all the programs I have found (mail, mutt) require the password in plain text. Does anyone know of a more secure method? In fact, if it is only sending, is there a way to do this without logging into an account? What is the simplest way, without making it check emails too?
View 3 Replies View RelatedHow to create cron tab when DSL line down set automatically restart the network service while DSL line up?
View 3 Replies View Relatedi 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 RelatedI'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 Relatedget the values for the user time and system time for a process.i have tried getrusage to get values of ru_utime and ru_stimebut these don't seem to be correct
View 3 Replies View RelatedI 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.
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 RelatedI 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 RelatedI have a friend who needs a script to reboot a system every 5 min... not sure how to set cron to do this every 5 min.
View 1 Replies View RelatedI 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 View RelatedI've got a server running CentOS 4.8 (binary compatible RHEL 4.8 clone) that's decided all the accounts are expired.I've tried this on multiple accounts so far, to no avail.chage -l <username>Shows that the account never expires. In this case the problem was first noticed with the root account, then I tested it with my user account, and got the same answer, the account never expires.For the test I added a crontab to my account, and to roots, ever minute run "whoami"In the log I get (once for each crontab):rond[]: User account has expiredRecycling crond doesn't help, and I can't recycle the box itself as I've got users on it (pounding away at the poor box at that).
Several searches so far have only turned up that locked root accounts (ala debian/ubuntu) can cause this, and check or correct the age of the account using chage.Comparing entries in /etc/shadow to other boxes where everything is kosher doesn't seem to help either: the important bits are identical.
Working box:
kschmitt:$1$QykLetnt$ynSZ.7uKQSRnS3lsYe01w1:14613:0:99999:7:::
Screwie box:
[code]...
I created a very simple cron job for testing my first Linux system but It doesn't work. After open the crobtab file by typing crontab -e, I put a line like this to send email in every 2 minutes to report disk usage:MAILTO=dan@gmail.com*/2 * * * * du -s /homeI tried to restart cron several times but I still got nothing worked. /etc/init.d/crond restart
View 14 Replies View RelatedI 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...
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 RelatedI'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 RelatedAfter timeout is over a SIP account does not register again automaticaly, manualy can be unregistered and registered again. Changing timeout seconds does not make any difference, re-registering does not happen. Is there is a way ekiga can be forced to re-registered itself automaticaly?
View 1 Replies View RelatedI am using
# uname -rmi
2.6.18-194.26.1.el5PAE i686 i386
# cat /etc/*release*
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 5 (Tikanga)
CentOS release 5.5 (Final)
I have noticed that after few days of ideal system it will stop its network interface. To resolve this I have to login to the machine it self and then issue
# service network start
Is this a feature. If this is not a feature then what is this. As an workaround I am thinking of adding service network restart in cron tab for everyday in night when I am not using it.
What is the user account number when you create a root user account for the system during the installation of any linux distribution? I'm not sure if its 0, 1, 10, or 100..
View 2 Replies View RelatedI am running Debian Lenny with the default Gnome desktop. When I set up a new user the sound is not available. It says the device in not installed. I have used the Gnome system menu as follows.System, Administration, Users and Groups, then used the add user button and entered the appropriate info. I then went and clicked on the properties button and then the User Privileges section and checked off the "use audio devices" button. Still no sound. When I go to System, Preferences, Sound, Devices, and do the sound tests I get report that device is not installed.
When I am logged in to the user (jon) that I set up when doing the D.Lenny install, the sound on all various media play back works fine.There is one with 1 exception when loged in to this user(jon). I can not get any sound from the system sounds like select check box = toggle .wav, chose menu item = beep, etc. It would be realy nice to know how to repair or configure tis issue as well.under system info, pci devices it lists as follows Multimedia audio controller, Intel Corp 82801FB/FBM/FR/FW/FRW. Mother board is a ECS 915P-A2 and I guess about 2007 or so vintage. 1 G mem installed and a P-4 2.66 chip. It has the sound built in to it. It works fine on WinXP.
I've used it recreationally in the past but am now attempting to deploy an OpenSUSE LTSP server in my wife's computer lab at her school. really like to make it easy for her to give the kids instructions for the day via a text file/pdf located on the kid's desktop. What I'd like to do since there's 500 kids that she teaches is create a shared folder for each grade that she just drops the assignment instructions into. I'd like to avoid having to add a link manually in each user's /home/*/desktop folder, so is there an easy way to do this?
In case the above isn't clear...
1) Create folder on teacher's desktop that is set to share
2) Create a link on each user's desktop to enable them to access said folder
3) Ideally, all new users will have a specific folder based on which usergroup they belong to (1st grade, 2nd grade, etc
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 RelatedI've read a lot on how to setup a task in crontab. I think I understand how to edit the file, but when I try to save the changes, it says "no crontab for xxx." Then it says that it cannot create a new crontab. I have ubuntu desktop 9 running as a webserver. I've read the details in these posts and it isn't helping.
[URL]
I have a script to record a weekly radio show from a Sydney radio station.I am in Brisbane.Sydney and Brisbane are both in the same time zone but Sydney(NSW) bounces around on daylight savings time and Brisbane(QLD) does not. Is there a way to specify a timezone for a specific job in the crontab file? If so what would be the format for Sydney so it follows the daylight savings time changes? Right now I will just change the cron schedule when Sydney goes on and off DST.
View 9 Replies View RelatedI was thinking of creating a little audio alarm clock with an mp3 and mpg123 to play a song from a cron job each day. How do you specify the time of day to execute a cron job?
View 4 Replies View Related