Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-18-2012, 09:21 AM
|
#1
|
LQ Newbie
Registered: May 2012
Posts: 14
Rep: 
|
Making a cronjob for downing the database and poweing off the system,
hello every body,
i am using ASYCUDA++ system which for custom's, the server is after taking a backup is running again on 19:30, so i am going to be down automatically on 19:31 the ASYCUDA++ and oracle database, and also power off the system,
please help me in this regard,
|
|
|
09-18-2012, 09:25 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
it wouldn't be a cron job, you're better off using at.
Code:
at 19:31 /sbin/poweroff
|
|
|
09-18-2012, 09:35 AM
|
#3
|
LQ Newbie
Registered: May 2012
Posts: 14
Original Poster
Rep: 
|
while i am trying to use this in my test serve, it says there is no crontba for root user.
crontab is installing a new cronjob
|
|
|
09-18-2012, 02:30 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
I suggested already that you shouldn't use cron.
|
|
|
09-18-2012, 02:35 PM
|
#5
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep: 
|
Quote:
Originally Posted by yousefzad
...the server is after taking a backup is running again on 19:30, so i am going to be down automatically on 19:31...
|
That's got to be the smallest Oracle DB dump I've ever seen.
|
|
|
09-19-2012, 08:49 AM
|
#6
|
LQ Newbie
Registered: May 2012
Posts: 14
Original Poster
Rep: 
|
then what to do dear?
|
|
|
09-19-2012, 09:23 AM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
as above, you should use at. And don't call people "dear", it's what you'd call your wife. 
|
|
|
09-19-2012, 09:31 AM
|
#8
|
LQ Newbie
Registered: May 2012
Posts: 14
Original Poster
Rep: 
|
thanks and sorry, but still i have the problem, it seems there is no crontab file or smothing like that in the system, because while i am going to save your mentioned cron job it says nothing installed and there is no crontab in the path.
|
|
|
09-19-2012, 09:48 AM
|
#9
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
|
|
|
All times are GMT -5. The time now is 01:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|