Server :: Schedule Shutdown Every Day Using Crontab?

Jul 29, 2010

how to schedule shutdown every day using crontab

View 1 Replies


ADVERTISEMENT

Software :: Scheduling Backup In Crontab When Put This File In Crontab To Schedule The Backup Program It Wont Run?

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

Ubuntu :: Schedule A GUI App With At Or Crontab?

Mar 2, 2010

I want to schedule a Java program to run at a certain time, which will open a GUI progress monitor while it runs, and then terminate when it's done. I can execute it fine from the command line, but I it doesn't seem to work when I schedule it with crontab. In fact, I can't make any gui by scheduling it, not even something like gedit or firefox.

I know it's pretty rare that someone would want to do this, but is there any way to schedule a GUI app?

View 1 Replies View Related

General :: Crontab - Schedule Job To Run Every Minute?

Apr 14, 2010

I am setting crontab to run a script every minute irrespective of the current hour's value:

Code:

[root@localhost bin]# ls
sec.php showTime.sh
[root@localhost bin]# crontab -l
1 * * * * /root/bin/showTime.sh
[root@localhost bin]#

But it is not working. Does the line mean: "Run this script every day at hour:01"?

View 16 Replies View Related

General :: Using Shell Script Crontab Backup And Delete With Schedule?

Jun 20, 2011

I have a problem need help, I want to do a schedule with using shell script with crontab in linux SuSE SLES 10.

1. I have many server that want to do backup mysql all from that server everyday. I need advice for for write shell script to backup all mysql in different server to server backup everyday and create auto folder as date example 27102009, 28102009..........for a month will has 30 folder in server backup.

2. Also need to write shell script to delete all folder but keep only one week last example from 1 to 30 it will has 30 folder in sever backup but i want to keep only 7 folder last and want to set schedule delete it every saturday night.

3. used that shell script with crontab in linux.

View 3 Replies View Related

Ubuntu :: How To Schedule Auto Shutdown

Feb 4, 2010

How to Schedule auto shutdown in Ubuntu? I am a newbie. Last night I have some downloads in progress while at the same time I really wanted to go asleep. So I wondered if there's a way to schedule auto shutdown the system after a set period of time. I heared its possible using command line but dont know the usage.

View 9 Replies View Related

SUSE / Novell :: How To Schedule Shutdown Daily

Apr 29, 2009

I want to schedule my computer daily at 08:00:01 AM.
Describe the method with Kcron or any other software

View 1 Replies View Related

Ubuntu Servers :: Schedule Complete System Shutdown/startup?

Feb 10, 2010

Just curious if it is possible to schedule a complete system shutdown and start up?

My box with ubuntu server on it is only used as an ssh/proxy server, so I would like save on energy costs and add a layer of security by completely shutting it down during the hours I do not use it.

View 5 Replies View Related

Red Hat / Fedora :: Shutdown System Through Crontab?

Jun 11, 2009

I am practicing on "crontab" and am able to get system status in time but I want to shut my system through crontab.#15 12 11 06 thu init 0

View 1 Replies View Related

General :: Crontab Shutdown Not Working?

Jan 2, 2010

I'm running Ubuntu server 8.04.3 with eBox on a Dell GX280. I want to power off my box automatically every night, so as root I added a crontab entry "05 1 * * * /sbin/shutdown -P now". The command runs on schedule but most days the PC goes into a coma instead of powering off. It doesn't respond to key presses or mouse movement or Ctrl-Alt-Delete, I have to push its power button to complete the shutdown. I have tried a variety of alternatives such as "/sbin/shutdown -h" and "runlevel 0", they all behave the same way

View 14 Replies View Related

General :: Crontab Not Working \ Edited Crontab File Using Crontab -e?

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

Server :: Unable To Shutdown/reboot Server, No Shutdown Process Running?

Mar 30, 2010

I'm trying to reboot the server (shutdown -r now).But it seems like nothing happened.

When I try "shutdown -c", the system prompts "shutdown: cannot find pid of running shutdown."

View 5 Replies View Related

Server :: Shutdown The Nodes From The Master Terminal Using "shutdown -h Now" Get Shutdown?

Dec 10, 2010

I have installed a cluster computer with 10 nodes . The manufacturer is HP . All nodes and the master node have redhat enterprise linux installed in them . When I shutdown the nodes from the master terminal using "shutdown -h now" they get shutdown . But they dont get completely turned off . This issue bothers me when the power supply is given , all nodes boot up simultaneously generating a huge heat .

Thing to note : When we shutdown our PC they get completely turned off . When the power supply is given , a press on the Power On button is required to boot the system. But , why does it not happpen in the case of cluster? Is there any other way of completely turning off the nodes from the master terminal ?

View 1 Replies View Related

Server :: Reporting The Schedule For Nagios?

Jun 3, 2010

I have configured Nagios in my CentOS machine and is able to receive notificatons/alerts related to hosts and services at defined interval. Now I would like to receive combined reports (for daily downtime, availability of hosts/services) for all hosts and services in one go in the morning. Is there any configuration or setting on Nagios Splash screen.

View 1 Replies View Related

Software :: Schedule Uploading To Server Between 1-5am?

Dec 17, 2010

