Debian Configuration :: Untar Periodically Using Crontab ?
Jan 17, 2010
how to untar a file name /opt/Backup/abc.tar.gz2 periodically with crontab in debian. My Script name is abc.sh and i write it as
crontab -e
*/2 * * * * /bin/sh/ /opt/Bachup/abc.sh
while my abc.sh file is as under
#!/bin/sh
tar -xvf /opt/Backup/abc.tar.gz2
But it did not give any result. When i run it as sh abc.sh. it works succefully. but not in the crontab.
View 4 Replies
ADVERTISEMENT
Feb 17, 2011
I am running testing (with fluxbox) and my keyboard periodically freezes, meaning whatever I type in it doesn't respond. This lasts a few seconds (can be 2-3 or sometimes even more like 10) and one's it comes back I get all the keystrokes I was typing during the freeze. The frequency of the freezes can be like 4-5 times every hour and are very annoying. I can't seem to relate them to anything, they can occur during heavy usage but also when the box is doing absolutely nothing but waiting lazily for me to type some google search terms.
Can anybody help me track this problem down? At the moment I am using a wireless keyboard but this must be unrelated since I tested a couple of other keyboards (both wireless and wired) and the problem persists.
View 1 Replies
View Related
Mar 3, 2011
I have been having trouble setting up a daily backup script with cron. It would basically never worked. Searched the net for answers but didn't find anything. I finally figured it out !! When root crontab is edited the execute flag is removed from #/var/spool/cron/crontabs/root. I change it with #chmod a+x /var/spool/cron/crontabs/root and all is good.
View 5 Replies
View Related
Apr 27, 2010
I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday
View 3 Replies
View Related
Jan 3, 2016
I have a custom .Xmodmap file to change the keyboard layout. The problem is that sometimes the keyboard layout changes back to the default. I have seen the lights on the keyboard blink at times, so I tried unplugging and reconnecting the keyboard and yes - that reset the layout. I can see keyboard removed/detected entries in the logs as well, so I guess my keyboard reconnects sometimes, I don't know why. However the solution from the post earlier (to rename the xmodmap file to ~/.Xmodmap) did not work. So is there another default filename I should use? Or do I have to enable xmodmap to run when a keyboard is plugged in somehow?
The only thing I can think of right now is to monitor /var/log/Xorg.0.log for "Adding input device USB Keyboard" and running xmodmap when that happens... but I'm really hoping for a better solution.If I can't fix the xmodmap problem, maybe I can fix the usb disconnects.I read something about power saving settings for usb. After some digging, I found that those settings are in /sys/bus/usb/devices/.../power/. However, disabling autosuspend for the hub did not seem to work (it was already disabled for the keyboard).
But I found something else in kern.log. Perhaps the keyboard disconnects has something to do with static electricity?
Code: Select all[ 7078.175830] usb 1-10-port3: disabled by hub (EMI?), re-enabling...
[ 7078.175888] usb 1-10.3: USB disconnect, device number 4
[ 7078.624349] usb 1-10.3: new full-speed USB device number 6 using xhci_hcd
[ 7078.729012] usb 1-10.3: New USB device found, idVendor=04d9, idProduct=0125
[ 7078.729014] usb 1-10.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 7078.729016] usb 1-10.3: Product: USB Keyboard
View 0 Replies
View Related
Feb 12, 2011
I have a recent install of squeeze. Beside applications from the squeeze repos, I have installed a few applications from their own deb files / repositories, such as Skype, Google-Chrome (not the chromium in the squeeze repos), Opera and Teamviewer.
All those placed their menu entries in the gnome menu, however periodically, at a new login, the Google-Chrome and Teamviewer menu items are missing. The applications are still there, but they dont show anymore in the menus. Only way to get them back I found so far is to reinstall the application.
View 12 Replies
View Related
Jun 23, 2011
is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh
View 4 Replies
View Related
Jul 19, 2010
I want to untar a package from one directory to another directory, directly from the command prompt. I want to untar the joomla package into the htdocs directory of xampp. How to do that directly from command prompt ? The reason i am asking this is if I try the "drag and drop" way, it won't be possible as xampp is stored in /opt directory and without super-user authentication nothing can be saved into it. You can argue saying that why did I untar xampp initially in su mode ,but that had to be done so that apache doesnt give me any start-up problems.
View 2 Replies
View Related
Jan 5, 2011
untar a bunch of files located in different folders, with folder deep unkown.Found an old post about this matter but the suggestion extracts all files in the same folder (your current).I wan't to extract files to the same folder as the tar file.The solution from the old post (extracts all files to current folder)find . -name "*.tar" -exec tar xvf {}
View 1 Replies
View Related
Nov 13, 2010
1. is there a way to prohibit a program from writing data on the hdd?
2. can i have different icons on each gnome workspace and how?
3. how to untar to current directory?
"tar -xvvf blablah.tar.gz" does not work
"tar -xvvf blabla.tar.gz -C ./" does not work
in both cases, the files go into some strange random locations.
4. how can i change the way colors are displayed for different content in the xfce terminal? I used to have red for archives, blue for dirs etc. in kde, but lost all that after changing to gnome.
View 7 Replies
View Related
Jun 15, 2011
I would like to ask you how I can convert the file permissions of a tar.gz file. I have one tar.gz file when I try to extract I get the following output
Cannot change ownership to uid 3361, gid 5000: Permission denied
View 6 Replies
View Related
Jun 16, 2010
Is there any way to untar and only extract those files that are above a certain date including directory structure??
I restored a backup on a play server but it was a few days old. However I have a tar archive of the entire structure that is more up to date and healthy so now I want to extract all files (including directory structure) based on a date filter on the files if possible?
View 2 Replies
View Related
Aug 6, 2010
No matter what I try I just cant get cron working for me on my Squeeze setup I can type /usr/bin/soffice and openoffice will fire up no problem but put into a crontab and nothing for instance just to test if crontab is working I have this/5 * * * * /usr/bin/sofficeIn y user crontab but nothing happens I have run as root crontab -u djt crontab And after editing the crontab with crontab -e it says it is installing crontab but it just does nothing Unfortunately I am connected to my works network so unable to receive internal mail from cron so cant find any reason for it not working
View 4 Replies
View Related
Oct 25, 2010
i'm having some difficulties will my wireless on my friends hp dv4. It has a bcm4312 card and so far i've downloaded the kernel headers and the devel pakages, aswell as the broadcom hybrid driver. After i've un tar'd the file i type in make and it come up with
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make: *** /lib/modules/2.6.34.7-61.fc13.i686.PAE/build: No such file or directory. Stop.
make: *** [all] Error 2
but as for my knowledge of linux i'm at my limit, if it wasn't for Archive Manager i probably wouldn't have been able to untar the file
View 2 Replies
View Related
Aug 26, 2010
I have a question about using crontab with /etc/crontab...
I had a cron job that I needed to run as root. At the time I thought that sticking it in /etc/crontab would be a good idea. However, I used the crontab command to edit /etc/crontab, which I guess is not standard procedure? Specifically, I configured /etc/crontab as my local user's crontab (i.e. sudo crontab /etc/crontab) then added my cron job as I would a local user crontab (i.e. sudo crontab -e).
Originally, my cron job looked like this:
30 * * * * root /my/batch/script &> /dev/null
After adding the new cron job I started seeing errors. Something to the effect of "can't find command root" or something similar. So I removed the 'root' user definition from the cron job and the job started running fine. However, because this is /etc/crontab, there are other system related cron jobs that have been defined to run under the root account (e.g. "17 * * * * root cd / && run-parts --report /etc/cron.hourly" runs as root, etc.). So these pre-existing system cron jobs, which up until now have been running smoothly, are now generating "can't find command root" errors. But I think that the system cron jobs _are_ successfully being run someplace because logrotate seems to be working.
So what I _think_ is happening is that /etc/crontab is being run twice: once as the system crontab, and once as my sudoed local user's crontab. When I run crontab -l I see nothing, but when I run sudo crontab -l I can see the contents of /etc/crontab. I am reluctant to delete my sudoed local user's crontab, because then in the process I would be deleting the system crontab, and I do not know how I should restore the system crontab's contents. (I am still not sure as to the most appropriate way to edit the system crontab).
How can I get out of this mess? I want /etc/crontab to go back to the way it was before--running _once_ as the system crontab. As for my new cron job, I'm willing to reconfigure it anywhere so long as I am still able to run it as root. Any ideas? (I am using Ubuntu 8.04 Server LTE)
View 2 Replies
View Related
Apr 9, 2011
I have installed an application manager(monitoring application) on my linux server. Now, i need to have backup schedule for my application. The application itself has executive file to backup database.But when i put this file in my crontab to schedule the backup program it wont run!50 09 * * * root /opt/ME/AppManager9/bin/BackupMysqlDB.sh
View 1 Replies
View Related
Mar 4, 2011
Will unzipping always append files if the directories already exist? What about tar?
I unzipped an archive the archive had 3 folders and dozens of subfolders within those. app, skin, js
The folder I unzipped it to also already had those 3 folders as well as many child folders etc.
My website is still working so I'm just wondering. Is this safe or is there anything I should worry about. The other option was to manually upload each file manually that is in those 3 folders and the dozens of sub folders.
View 1 Replies
View Related
Jun 20, 2015
In my office there is a department where the access of internet & intranet is very limited. I've been given a task that I should add a script which would automatically take screenshots of the PCs. The script works fine, but I can't make it work with the cron jobs. There are many methods given on the internet to grab screen, but none of them works with cron.
View 2 Replies
View Related
Oct 10, 2014
This python script works , but not from crontab.Here is my python script:
#more datetimedir.py
import os, datetime;
datestring = datetime.datetime.now().strftime("%Y%m%d_%H%M%S");
print (datestring);
os.mkdir(datestring);
Here is how I call it from crontab
*/30 * * * * /usr/bin/python3 /home/cwc/logs/datetimedir.py
View 2 Replies
View Related
Jun 16, 2010
I have created a small script to compile a network weathermap using the cacti RRD files. The script reads the *.conf files and outputs an html and a png file. When I manually run the script it works normally.
I have edited my crontab with the crontab -e command to run this script every minute
The problem is script itself works when I manually call it but when it is run using crontab it doesn't do anything. The cron.log shows that the script IS being run every minute with no errors but the files (html and png) do not get written. What am I doing wrong and how do troubleshoot this?
View 1 Replies
View Related
Aug 17, 2010
As I have developed a part of my project based on crontab and now one of my team member has raised a question based on performance and load/stress, I would like to know the following limits of crontab.I assume each line in crontab file is a task; and also crontab would hold completed and pending tasks.1. How many tasks (both completed and pending) could crontab hold/handle?2. Will crontab run as expected if there are 100s of completed and less than 100 pending task?
View 1 Replies
View Related
Feb 23, 2016
I got some crontab records and everything works fine. I installed mail server recently and all cron notifications started to come into my inbox. I'd like to receive only notifications about cron errors. I would rather not filter all notifications off.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
View 1 Replies
View Related
Jul 21, 2011
I was trying to write a crontab entry using "crontab -e"
Code:
0 0 * * * cp /var/log/httpd/domains/mydomain.net.log
/home/admin/logs/mydomain.net.log
crontab is giving me this error:
Code:
"/tmp/crontab.XXXXfMOnRS":2: bad minute
errors in crontab file, can't install.
I've tried a dozen different values for the minute, but it's still giving me the same error.
View 5 Replies
View Related
May 29, 2011
What is the difference between the crontab located in /etc/crontab and the crontab that can be edited using crontab -e?
View 2 Replies
View Related
Jul 1, 2010
I have Apache, MySql server, and phpMyAdmin installed on my desktop. With the default installation of phpMyAdmin, I should be able to log in as root without a password. (Or at least every other time I have installed it, I could.) However, that isn't the case. I can't log in to phpMyAdmin period. I have tried setting the password for root with MySql through the terminal. Still no results. No matter what I do, when I try to log in to phpMyAdmin, I am denied access.
this is a fairly common issue (though I have never encountered it before) as I found similar posts in numerous forums, etc. I finally found a solution and now have it working. In case others have a similar problem, I am posting the solution that I used here. First open a terminal. Then use the following command
Code:
mysqladmin -u root password NEWPASSWORD
Substitute NEWPASSWORD with the password that you want to use and then you should be able to log in to phpMyAdmin as root with the new password.
View 2 Replies
View Related
Apr 20, 2010
I have to run this page: [URL].., because it fetches the content of some feeds(RSS) and then inserts into Database and then sends SMS texts to subscribed users. when i run it with php-cli in bash like this: php feeds.php?u=y&d=y
I only get:
[4] 11719
but nothing happens, running it like this: black@loopserver:/var/www/loop/cp$ php 'feeds.php?u=y&d=y' Could not open input file: feeds.php?u=y&d=y
Can any one please tell me what to do? I think the problem is coming by passing get parameters, if i just run feeds.php everything goes fine, but I need to pass in those.
View 5 Replies
View Related
May 21, 2010
Does anyone know if the ISO is updated periodically? Also is it just me or is Google Chrome faster than Firefox?
View 2 Replies
View Related
Sep 22, 2010
I want to use a script to renew my IP every 5 minutes. I have a static IP and it seems that when another person enter the same IP address as mine, my IP is stolen and is assigned to him.
I know that Cron is responsible for running a script at some time interval. How can I use that to renew my IP?
View 2 Replies
View Related
Sep 15, 2010
It's a bit unnerving.The monitor suddenly goes black, the keyboard resets, the mouse resets. And after about 2 - 3 seconds all is back to normal.My USB setup is a bit complicated (mostly because I could). A 7 port hub is connected to a USB port on the computer. Among other things, the 7 port hub is connected to a four port hub on the monitor (Viewsonic). The mouse is connected to the 4 port hub. The PS1 keyboard is connected to the PS1-to-USB convertor which is connected to the 4 port hub.
View 4 Replies
View Related
Jan 24, 2010
I have ubuntu 9.04 and once every 30 mins or so my mouse freezes up for 1-3 seconds. This generally does not bother me except when im playing games
View 2 Replies
View Related