Operating System - HP-UX
1827208 Members
2505 Online
109716 Solutions
New Discussion

question about send message

 
iambluegary
Advisor

question about send message

user A at box 10.0.0.1
user B at box 10.0.0.2
A wanna semd message "hello" to B,which command can do it?

or how can A send a file /home/A/fileA to B?
help ,help,help :-)
4 REPLIES 4
Deepak Extross
Honored Contributor

Re: question about send message

If you want interactive messaging, try using 'talk'.
User A should do a
#talk B@hostname
man talk for details.

For sending files, you can use mailx or sendmail.
#uuencode | mailx -s B@hostname
iambluegary
Advisor

Re: question about send message

i mean A send B some message when B isnot online,and when B login,he or she can read these message.
help ,help,help :-)
Deepak Extross
Honored Contributor

Re: question about send message

In that case, use mailx.
When a user logs in, he will be shown a "you have mail" message.
Steven Sim Kok Leong
Honored Contributor

Re: question about send message

Hi,

One way is to modify user B's $HOME/.profile on 10.0.0.2 so that the file /tmp/$LOGNAME.message is displayed via cat. A script is written on 10.0.0.1 to allow user A to transfer either via FTP, SCP or RCP to 10.0.0.2 /tmp the file userB.message.

When user B logs in, his/her user profile will display the user A's message.

Hope this helps. Regards.

Steven Sim Kok Leong