LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2004, 11:36 PM   #1
gold5angel
LQ Newbie
 
Registered: Mar 2004
Location: China
Posts: 20

Rep: Reputation: 0
Net send


Dear all


I want to net send two linux computer? How can I do?
And when I net send from Window to linux? How can I install what software or using what command?

please help me?
Thanks in advance!!!
 
Old 04-13-2004, 12:29 AM   #2
MarkBurke
LQ Newbie
 
Registered: Nov 2003
Location: Orange County, CA, USA
Distribution: aix, rhel, ubuntu
Posts: 24

Rep: Reputation: 0
By saying net send, do you want to transfer a file from one linux computer to another, across the network ... Also, do you want to transfer a file from one computer running Windows, to/from a computer running Linux

Either way, I would recommend using the ftp command (file transfer protocol). The command is found on Windows, and on Linux, but the syntax is different for each system. A batch script to do this in windows would be the following

Windows --

echo "open MACHINENAME" > ftpscriptfile.txt
echo "user USERNAME PASSWORD" >> ftpscriptfile.txt
echo "ascii" >> ftpscriptfile.txt rem This will translate a text file (continued)
rem between Linux and windows
rem You could also substitute "binary"
rem instead of ascii for an executable
rem or archive file.
echo "get FILENAME" >> ftpscriptfile.txt rem or use "put FILENAME"
echo "quit" >> ftpscriptfile.txt

rem The following should do the transfer
ftp -n -s:ftpscriptfile.txt

--------------------------------------------------------
Linux is the same idea, different syntax

cat - <<EOF > ftpscriptfile.txt
open MACHINENAME
user USERNAME PASSWORD
ascii
get FILENAME
quit
EOF
ftp -n < ftpscriptfile.txt



Good luck and let me know if I should clarify further
 
Old 04-13-2004, 01:30 AM   #3
gold5angel
LQ Newbie
 
Registered: Mar 2004
Location: China
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for your help. But I just want send message, for example: Hey Go for lunch! to another.
Ftp I can use gftp!!!!
 
Old 04-13-2004, 01:54 AM   #4
MarkBurke
LQ Newbie
 
Registered: Nov 2003
Location: Orange County, CA, USA
Distribution: aix, rhel, ubuntu
Posts: 24

Rep: Reputation: 0
Ooops. I understand now.

how about


write <user@hostname>

then enter text and type control-D



Last edited by MarkBurke; 04-13-2004 at 01:56 AM.
 
Old 04-13-2004, 01:56 AM   #5
MarkBurke
LQ Newbie
 
Registered: Nov 2003
Location: Orange County, CA, USA
Distribution: aix, rhel, ubuntu
Posts: 24

Rep: Reputation: 0
You may have write permissions turned off
This looks like

[j@localhost j]$ write
write: you have write permission turned off.

Type
mesg y

This allows people to write to you.
They may need to know what terminal you are on.

[j@localhost j]$ who -a
Apr 12 22:12 16 id=si term=0 exit=0
system boot Apr 12 22:12
run-level 5 Apr 12 22:12 last=S
Apr 12 22:12 939 id=l5 term=0 exit=0
:0 Apr 13 01:12 0 id=:0 term=0 exit=0
LOGIN tty1 Apr 12 22:12 2362 id=1
LOGIN tty2 Apr 12 22:12 2363 id=2
LOGIN tty3 Apr 12 22:12 2364 id=3
LOGIN tty4 Apr 12 22:12 2365 id=4
LOGIN tty5 Apr 12 22:12 2366 id=5
LOGIN tty6 Apr 12 22:12 2367 id=6
[j@localhost j]$ write LOGIN tty1
write: LOGIN has messages disabled on tty1
[j@localhost j]$ su LOGIN -c mesg y
[j@localhost j]$ write LOGIN
Yo! Go to lunch!
<Control-D>

Actually this may only work when the two users are logged into sessions on the same localhost.

Across different computers, possibly you could send
rexec user@localhost write username


net send, that is the Windows cmd.exe version ? You could install Samba and use that for net send functionality. Let me know if you need further.




Last edited by MarkBurke; 04-13-2004 at 02:12 AM.
 
Old 04-13-2004, 05:27 AM   #6
gold5angel
LQ Newbie
 
Registered: Mar 2004
Location: China
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you very much. I did it. But in Window, you meant that I should down load a samba software?
 
Old 04-13-2004, 05:44 AM   #7
gold5angel
LQ Newbie
 
Registered: Mar 2004
Location: China
Posts: 20

Original Poster
Rep: Reputation: 0
Dear MarkBurke,

Would you like to show that I can use net send a message from Window to Linux or how to use samba in Window?

Thanks!!!!!!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to send and receive "Net Send" messages in Linux? Avatar Linux - Networking 16 07-11-2010 09:42 PM
Net Send in slackware... phiberoptik Slackware 1 11-20-2004 12:35 PM
Net send sara_mit2001 Linux - General 2 10-01-2004 04:03 PM
net send !! doubtful Linux - Networking 1 10-04-2003 06:54 AM
Net send anamika123 Linux - General 8 02-27-2003 11:44 AM


All times are GMT -5. The time now is 07:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration