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


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

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

Server :: Schedule Shutdown Every Day Using Crontab?

Jul 29, 2010

how to schedule shutdown every day using crontab

View 1 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

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

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

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

Fedora :: Write A Crontab Entry Using "crontab -e"

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

General :: Difference Between /etc/crontab And "crontab -e"

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

Ubuntu :: How To Schedule Program

May 23, 2011

now a day its difficult to wake up at 2 o'clock and on the pc starting downloading is there any way to schedule deluge program start at 2 o'clock

View 9 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

Ubuntu Servers :: How To Schedule Email

Jun 17, 2010

I have Postfix and Procmail installed on Hardy.

Are there any tips/tutorials for sending out scheduled email?

My main use case for this would be sending out a Tweet and an email at the same time.

View 3 Replies View Related

Ubuntu :: Strategy To Schedule Rsnapshot If Pc Is Not Always On?

Jun 20, 2010

I just did my first rsnapshot backup of my /home/ to an external harddisk. When I am not at my computer for a couple of hours, I always shut it down. Therefore, there are no predictable hours of the day where I know that my computer is running. So, how should I schedule/crontab my rotating rsnapshot backups?

Is anyone using rsnapshot in combination with a schedule which is not based on exact times but rather on the time the computer is running?

View 2 Replies View Related

Ubuntu :: Create And Schedule A Script?

Sep 26, 2010

I'm running LXDE in Ubuntu 10.04, and NTP won't work properly for me. I've found that this command in a terminal will set my clock properly:

Code:
sudo ntpdate time.nrc.ca
But I have to do that manually.

How would I go about creating a shell script with that command and then scheduling it to run once a day?

View 2 Replies View Related

Ubuntu :: How To Use Anacron (schedule Tasks)

May 10, 2011

Well I'm totally frustrated. I have been trying to figure out how to use anacron (schedule tasks). I Googled,Binged,Yahooed, and manpaged.I cannot find how to, at least, start anacron. To use 'cron' I use crontab -e. What do i use to start anacron?.

View 2 Replies View Related

Ubuntu :: Schedule A Reboot Using The 'at' Command?

May 30, 2011

I'm trying to schedule a reboot ,using the 'at' command. Normally to reboot I have to be 'root'. I tried using sudo to start 'at',to no avail. How would I type the command ,using at, to reboot?

View 2 Replies View Related

Ubuntu Networking :: Schedule Disconnection Of Internet?

Mar 25, 2010

i am using ubuntu 9.10.i connect to net through the gnome netwok manager via a mobile broadband connection. can anyone suggest any commands or tools with the help of which i can disconnect the net at a preset time or after a fixed interval has expired. i know that by executing "poff" command in terminal i can disconnect the connection, but i want the same to happen automatically without any kind of user intervention at a scheduled time.

View 2 Replies View Related

Ubuntu :: Closing And Opening Ports On Schedule?

May 26, 2010

how I can set up something to automatically open port 119 at 10pm and close it again at 3am..

View 9 Replies View Related

Ubuntu :: Use Cron To Schedule A Script Wrote?

Nov 28, 2010

I'm trying to use cron to schedule a script I wrote.in the terminal I'm typing sudo cronbut i get this message back.cron: can't lock /var/run/crond.pid, otherpid may be 3332: Resource temporarily unavailablewhat's going on here? how can I schedule my script to run?

View 2 Replies View Related

Ubuntu :: Calendar / Planner And Schedule Program?

Jan 24, 2011

I was wondering if there was some calendar/planner/schedule program for Ubuntu so that I could input all my class HW/lecture/exam schedules for the semester and be able to keep track of whats due and whats going on? I know I could use Gmail's calendar, but I don't know if I will always have internet and I feel like a stand-alone program would be better.

View 4 Replies View Related

Ubuntu :: Looking For Personal Schedule Software Package?

Mar 1, 2011

I'm not looking for software that has any relation to CPU scheduling, but something more for personal use. I don't want to use Evolution, because I'm not looking to keep track of weekly repeating tasks on an annual calendar. It's not for business use, but something more applied to home chores or weekly maintenance of my car. Has anyone come across anything close to this? I'm out of ideas on where to search.

View 5 Replies View Related

Ubuntu :: Root Cronjob Not Working On Schedule

Jun 27, 2011

I have added "@daily shutdown -r now" to my root crontab (sudo crontab -e) but it does not seem to ever run. When I look at the chron log using webmin I can see that it tried to run and there was no error. Also when I run it manually using webmin the system reboots fine. I also tried using reboot -f in the crontab instead and that also worked when manually run but not on schedule. The reason I know it didn't run is on webmin it shows the system uptime. This is the output of the chron log:

Code:
Jun 26 21:17:02 GrantLaptop CRON[3467]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 26 22:17:01 GrantLaptop CRON[3873]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 26 23:17:01 GrantLaptop CRON[4269]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 27 00:00:01 GrantLaptop CRON[4530]: (root) CMD (shutdown -r now)
Jun 27 00:17:01 GrantLaptop CRON[4630]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 27 01:17:01 GrantLaptop CRON[5005]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Jun 27 02:17:01 GrantLaptop CRON[5416]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)

View 5 Replies View Related

Ubuntu Installation :: Schedule Updates For A Certain Time Of Day?

Sep 1, 2011

My Internet service provider here in South Africa is Vodacom (Vodafone) and I pay a huge amount of cash for 2.5Gigs per month. They do, however, give me the same amount of data for free that I can make use of between midnight and 5.00am.For this reason, I would like to be able to schedule my update manager to download all updates at, say, 10 past midnight.Can any of you guys out there offer any suggestions or is there a way that we can make a request for the Ubuntu developers to include this in "Update Manager"?

View 2 Replies View Related

Red Hat / Fedora :: How To Schedule A Cron Job

Feb 28, 2010

I would like to schedule a cron job to run on every first saturday of the month, so far all documentation that I have looked at, mentions only a weekly cron or a monthly cron based on the date. Is it possible to run a monthly cron based on the day of the week?

View 1 Replies View Related

Red Hat / Fedora :: How To Schedule Job Using Cron

Aug 12, 2010

How to schedule a job using cron that shouldn't run between working hrs 9am-5pm, while run in non working hrs every hour, every day of the month, month & week. I tried the following way, not sure I can use logical not operator(!).

crontab -e
0 !9-17 * * * /path/to/script/file
I guess other way is
0 17-8 * * * /path/to/script/file

View 1 Replies View Related

Software :: Schedule A Recording From A Web Cam?

Aug 29, 2010

way to schedule a recording from a webcam on a local machine. for example I want my webcam to start recording video at say 7am and stop at 8am.

The webcam is working and all is set properly, I have wxcam which has a feature to record but I found nothing about scheduling for auto start and auto stop. I was thinking using 'at' but I found nothing about command line for wxcam.

View 13 Replies View Related

General :: Schedule Disk Scan On Boot Ubuntu

Jun 24, 2010

Schedule disk scan on boot Ubuntu. How do I do this?

View 1 Replies View Related

Ubuntu Servers :: Schedule An Exact Disk Copy

May 30, 2010

Best way to do a scheduled backup of a server (PowerPC, Ubuntu 9.10), when an exact copy of the linux partition would be made on a disk of the same size? It seems there are several solution, but I have problems choosing the best.

View 6 Replies View Related

Ubuntu :: Gnome-schedule Doesn't Start At Reboot

Jun 6, 2010

I've scheduled a task in gnome-schedule to run at each reboot. When I click on "preview task" it initiates a one-time run just fine. However, after reboot it just doesn't want to start the task.

View 3 Replies View Related







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