will give u the last line. i am not sure hw can u execute it.
u can use exec command and try executing that way it wil help. and if ur sure the last line has a sleep command then u can do.
exec `cat xyz.ksh | tail -n`
i am not very familiar with use of exec, just searched it on net. i think this will work. on my system when i execute this command. this is closing my window. so not sure if i m correect or not.
I should keep on the executing the script.
After sleep 68400, I should again call the ./abc.sh PB and next line and so on.
Execution should be something recursive. How can I do that
sandy do u wnt to call the same script in cronjob also?
then copy whole of ur script inside the while loop as shown above and it will run for like 4ever unless and untill some1 kills it. or system crashes
I just looked at the man page for the possible options and found.
like usual way, in my crontab I need to provide "-" if the input is stdin.
SYNOPSIS
crontab [-u user] file
The first form of this command is used to install a new crontab from some named file or standard input if the
pseudo-filename ``-'' is given.