Fedora :: Schedule Some Shell Scripts At Certain Time?
Jun 30, 2011How can I schedule some shell scripts at certain time and upon certain actions (on start, shut down, etc...)??
View 1 RepliesHow can I schedule some shell scripts at certain time and upon certain actions (on start, shut down, etc...)??
View 1 RepliesI'm trying to find how to schedule a process to start at a specific time (not on start up). How would I schedule a process/application to start at a specific time (if it matters, it will be a background process). For instance, have process abc start every weekday at 5am. I've done this for windows many times though have only been using linux regularly for a few months and haven't figured out the best way of doing this.
So far the best solution I have is to create a program that will start on boot and have it check the time and sleep until the required time and then start the required process(es) at the required time(s). But this seems more of a hack since I'd expect there to be a proper way of doing this.
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.
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 Relatedi want a service to be start at 8:00 and be ended in 14:00 automatically i already do this manualy by:
/etc/init.d/myservice.sh start
/etc/init.d/myservice.sh stop
i think it should be related to cron jobs.
I wanna simply schedule a script's execution at specified time :
So I used :
But the output was following ..
warning:
I've been quite puzzled by the behavior of unattended updates - it seems it runs the updates at or before 7am (on all the server installs I've got). They are only set to do security updates unattended, but what I am wondering is if there is a way to change the time that they install? I want the updates to install early in the morning, at like 3am or such, so I can reboot the machine when I get up if needs a reboot.I found a few mentions about it, but nothing specifically talking about the time.[URL]..
View 3 Replies View RelatedI have a select few users (finance dept.) at work who want to be able to write to a calendar based program on the network that allows them to schedule time / days off. The calendar or program needs to be writable by only a few administrators so that once time off is approved by their manager, he or she is the one who would access the application and submit the entry on it's specified date / time.
I would prefer if the back end is SQL database compatible but doesn't need to be since at this point I need to find anything that will fulfill this request. Obviously this sounds like a web / php based application that would run on my Apache Intranet web server
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 RelatedHow 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
Does anyone know how to schedule a Fedora box to automaticly shutdown and then resume later at a specific time?Shutting down is easy, but I have found nothing about the restarting part.
View 14 Replies View RelatedIs there such a schedule on this or other Fedora oriented sites? Livna currently installs 256.xx and I need 260.xx for CUDA 3.2 apps. Tried installing 260.19.04, 260.19.12 and 260.24 direct from Nvidia (while removing nouveau driver) on an updated F13 and startx fails.
View 3 Replies View RelatedIve tested this on 2 different machines each running Fedora 15. If I try to install gnome-schedule the system reports nothing to do or that the software is already installed. If I try to remove it the system reports that gnome-schedule is available but not installed. Anyone know how to approach this?
View 2 Replies View RelatedI have a shell script named as Ping.ksh.Actually this script will ping 100 server for few second and suit a mail to me the server names those are not in online.So i need to run this script 3am,4am and 5am daily. I'm new to this lunix. run this job daily on above mentioned time interval
View 1 Replies View RelatedI find gnome-shell 3.14.2 becomes slugish after several days of use. This manifests in short delays on window functions, such as closing a window or opening a new one. Restarting gnome shell fixes it.I thought of trying to take a stack trace during the delay, but found 2 issues:
1) debian doesn't have gstack/pstack package ...?
2) attaching a debugger to gnome shell from gnome shell hangs it (duh) , which means I can't type the "bt" command
I'm writing a script that needs to spawn 2 or more processes and wait for their return status. I have a method to do this by waiting on each process individually like this:
Code:
process1 &
PID1=$!
[code]...
I have a script that executed 100000 C Programs, reads the commands from a file and executes them. There is a requirement to measuer the time that each of this 100K C programs running.If it exceeds 120 sec I want to Kill that Process.Any Idea to embed this in my shell script?
View 4 Replies View RelatedI want to change my default shell to tcsh. I used
Code:
usermod -s /bin/tcsh username
command as given at url
But if I open a new shell, it is still a bash shell.
How do I make my default shell as tcsh?
I recently "upgraded" to the latest skype and now every time I open an interactive root shell, up pops skype. I can close skype then control-C in the terminal window to get the shell I want, but this is annoying to say the least. Maybe my google-foo is off, but all I can find is articles on how to run skype as root, which is no use. I've tried searching the startup files for "skype" (case independant), but so far all I can find is "LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu/ /usr/bin/skype" in the root .bashrc which shouldn't be starting the app.
what could be causing this?
(Running Wheezy)
When booting Fedora 11, my system hangs for a very long time on starting udev. Sometimes I get an I/O error. However, my hardware is fine. I do eventually get in to the system.
View 7 Replies View RelatedJust making one last tweak with my fresh install of F12KDE. I need to . How do I do this
View 2 Replies View RelatedI've got fedora 11 set up to use network time protocol to sync my laptop's date & time when I'm on-line. The question is simple really, I've added a local universality's time server (what is public) and it's live. but it's added to the end of the default time servers what come with fedora. How do I get fedora to just use the local time server, is it a case of removing the default time servers for fedora, but there is a box what says advanced options which are. sync system clock before starting service ???? & use Local time source (( is that the same as the local ntp server that I've got set up ))Hope some body can help me with the network time protocol part of Date/Time settings.
View 9 Replies View RelatedI have a problem..
the Date and time are changing all the time...
Meanwhile, I'm set the clock every day, But I must find a solution ... Do you have a solution?
Well, I am facing one issue:How can i read two files word by word at a time using any loop as i need word by word comparision in shell script?Please let me know pseudo code.
View 14 Replies View RelatedI have a concern regarding my clock in fedora 12. It always changes time even when I do not change it.
In fedora 10, I to go to CLI > time config > uncheck UTC, But now, it doesn't seem to work. Code: [jun@localhost ~]$ time config
Command not found.
real0m2.875s
code...
how to access current date and time from the system through CMOS in C programmes in Fedora.
View 1 Replies View RelatedI 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?
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 Relatedway 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.
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