Software :: Schedule A Script's Execution At Specified Time - Error
May 4, 2010I wanna simply schedule a script's execution at specified time :
So I used :
But the output was following ..
warning:
I wanna simply schedule a script's execution at specified time :
So I used :
But the output was following ..
warning:
I need to find out the processing or operating time in milliseconds or in nanoseconds for the instructions or for the whole process!
for eg :
I need to calculate the time taken to execute :
And i dont want the time for whole program :
How can I schedule some shell scripts at certain time and upon certain actions (on start, shut down, etc...)??
View 1 Replies View RelatedMy 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 RelatedIn bash shell, is there a simple way for me to monitor the time taken to run a script and output the time taken?
View 1 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 have some questions.First, how can i obtain a process execution time ( after it terminated)??? Second, in a multi-core system like SMP how can i run different processes on different cores explicitly? i.e. how can i assign a process to a specific core?
View 1 Replies View RelatedI'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
How can I change the automatic fsck execution at boot time to be above 30 boots? I reboot the system sometimes 3 to 4 times a day. Intel 3 GHz, tower, i386 lenny vmlinuz-2.6.31-686
View 2 Replies View RelatedI'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 installed tinyos-2.x in Ubuntu lucid. I tried to simulate tossim environment for simple Blink application using the command: make micaz sim and ended up with the following error:
mkdir -p simbuild/micaz
make: python2.5-config: Command not found
make: python2.5-config: Command not found
make: python2.5-config: Command not found
and
Python.h: No such file or directory
and
make: *** [sim-exe] Error 1
Eventually installed python-old-doctools package which supposedly includes python2.5-config package but alas! It doesn't compile yet.
I was working with timezones when I came across a very strange error. Date command showed Invalid date/time when I set the date/time to 27 Mar 2011, 02:00:00. On further analysis, I observed that the time was jumping to 03:00:00 after 01:59:59 when the date is 27th Mar, 2011.
View 3 Replies View RelatedBottom Line: Dvd Drive died in my toshiba laptop and it was replaced (not before tech for some reason reformatted the Win7 partition... which was 100% un-needed, but thats beside the point now. I redid win7 (the tech installed vista) and am TRYING to "redo grub". Facts: The Slackware AND Ubuntu Partitions ARE STILL THERE and when i use SuperGrub Boot CD (which doesn't restore my grub by itself) to boot into slackware, i can see ALL THE CONTENT of both Linuxes still there including grub on ubuntu partition
(Tri-Boot: Ubuntu, Slackware, and WIn7) I had it working for two years or so, SO i know this "setup" works fine. I am A) Trying to do this as simply as possible. B) Trying to avoid the need to download a 800MB ISO (as seen for this issue on this forum) and trying not to have to reformat Ubuntu Partition (though I have the .Debs I have downloaded for it backed up ... all 1.7GB of them) I have /dev/sda1 as win7, /dev/sda2 as Slack and /dev/sda3 as Ubuntu (which contains Grub Legacy).. Every command I do seems to result in an error like "invalid command" or "invalid Execution format " (i think that second one is right) type errors. I compiled (awhile back) a few kernels for Slackware, but feel goofy that I cant figure what i this out (what i thought was going to be a "2 minute" fix)
what i can to do?[URL]Error: Cannot retrieve repository metadata (repomd.xml) for repository: chromium. Please verify its path and try again
View 2 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 RelatedI 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
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.
i m using gcc to compile certain programs.they get successfully compiled but fail to execute.Here is a sample code and the error [tommy@tommy cprog]$ vi test.c
#include<stdio.h>
int main()
{[code]....
a similar problem arises with codeblocks for the same program.the error is the same even when it is just main() and absence of return 0;
the problem exists also on c++.i m using Fedora 15
I am trying to write a script to set the SGE job execution order. I named each job with 'job1', 'job2' and 'job3'. I want my script to do: When 'job1' execution is complete, 'job2' is executed; when both 'job1' and 'job2' are complete, 'job3' is executed.
First, I tried this following script and it worked well:
########
qsub -N job1 run1.sh # run1.sh includes "mv file_name1 file_name2"
qsub -N job2 -hold_jid job1 run2.sh # run2.sh includes "mv file_name2
file_name3"
########
[Code]....
We are on our first Linux platform and I am trying to coordinate a distributed application backup across multiple machines. I am trying to write a script in which I would have used RSH to execute scripts on the other servers. We are no longer allowed to use rsh, and someone suggested ssh. I am using that instead of telnet, but I am not sure of the syntax"rsh server [-n] path/executable" is what I would have used, just not sure of the syntax for ssh
View 8 Replies View RelatedI just upgraded to 10.04 through the Update Manager. During the updated however I got an error telling me that it was unable to install something. Sorry, I can't remember what it was; it didn't stop the updated so I assumed it wasn't that important. Anyways, I don't know if this is because of that error, but during the boot process and when shutting the computer I get console messages. When I boot it tells me that "mounting none on /dev failed No such device" and when I shut down I get these messages.I see this was asked before and that it isn't a big issue, but I'd still like to solve it. The problem is that I'm pretty new to Ubuntu and Linux in general I don't know how to follow the very general instructions given in that thread.
View 2 Replies View RelatedWe are using centos6 and every time we try to install the key we get key 1 import error btw we are linux newbies so if you do help please try and spell things out cle
View 4 Replies View RelatedI have made a vb6 porgram, it is running without any error in windows platform. However, i want it to be run at Fedora too. I run my program with Wine Windows Program Loader in a Linux pc, but the program stuck with an error message:
Run-time error '429':
ActiveX component can't create object
I thought it was the error message because of missing some dll/reference files, so I tried to copy all those related .dll & .ocx file into my wine file. (Just copy and paste into the system32 of wine, no regsvr32 statement to register the .dll as what we always do in Windows.) However, all my efforts are in vain. I not sure what is the cause of this error.
I have a CentOS 5.3 server. All of the other computers I have are Windows or Ubuntu. The Ubuntu machines sync to the time on the CentOS machine correctly. The problem is, some of the windows 2000 Pro and Windows XP Pro machines are an hour off when they sync. The CentOS machine is set to New York time.
When I run: (Assume the time is currently 10:06 AM on the server) net time \xxx.xxx.xxx.xxx /set /yes
On the correct machines I get the message:
Current time at \xxx.xxx.xxx.xxx is 11/1/2010 10:06 AM
The command completed successfully.
But on the other machines I get:
Current time at \xxx.xxx.xxx.xxx is 11/1/2010 9:06 AM
Local time (GTM-04:00) at \xxx.xxx.xxx.xxx is 11/1/2010 10:06 AM
The command completed successfully.
Then the time on the windows computer is 9:06 instead of 10:06.
Is there something that needs changed on the CentOS Machine for the times to be correct?
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 RelatedHow 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 RelatedI 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.