LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Making a cronjob for downing the database and poweing off the system, (https://www.linuxquestions.org/questions/linux-newbie-8/making-a-cronjob-for-downing-the-database-and-poweing-off-the-system-4175427825/)

yousefzad 09-18-2012 09:21 AM

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,

acid_kewpie 09-18-2012 09:25 AM

it wouldn't be a cron job, you're better off using at.

Code:

at 19:31 /sbin/poweroff

yousefzad 09-18-2012 09:35 AM

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

acid_kewpie 09-18-2012 02:30 PM

I suggested already that you shouldn't use cron.

Habitual 09-18-2012 02:35 PM

Quote:

Originally Posted by yousefzad (Post 4783301)
...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.

yousefzad 09-19-2012 08:49 AM

then what to do dear?

acid_kewpie 09-19-2012 09:23 AM

as above, you should use at. And don't call people "dear", it's what you'd call your wife. :)

yousefzad 09-19-2012 09:31 AM

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.

acid_kewpie 09-19-2012 09:48 AM

last time.

don't use cron.

use at.

http://unixhelp.ed.ac.uk/CGI/man-cgi?at


All times are GMT -5. The time now is 08:30 AM.