It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How do you use the sleep function to run the bash script every minute for say 6 hours?
Thanks
Wouldn't it be easier to setup a cron job?
min hour day month weekday command
*/1 10-15 * * * /path/to/your/script
10-16 is an example of a six hour block where it would run. 10 being 10AM and 15 being 3PM
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to do this.
Create 10000 files, (filename can be just combination of time and random number).
File size should be 4k.
And I want to time this. say how many seconds it will take.
How can I do this on bash?
Thank you.
time for x in {1..10000}; do
dd if=/dev/zero ibs=4k count=1 of=$x.txt 2>/dev/null
done
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How do I display the current time? Please give me an example.
I know about msdn but still have a problem.
Please use by trying DateTime.Now to access the current time.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am planning to display an android calendar in my application. I want to select a date to use in my application. I need to know whether there is an algorithm for a calendar.
I must not use any open source application.
Generating an arbitrary Gregorian calendar pretty much amounts to determining the day of the week of the starting day and, for Februaries, determining whether the year is a leap year.
The best and most famous date algorithm is Conway's Doomsday Rule, http://en.wikipedia.org/wiki/Doomsday_rule
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have command line script, i need to execute it by programmatically with parameters.
How to execute script from coding? Can anyone guide me?
With Regards
Vadivelu
NSTask allows you to do this.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
On my website I want to display the sunrise and sunset time of a the place from where the person is opening the webpage. Now Google Web Search give the sunrise and sunset time if you search like this :http://www.google.com/search?q=sunrise:<city_name> . How can I use this to provide this functionality on my website?
I was looking for a similar service and found http://www.earthtools.org/webservices.htm#sun
Here's an example for New York for the 4th December:
http://www.earthtools.org/sun/40.71417/-74.00639/4/12/-5/0