General :: Run A Job On First Login Of Each Day Using Cron Or Something Similar?
Jul 12, 2010
I need to run a script when i login for first time in a day. I may reboot or shutdown and then power on during the day. But i do not want the job to run during those power ups. It should run only once per day.
My execution environment is Linux steamboy 2.6.31-21-generic-pae #59-Ubuntu SMP.If I log in and run a program, the program works properly. The program is a shell script, which executes an environment file, so that path and library settings point correctly.If I have cron run the same program as the same user who logged in, one of the libraries cannot be found. I have sourced .bashrc and the same environment setting file, even though .bashrc executes the same environment file . /home/amr/bin/informix_env.sh
I want to create a network similar to windows network on linux .Users should have profiles and can do network login similar to active directory on windows.
I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).
The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.
The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.
I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)
I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.
install an o.s called Backtrack4,which basically consist of tools such as metasploit,nmap etc since i am interested in knowing and improving my knowlege on such programs,BUT what stops me from installing backtrack4 is that i am bothered whether the commands that work in redhat/fedora(yum,grep,ps,etc) will work in backtrack4??Is Backtrack one of the distros of linux?
I have a project folder that I pass back and forth between my desktop and laptop via Samba. Both are running Debian. The folder is large. I would like to be able to change a few files in the folder on my desktop and then "update" the folder on my laptop without having to pass the entire folder back over the network.
I have been trying to put same type of items (rather icons) together, my concept is same like windows where I can put that by right click and--> arrange icons by --> group,So folder icons come together, pdf files come together etc etc and there is a separation between any two types of items (icons)Can I have that facility here too, I am using fedora 13, and when ever I rightclickunde arrange items --> name type size etc comesbut group by items is missing.Also here refresh option is missing, what we very much familiar in windows, I know that fedora is not windows, but I think this problem can be solved.
Possible Duplicate: Torrent client for Ubuntu similar to uTorrent What is a good bittorent client for Linux? So far I used uTorrent on Windows, but recently I moved to Fedora and I saw that uTorrent doesn't support Linux.
Has Linux some mechanism to test memory online as a background job, flag bad memory as unusable and warn the user if memory is faulty? Much like running Memtest86+ on a little chunk of memory every nth minutte until all memory is tested and then repeat over.
Edit: I did not make it clear that I want such a service running in the kernel. A (peak) performance hit should be avoided by running the test in small steps and only when the system have some CPU cycles to spare
Edit2: I meant this as a Linux kernel service that scans the memory in the background. Not meant to be run in userspace but a routine in the kernel itself, perhaps in the memory manager to make sure memory are sane!
It's a pity that Wi-Fi is used only for network and internet connection. There's no information on a thing that can seem so simple - file transfer via Wi-Fi.I can imagine it similarly to how Bluetooth does it (or Wi-Fi spot search which is already implemented), but no, it requires complicated LAN setup.What I want is an easy cross-platform solution to transfer files via Wi-Fi.
Any please help me for incremental copy command similar to windows.commad for copying in windows is c: source xcopy *.* destination /s/c/d/q/yany similar command is there in linux as I m new in Linux
I am returning to Linux after falling of the Wagon to Microsoft land. Would like to go back to developing on a GNU collaboration package - very mutch like cobalt cube. Can anyone make a suggestion as to a package, app, or appliance. Would consider packaged hardware with software. I heard a freind mention Pogo.
Web based Email Password protected groups w/private HTML/XML Threaded discussions private and public Administrative functions user administration Perl/ CGI scripting support
I have an Ubuntu Desktop 11.04 virtual machine using VirtualBox on my Windows 7 system.
Up until now I have been doing all my development within the Ubuntu environment but unfortunately, I don't like it. I want to move back to Windows, which is much more familiar to me but I would still like to access the virtual box like a virtual server as it is already set up with Apache, PHP, Pear, Git etc...
How can I make the two work in harmony? I essentially want to be able to start the VM and connect to it as if it was a server machine somewhere on my network, without having to actually buy another machine to put on my network.
Any script to categorize folders with similar name into one directory. For example: There are 4 directories named LinuxFedora, LinuxUbuntu, WindowsXP and Windows7. The script should be able to create two folder named Linux and Windows wheree respective directories are moved.
Next example: If there are many folder as below: DevLys 010 DevLys 010
I am looking for a command line utility like ping that can use for checking appropriate services on a server . I do not want do any port scan . I just want to use it for checking apache , mail,ftp and other services on a server if they are running or down.
I see on the website URl...screenshots number 5 and 6 -- what is used to to get these style of scrollbars? When I launch Opera I get a very ugly scrollbar that does not fit the look of the wm whatsoever.
Would like to start using a setup similar to exchange for emails but on Ubuntu - does anyone have any reccs? Something pretty easy to setup, user friendly, have a caleneder etc.
I have a php script that checks versions of a remote stock file every 15 minutes. When it discovers that a new version is available it downloads the new file and runs it through a series of scripts that prepare it for an e-commerce application. It takes about an hour to import the file and process it. Otherwise, it echos "file on remote host not newer than local file". The stock file is updated every 3 or four hours and it's never at the same time. So we would like to run this script every 5, 10, or 15 minutes to make sure we have updated files.
So what happens when my php script finds a new file and takes an hour to do its work? Will the cron be activated three more times during this span? In other words, will it keep starting over even if its still running from a previous cron? Is there a way to stop the cron from running while the file download and processing occur, and then resume when its finished?