>
> I need to know how to redirect the o/p of the script both to stdout and to
> file.

Use
echo "something" >> filename
in the script itself whenever you need.


>
> I need to run the script from job scheduler,so I cant use pipes or tee
> command from the command line.so the redirection need to be coded in the
> script itself.

We can use tee in crontab too.

explore these links.
http://stackoverflow.com/questions/18355370/how-to-use-tee-command-in-the-crontab
http://stackoverflow.com/questions/1308484/cron-job-stderr-to-email-and-log-file




-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free E-Magazine on Free Open Source Software in Tamil : http://kaniyam.com

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to