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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain a path in unix.

495


What is unix and why it is used?

532


What is the role of the kernel in unix?

564


What are the three main components of unix architecture?

494


How to log out in unix?

523






How to remove the directory in unix?

501


How to get the n-th field from a Unix command output?

555


What is a directory?

543


How to terminate a shell script if statement?

569


What is unix portability?

509


Is unix free to use?

506


Write a shell script that requests the user's age and then echoes it, along with some suitable comment.

967


How can you edit a large file without opening it in unix?

516


Why was unix invented?

466


What is unix mtime?

503