The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-01-2008
guruparan18 guruparan18 is offline
Registered User
  
 

Join Date: May 2008
Location: India
Posts: 37
Question WRITE a message in console

Hi all,

I have a requirement, where I need to do some calculations and based on the results I need to write a message to the user from a shell script.

Is it possible to `write' inside the script? Something like the below one..

Code:
#! /bin/ksh

write user12 << EOF
Hello World
<<EOF

For me, it produced an error.

Code:
wrt[6]: here document `EOF' unclosed

Any idea please?