I have been messing with rsync but I don't see any kinda time limitations that will start the sync at 1am and stop it at 5am and resume the next night. Im dealing with some rather big files so the program will need to be able to resume an upload. I would like to use the ssh protocol to send the files as it's encrypted. (something like scp is fine too) but I can't see how to get them to stop at 5am (I thought of using a cron job but then how do I stop it at 5 without corrupting the partially uploaded file...)Both OS's are linux/unix based (Debian/Max OS X with ports)

View 3 Replies View Related

General :: Possible Disabling Crontab Job Without Deleting Crontab Description Entry

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

Software :: Cronjob Schedule To Run Php Script On Lighttpd Server Internally?

Mar 29, 2011

I know that you can access and run any script of the web by wget:

Code:

wget mydomain.com/page.php

But this is literally accessing it externally through the web, i think that it is safer and faster to access the script internally. I am using lighttpd to host my php pages, and is there a way to do that? I have had some hosting experiences, the cronjobs on the hosts let u input:

Code:

* * * * * php /public_html/path/page.php

View 2 Replies View Related

Server :: Get The Name Of The Script Run By Crontab In The Cronlogs?

Apr 27, 2010

Is there any way to get the name of the script run by crontab in the cronlogs? ex:/test.sh -- this is the cron job and i want to get the name of the script(test.sh) in the cron log after the job is run.

View 1 Replies View Related

Server :: Differences Between Schedulers Crontab And At?

Oct 27, 2009

Can any one brief me about technical Differences between schedulers crontab and at ?

View 1 Replies View Related

CentOS 5 Server :: Crontab Not Working

Jun 17, 2009

I'm setting up a new server and have edited the crontab to a run a script but nothing is happening, is there anything I need to setup to get the crontab working?

View 6 Replies View Related

Ubuntu Servers :: After Using Crontab With /etc/crontab / Giving Error "can't Find Command Root"?

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

Server :: Create Crontab Job By Bash Script

Jun 6, 2010

i want to create a crontab job by bash scripts:test1 cat /opt/shell/test1crontab on.but i do not want to use this command line ( crontab -e )to add this job.

View 4 Replies View Related

Server :: Crontab 'command Not Found' In Fedora

Jan 13, 2010

For some reason crontab does not work on my system.

Fedora Core 11

I am running from a Virtual Private Server.

Code:

Code:

View 2 Replies View Related

General :: Crontab Saved In Case Of Server Restarts?

Aug 10, 2009

Is the crontab saved in case of server restarts?

View 2 Replies View Related

Server :: Causing Crontab To Not Email Blank Emails

Aug 3, 2011

I've currently got a crontab line that looks like the following:

Code:
*/5 * * * * /usr/bin/php -q /etc/backend/cron.php | mail -s "Cron script output" whiteydude@gmail.com

The script works fine - it runs every 5 minutes and checks if certain environmental variables are set in place - if they are, it prints an output. If they're not, it dies.

The problem is that when it dies, it still sends me a blank email - one every 5 minutes, every time the cron job runs.

telling it not to send if it's blank?

I'm assuming some type of dirty awk script could do this, but I don't really know my shell well enough to do that.

I'm not good at putting these things into words, so let me write some psuedo code to explain what I mean:

Code:
*/5 * * * * /usr/bin/php -q /etc/backend/cron.php | if (STDOUT != '') { mail -s "Cron script output" whiteydude@gmail.com }

EDIT: Unfortunately I'm running on CentOS, so I can't use mail -E . Apparently that's a FreeBSD thing.

View 5 Replies View Related

Server :: Crontab Fails But Command Line Works ?

Feb 19, 2011

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.

View 3 Replies View Related

Server :: Stop Squid Before Executing Crontab File?

Mar 14, 2011

I am using squid 2.6 on my cent os 5 .I want to shutdown the system at 7:00 pm for that purpose I write in# crontab -e 0 19 * * * /sbin/shutdown -h nowThe thing which I want to clear that when the system will going to turn off it will also stop squid service? If not then how can I automatically stop squid service and then crontab file execute

View 6 Replies View Related

CentOS 5 Server :: Error - /tmp/crontab.XXXXDYxb6a: Permission Denied

Aug 6, 2009

I'm using crontab for user ABC in a month and have no problem.. But today i want to add new schedule user ABC with crontab.. i found this error

/tmp/crontab.XXXXDYxb6a: Permission denied

so i check with crontab -l command, it can show my schedule.. If I use root, crontab -e and crontab -l work properly..

Note: ls -al /tmp
drwxr-xrwx 8 root root 4096 Aug 6 09:30 .
drwxr-xr-x 24 root root 4096 Jul 19 17:10 ..
drwxrwxrwt 2 root root 4096 Jul 19 17:20 .font-unix

View 1 Replies View Related

Server :: Used The Command Crontab To Load The Table But Didn't See Any Execution Of The Script?

Jan 27, 2010

I created a file which in I tried both :

Code:
MAILTO=""
* * * * * /var/www/scripts/script.php >> /dev/null

[code]....

View 5 Replies View Related

CentOS 5 Server :: Crontab Creating Blank Files In Root Directory?

Jul 10, 2009

I've just discovered that crontab is creating a new file in the root directory every time it executes a cronjob, and it doesn't erase over the old file so there are thousands of files in the root directory, they have the same name as the script file (appended with a numeral) but are all blank.here is what one of the cronjob's looks like[URL]

View 10 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved