Server :: Crontab 'command Not Found' In Fedora
Jan 13, 2010For some reason crontab does not work on my system.
Fedora Core 11
I am running from a Virtual Private Server.
Code:
Code:
For some reason crontab does not work on my system.
Fedora Core 11
I am running from a Virtual Private Server.
Code:
Code:
I am scheduling a command for a specific time every day.
Linux crontab format which I am using :- MIN HOUR DOM MON DOW CMD
30 08 10 06 * /home/mach/script.sh
Some presetting is required?
Having an odd problem running a mysqldump via crontab. I have the script running on other servers and they work fine, so not sure how to actually troubleshoot, but the script looks like the following;
If I run it as a cronjob as root, it finishes in a second and a 20k file is there. If I run it from the command line as root it does the backup (takes a few minutes) but does complete the backup and can be unzipped and read successfully.
I created a file which in I tried both :
Code:
MAILTO=""
* * * * * /var/www/scripts/script.php >> /dev/null
[code]....
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)
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 Relatedi am geting following error when i use make
make: -F.: Command not found
HBHB****
**** The configure script must be executed before running 'make'.
**** Please run "./configure".
****
make: *** [makeopts] Error 1
Gcc seems to be installed by not configured maybe?Below are some command line resultsIs gcc installed, and if so, how do I configure it so it run properly.
rpm -qa | grep gcc
libgcc-4.1.2-44.el5
gcc-4.1.2-44.el5
[code]....
when i login to one of our development server i get the following.
Last login: Tue Nov 23 14:08:32 2010 from 192.168.2.5
-bash: r: command not found
-bash: $: command not found
[code]....
I am trying to get into a directory on my server, that is owned by root.
[Code]....
I am using rhel5 with ip 192.168.0.254.i am using rhel on vmware 7. when i run links 192.168.0.254 then i got error "bash : links : command not found" i want to know why this error is showing? when i use red hat without vmware then there is no problem.
View 2 Replies View Related#1 Ubuntu-10.04-x86_64 (its a form of liunx)
#2 OS 64 bit
#3 java 1.6.0_20
#4 java 64 bit
[Code]....
i need it to look like this below, and load the program called "craft".jar
@ECHO OFF
IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%Javajre6injava.exe" -Xms512M -Xmx512M -jar "%~dp0craft.jar"
IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xms512M -Xmx1000M -jar "%~dp0craft.jar"
I have recently installed F12 in my HP Pavilion laptop. I am facing strange problem when I am trying to give a wrong command in terminal.
When I give the wrong command it says "command not found" but waits down instead of showing the prompt.
[codingfreak@localhost ~]$ e
Command not found.
when i try to use apt-get, It says command not found. Did I installed RHEL in wrong way or do I need to configure any file.
View 8 Replies View RelatedI write a little script that run top command and clear the output leaving only cpu ram and swap values. If i run the script manually everityng works fine but when i schedule the cript to run every 5 minutes from /etc/crontab all run fine but the output of the top command doesnt appear in the log :
This is the cript :
#!/bin/sh
echo "#############################" >> /var/log/performance.log
echo "" >> /var/log/performance.log
/bin/date >> /var/log/performance.log
[code]...
Which package provides easy_install? I seem to have python-setuptools installed but can't seem to find easy_install?
View 3 Replies View RelatedThe goal is to do:
sudo apt-get install Virtualbox
sudo apt-get virtualbox
sudo aptitude install virtualbox
ive tried all those combinations and they all shoot back the same reply:
sudo: apt-get: command not found
Every forum ive read says that my Fedora installed wrong and that i am screwed. Can anybody help me with this please?
Also does anyone have a link to download a free windows xp iso for virtualbox to run off of?
I've installed the latest Fedora 13 flavour, yum update completed, yum install samba -y
all installed fine.
yum list grep samba shows samba-13 installed however when type smbclient as root it returns
"Command Not Found" and returns me to bash.
yum remove samba
reboot
yum install samba
still nothing
smb[tab] returns : smbd, smbusers and 3 others but none that are smbc*. I'm kinda stuck for my windows shares at this point.
smbd i presumed was the deamon so i triggered that but smbclient still cant be found and when i ran smb(something) status it stated that the samba service was up and running.
users list is configured but i believe this is an issue with the command.
I'm attempting to install the Oracle Sun Ray Server Software on Fedora 15 and I've done the majority of the install and config however, the system is coming up with an error that the gdmdynamic command is not found??
Apparently this comes with gdm but I couldn't find a package correlating to this command.
Apparently it comes with Gnome/GDM.... I don't have Gnome installed in the system but do have GDM!
I tried scheduling a task using crontab -e and added the line:
Code:
58 23 3 2 4 /usr/bin/freshclam --verbose --log=/home/EXISTING DIR where I have permissions
The timing was simply a test run. My syslog gives the following error:
Code:
(CRON) error (grandchild #4309 failed with exit status 62).
I also tried to add to root crontab as below, but got the same error.
Code:
sudo crontab -u root -e a
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.
I recently installed Fedora 14 from KDE live CD . everything is working excellent except when I tried to do lsmod today, I got lsmod:command not found error.I checked and found that PATH did have /sbin and /sbin/lsmod does exist. But /sbin/lsmod points to /bin/lsmod (which does not exist)I did whatprovides on lsmod and found module-init-tools-3.11.1-2.fc13.i686 as the package.
View 1 Replies View RelatedI am new to Linux i am installing cvs in it.
I am facing the below problem:sudo /etc/init.d/xinetd reload sudo: /etc/init.d/xinetd: command not found. /etc/init.d/xinetd restart /etc/init.d/xinetd stop.
Currently I'm using RHEL 5.3 in my server. Last time I install MySQl Server and it working fine.Then i facing a problem with my server and i reinstall back RHEL. But i didnt use MySql package inside the CD to install MySQL. i install MySQl separately. I download from MySql website. My problem is, i success install MySql in my server. The service also running. But when i type.
mysql -u root password
it said, command not found.
How to break strings of command into multi-lines in crontab? e.g.
Code:
# the following is a very long a gruesome command to be run at 09:59 Monday to Friday.
59 09 * * 1-5 source $HOME/some-definitions; sh /usr/local/my/long/name/application/bin/hello $(date +\%Y\%m\%d) >>/var/log/my/long/name/application/log/hello.log
I have install RHEL5 and created normal user as "test". When I login as root user, I can run crontab command but when I login as test user, I can't run crontab command and throws error as "cron/test: Permission denied". how to enable crontab command for test user as well?
View 3 Replies View RelatedI installed a program with Yast (Kmess), but when I try to run it, bash gives me back this message:
Code: kmess: command not found I checked into Yast and it seems to be installed correctly!
I decided to switch from Ubuntu to Fedora Core 10 KDEdual boot installation worked perfectly... all smooth!untill i got to installing things....i wanted to install ndiswrapper, so i manually downloaded it on my second pc and transferred it trought a USB stick to the Fedora PC. When reading the 'installation manual' it clearly uses the "make" command a lot...problem is; bash error: "bash: make: command not found"So i google this and i get some solutions, all involving online repositories...so basically... i need internet to get the MAKE rpm, and i need the MAKE rpm to get the internet working... :')I tried searching online repositories but i haven't got a clue about what i need to download from there (to get the make command, or the "Development Tools") and how to install it on my fedora pc....i need help :P It would be much appreciated if someone could explain me how i could get these important packages up and running on my system with manual downloading and installing.I haven't got a clue how to do this manually... I've been on it for hours allready and I'm getting a bit fed up with it I can't understand why such an important package isn't standard included in the installation.
View 14 Replies View RelatedI've been using linux for a long time, and I just ran into a problem that has me stumped. Any time I mistype a command, it says "Command not found."... yea, I know that's normal. But it doesn't return me to my # prompt. I have to press Ctrl+C to get back. code...
I know I do have one issue with this computer, I have 2 blown caps on my motherboard. This was a dual boot system, but after a virus with winblows, I decided to switch it to strictly linux. (roommates... *grumble*) I think I was running fc10 before I wiped the hd & installed fc12. Fc12 does seem to be running slower, and I still haven't got my sound card working properly... but that issue is for another topic...
-YungBlood Reborn
I am trying to rebuild packet with mock
Code:
mock rebuild -r fedora-15-i386 rpmbuild/SRPMS/deadbeef-0.5.1-1.fc15.src.rpm
and getting following error in /var/lib/mock/fedora-15-x86_64/result/build.log:
checking for intltool >= 0.40.0... ./configure: line 22040: intltool-update: command not found
configure: error: Your intltool is too old. You need intltool 0.40.0 or later.
code....