1)How to schedule a job,that will periodically execute in
second by crontab?
2)I know only second specific time to execute the job.
like 10 10 * * * sleep 40&&ps -l>/dev/pts/1
It will execute at 10:10:40 AM but do not know how to
execute 15 second,30 second so on at 10:10 am.
Answers were Sorted based on User's Feedback
Answer / damodar
You cannot schedule a every-second cronjob. Because in cron
the minimum unit you can specify is minute. In a typical
scenario, there is no reason for most of us to run any job
every second in the system
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / rhino
There need to be an enhancement in Unix to support this
feature which is not relavant
Cron job wakes up every minute and checks if there exists
any process in cron that requires to be executed , If yes
it executes the job and sleep again to wake up in the next
minute
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / santosh sathe
The only possible option is to write a script to execute
after every second in a minute.
cron will execute the script after every minute and the
script will start to execute the same after every second.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is meant by u-area?
How to copy files from one directory to other in unix?
What do you understand by the term single user system?
What is umask in unix?
What does unix .profile contains?
How zip the file in unix?
How to find the path in unix?
What does tr H do in unix?
How to create files in unix?
Define a single-user system.
Explain the following statement, “it is not advisable to use root as the default login.”
Assume that there are two different filesystems as /abc and /xyz. There is a file A under filesystem /abc which has to be linked to filesystem /xyz. Which link will you use - soft link or hard link? why?