General :: Making A Command Run Once Every Hour
May 9, 2010I have an indexer for sphinx, and i want it to run once every hour in linux. How would i do this?
View 8 RepliesI have an indexer for sphinx, and i want it to run once every hour in linux. How would i do this?
View 8 RepliesI recently decided to try KDE4 and would like the change the clock on the panel to display 12 hour format and not the default 24hour format but i can not find where to change this option currently the clock looks like the attached picture. Gnome has this option and I would like to see it in KDE if it exists in the default clock. I am willing to replace the default KDE clock with a seperate widget if one exists for this.
View 1 Replies View RelatedI have been playing around with the tar command and I know this is how to use it.
Code:
tar -cf [filename] [directory]
But what I want to make an archive from the current directory I thought just to not enter a directory but that doesn't work. I get an error about creating a empty archive so how to do I make it so how do I tell it to do the current directory?
I need to change the time displayed in the task bar from a 24 hour clock to a 12 hour format. I could not find the relevant settings in OpenSuse 11.2 and same is the case for 11.3 as well.
how to make the change? I have tried System Settings ---> Computer Administration ---> Date & Time; but I was not able to make the desired change.
Similarly, I have a digital clock widget that shows GMT + 5.5 hours and I need to change that to 12 hour format as well.
I just switched over to Lubuntu, and so far, it's been great.It's rendering quite well with my laptop, even though the fan is constantly running.I've had some small annoyances that I haven't been able to figure out. How do I get the power button and/or other related actions to the 'start' menu? Is there a way to drag and drop applets like in Ubuntu? How do I setup default brightness like in Ubuntu? How do I change the time to normal US time (12 hour instead of 24 hour)How do I change the time to a 12-hour instead of 24-hour?Is there a software center?
View 2 Replies View RelatedI want to take a graphics file and make 10 copies of it to the same directory, each with 001, 002, or some such designation at the end of each file name so they have discrete files names. Is this possible using cp?
View 12 Replies View RelatedI used to be able to put a .sh file into a folder to make it into a global command.
Instead of typing:
Code:
/home/user/tool/conversion/convertmkv.sh /home/user/mkv/thisone.mkv
I could type:
Code:
convertmkv /home/user/mkv/thisone.mkv
Where to hide my executable .sh files to make this work?
If you're familiar with macs, you know that they use command keys instead of control..
If I want to select all I press COMMAND + A not CONTROL + A copy is COMMAND + C, paste is COMMAND + V, quitting an application is COMMAND + Q.
I am used to this, and I would like to change the command key to be the control key, and the macs control key to be the "windows" key.
I need to write a script that will take 1 command line argument. The argument will be a username. The script will determine if the user exists on the system and will print an error if it does not. If the user does exist it will determine if the user is currently logged in, if the user is not logged in it will determine the last time the user logged in and display the file in the users home directory that was most recently modified.
View 2 Replies View RelatedCurrently whenever i run date command output is shown like
Mon Apr 12 05:17:21 IST 2010
When its 17:17 Here.
How would i change it so that it should show.
Mon Apr 12 17:17:21 IST 2010
Yesterday I configured an NTP Server, and synched a sever with my NTP Server. Now some how my Client clock jumped one hour ahead at 12:00 AM, while HW Clock and NTP Server Clock remained.
Code:
cat /etc/sysconfig/clock
# The ZONE parameter is only evaluated by system-config-date.
# The timezone of the system is defined by the contents of /etc/localtime.
ZONE="Asia/Karachi"
[Code]....
I made gnome launchers (shortcut or what they are called). I selected them : opened by terminal (with some simple commands). The problem is that I have 3 command lines and don't want to use 3 icons (launchers) to execute them. If I edit my launcer on gedit, I get this kind of lines :
Code:
[Desktop Entry]
Encoding=UTF-8
[code]....
Is there any way to force 24-hour time in my locale (for example, 14:00) instead of 12-hour time (2:00 PM)?
I use the en_US locale with a UTF-8 character set on Arch Linux, but this shouldn't matter, I think.
I would like to detect that with openbox (i avoid xscreensaver) and do manually xset dpms off for the screen.
View 3 Replies View RelatedI was wondering if any one came across that issue before. Everytime I reboot my PC something (I assume GNOME) reset my system clock to an hour behind what is was the last time. So if a reboot twice in a row that'll be two hours behind and so on. It used to work fine until I had to change my system time backward temporally to overcome and issue with GPG. Since I put it back I get that phenomena. It's like it's adjusting it for the Day light saving everytime a boot. Problem is Japan does not have any day light saving. I run OpenSuse 11.2 with Gnome 2.28.2 as my interface. I'm currently located in Japan GMT+9 not DST. /etc/localtime -> /usr/share/zoneinfo/Asia/Tokyo
I suspect a bug in Gnome or Yast. It's not user specific because the time is already altered even before I log it.
I've never observed this problem neither did any of my colleagues trying to SSH into the same system. If I try logging into my server using a wrong username and then press ^C to terminate or exhaust my password attempts, I am locked out for at least an hour. Is there something I can do on my end to fix this problem?
View 1 Replies View RelatedVery simple question but very frustrating as none of the other threads/bug reports/whatever have had quite the same problem. I want gnome clock to display the time in 12 hour format. The suggested solution is something like right-click the clock -> Preferences and somewhere there will be an option to choose 12/24 hour time. Problem is I don't have that option.
The help has a note that 12 hour time "is not shown if your session language does not use the 12 hour clock" but this really shouldn't be a problem? My language/locale/city, everything I can think of, it's all some variation of en_GB, UK English, Brisbane, Australia: all places which should allow the option of 12 hour clock! So why don't I have that option?
I have a script(urls.sh) scheduled to run with Crontab at every hour. The script is all good and executes manually with [root@server cron.hourly]# ./urls.sh But the scrip is not executing according to schedule. This is what I see in /var/log/cron every hour:crond[4729]: (root) CMD (run-parts /etc/cron.hourly/urls.sh)My crontab look likes this:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
[code]....
How I can make sudo Ubuntu 10.04 session an hour and not few minutes?
Now I have to write my password for sudo commands every few minutes.
I recently assembled a new computer so that all hardware is pretty new. Since then I've been experiencing some problem with IRQs when running Debian 6.0. On random occasions, usually after an hour or so of running I hear a beep and this shows up in dmesg:
[code]....
I always get mixed up with timing with cronjob. I want to fireoff a script every 30min at starting at quarter of an hour.Meaning script will run at 1:15, 1:45, 2:15, 2:45 etc.
Would this work?
15/30 * * * * script here.
I'm using a java application that runs as an interactive command line (in a terminal). My problem is that it's rather unfriendly as an interaction mode as it's minimalistic: it doesn't allow going to and fro with arrows, there's no history and so on. So I have to type all commands every time and have to retype it if I missed something at the beginning of the line, or I have to copy and paste from a txt editor. The strange thing is that I have seen the same application running on a Windows box and allowing for all the sugar. So I'm not sure if it's because of the shell script I run (as opposed to the .bat) or whether it has to do with system or profile settings in my shell.
For information, the shell script starts with:
Code:
#!bin/sh
I've replaced it with:
Code:
#!bin/bash
In hope I would have something closer to my normal terminal. The app runs but it doesn't change anything to the interactive mode. I'm rather clueless regarding sh/bash and so on. I've seen the manuals but I'm not entirely at home understanding and using their options. I know that there's a .bashrc and perhaps something like a profile somewhere, but I don't really know how to do things with these without risking messing up.
I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files. File structure is same on both servers and for reference as follows:
Code:
27-Aug-2010 10:04:30,601|919122874903|phtunes_app|1282243292627|NotifySmsReception|DMGenerateLogInterceptor - ExternalTransactionID:SDP-DM-26713018, TransactionStatus:Requested
27-Aug-2010
[code]....
I want to make an rpm which when installed as an update causes another rpm to be removed. I'm fairly sure this is possible because I have seen LibreOffice rpms install as updates replacing OpenOffice rpms in the process without any interaction being required. However I'm unable to figure out how to do it, even after having looked at the spec file for such a LibreOffice rpm.
I have package gstreamer-0_10-ffmpeg installed. I have another package called multimedia installed. I've built a new version of multimedia which includes the gstreamer ffmpeg plugin so I don't need the gstreamer-0_10-ffmpeg package installed any more. I've tried using Provides and Obsolete in the spec file of the new multimedia package. E.g.
Code:
Provides: gstreamer-0_10-ffmpeg
Obsoletes: gstreamer-0_10-ffmpeg <= 0.10.10
(I've tried it with and without version numbers.) Whatever I put in the spec file, when I try and install the new multimedia package as an update zypper says
Code:
$ zypper up -y multimedia
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: multimedia-1.1-1.i586 obsoletes gstreamer-0_10-ffmpeg <= 0.10.10 provided by gstreamer-0_10-ffmpeg-0.10.10-0.i686
Solution 1: replacement of gstreamer-0_10-ffmpeg-0.10.10-0.i686 with multimedia-1.1-1.i586
Solution 2: do not ask to install a solvable providing multimedia > 1.0-2
Selecting an option manually is no good, I need the update to happen without user interaction.
I'm trying to make a huge installation of applications on linux, (Red Hat), but without internet, i mean, i will have to download rpm's one by one and install them, the problem is that i've tried and is terrible, it always shows conflicts within versions, dependencies of dependencies, etc etc...
Is there any kind of tip to get this working? any kind of command that shows me the real dependencies that should be installed (with the right versions, etc) without conflicts? I've tried the following:
Quote:
rpm -qR package
Do you know a way of making vim not to use colours?
View 1 Replies View RelatedAfter daylight savings time, my squeeze installation's clock failed to adjust. I've tried to change this in the bios, but it always resets itself.
Is there a way to force-change the time?
I have a script that I want to run for one hour.
I used to use doalarm to make it run for one hour then stop but it is not working consistently so I need another solution.
How would you make a script run for one hour then stop?
I wondered if theres a way to do rotational style completion in bash similar to the behavoir on cmd.exe, I've found it speeds me up in regard to entering commands
View 2 Replies View RelatedI have recently installed ubuntu 10.04 on my five year old desktop. Unfortunately, the official linux driver for my ATI X1600 card doesn't seem to support this ubuntu. There's an open source driver running now, but 3D applications run much slower than originally under windows. (which I can't seem to install on my sata raid harddisk anymore)
It's even so slow that I can't use those 3D applications anymore. I came to the conclusion that my computer is just too old for such a modern system as ubuntu 10.04. So I started looking for another version of linux. I tried the Linux Distribution Chooser, it pointed me at OpenSUSE 11.2. But I don't know, this program still looks kind of new. Too new for my computer.
I think that my computer needs an older version of linux, so that all the hardware will work properly. So I'd like to know if there's an older version of ubuntu/linux that still supports my hardware.
My computer was assembled from the following parts:
- DVDI LiteOn 16x/48x IDE bulk
- RAM 512 MB DDR/400 PC3200 ValueSelect
- HDDI 200GB 7200 Maxtor 6B200M0 8MB/SATA
- MB MSI k8T Neo2-F Athlon 64/939/DDR
- CPU AMD Athlon 64 3200+ 2.0Ghz/so939 BOX
- X GRA Sapphire R9600XT TV/DVI 256MB L-re
Does anyone know any distributions that fit this hardware? Some older versions of ubuntu perhaps? Something that allows me to install drivers that make 3D applications run a t normal speed? If someone knows about a Distribution Chooser that takes hardware into account, I'd also like to know.